Click here to Skip to main content
15,921,542 members
Home / Discussions / C#
   

C#

 
AnswerRe: Not able to use PathGradientBrush in WPF Pin
Richard MacCutchan10-Jun-14 2:22
mveRichard MacCutchan10-Jun-14 2:22 
QuestionWPF - Load Gmail contact list in ListView with status icon Pin
Member 102676309-Jun-14 20:35
Member 102676309-Jun-14 20:35 
AnswerRe: WPF - Load Gmail contact list in ListView with status icon Pin
Pete O'Hanlon9-Jun-14 21:12
mvePete O'Hanlon9-Jun-14 21:12 
QuestionA console application to a WPF Pin
bunny039-Jun-14 14:12
bunny039-Jun-14 14:12 
AnswerRe: A console application to a WPF Pin
Dave Kreskowiak9-Jun-14 18:14
mveDave Kreskowiak9-Jun-14 18:14 
AnswerRe: A console application to a WPF Pin
Richard MacCutchan9-Jun-14 20:59
mveRichard MacCutchan9-Jun-14 20:59 
AnswerRe: A console application to a WPF Pin
Manikandan1011-Jun-14 3:26
professionalManikandan1011-Jun-14 3:26 
GeneralRe: A console application to a WPF Pin
bunny0312-Jun-14 6:11
bunny0312-Jun-14 6:11 
QuestionIssue using WHERE clause in LINQ query Pin
Member 102279589-Jun-14 5:11
Member 102279589-Jun-14 5:11 
AnswerRe: Issue using WHERE clause in LINQ query Pin
OriginalGriff9-Jun-14 5:17
mveOriginalGriff9-Jun-14 5:17 
GeneralRe: Issue using WHERE clause in LINQ query Pin
Member 102279589-Jun-14 5:24
Member 102279589-Jun-14 5:24 
AnswerRe: Issue using WHERE clause in LINQ query Pin
Richard Deeming9-Jun-14 5:58
mveRichard Deeming9-Jun-14 5:58 
GeneralRe: Issue using WHERE clause in LINQ query Pin
Member 102279589-Jun-14 7:04
Member 102279589-Jun-14 7:04 
QuestionI have 2 question Pin
roza548-Jun-14 2:06
roza548-Jun-14 2:06 
QuestionRe: I have 2 question Pin
Richard MacCutchan8-Jun-14 2:20
mveRichard MacCutchan8-Jun-14 2:20 
AnswerRe: I have 2 question Pin
OriginalGriff8-Jun-14 2:21
mveOriginalGriff8-Jun-14 2:21 
QuestionDBConcurrencyException problem Pin
Member 108711908-Jun-14 0:12
Member 108711908-Jun-14 0:12 
AnswerRe: DBConcurrencyException problem Pin
Dave Kreskowiak8-Jun-14 3:06
mveDave Kreskowiak8-Jun-14 3:06 
GeneralRe: DBConcurrencyException problem Pin
Member 108711908-Jun-14 5:11
Member 108711908-Jun-14 5:11 
GeneralRe: DBConcurrencyException problem Pin
Member 108711908-Jun-14 5:14
Member 108711908-Jun-14 5:14 
You can find here the automatically (by drag&drop) generated SQL code. The problem occurs with "Ingredients", "HowTo" and "Picture".

SQL
 <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[ReceptTable] SET [Name] = @Name, [Ingredients] = @Ingredients, [HowTo] = @HowTo, [IsBakeNeeded] = @IsBakeNeeded, [Difficulty] = @Difficulty, [WorkTime] = @WorkTime, [Cost] = @Cost, [Picture] = @Picture WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_IsBakeNeeded = 1 AND [IsBakeNeeded] IS NULL) OR ([IsBakeNeeded] = @Original_IsBakeNeeded)) AND ((@IsNull_Difficulty = 1 AND [Difficulty] IS NULL) OR ([Difficulty] = @Original_Difficulty)) AND ((@IsNull_WorkTime = 1 AND [WorkTime] IS NULL) OR ([WorkTime] = @Original_WorkTime)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)));
SELECT ID, Name, Ingredients, HowTo, IsBakeNeeded, Difficulty, WorkTime, Cost, Picture FROM ReceptTable WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Ingredients" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Ingredients" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@HowTo" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="HowTo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsBakeNeeded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsBakeNeeded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Difficulty" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Difficulty" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@WorkTime" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="WorkTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@Picture" Precision="0" ProviderType="Image" Scale="0" Size="0" SourceColumn="Picture" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsBakeNeeded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsBakeNeeded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsBakeNeeded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsBakeNeeded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Difficulty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Difficulty" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Difficulty" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Difficulty" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WorkTime" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WorkTime" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_WorkTime" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="WorkTime" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Cost" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Recept.dbo.ReceptTable" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>

GeneralRe: DBConcurrencyException problem Pin
Dave Kreskowiak8-Jun-14 14:36
mveDave Kreskowiak8-Jun-14 14:36 
GeneralRe: DBConcurrencyException problem Pin
Member 108711908-Jun-14 23:56
Member 108711908-Jun-14 23:56 
GeneralRe: DBConcurrencyException problem Pin
Member 108711909-Jun-14 1:05
Member 108711909-Jun-14 1:05 
QuestionShare access to a stream, logfile name, and a locker between two classes (objects) Pin
Marco Bertschi6-Jun-14 8:56
protectorMarco Bertschi6-Jun-14 8:56 
GeneralRe: Share access to a stream, logfile name, and a locker between two classes (objects) Pin
PIEBALDconsult6-Jun-14 18:22
mvePIEBALDconsult6-Jun-14 18:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.