Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IncrementWhereCount()

bool System.Data.Common.DbCommandBuilder.IncrementWhereCount ( DbSchemaRow row)
inlineprivate

Definition at line 1151 of file DbCommandBuilder.cs.

1152 {
1153 ConflictOption conflictOption = ConflictOption;
1154 switch (conflictOption)
1155 {
1156 case ConflictOption.CompareAllSearchableValues:
1157 case ConflictOption.OverwriteChanges:
1158 if ((row.IsKey || row.IsUnique) && !row.IsLong)
1159 {
1160 return !row.IsRowVersion;
1161 }
1162 return false;
1163 case ConflictOption.CompareRowVersion:
1164 if (((row.IsKey || row.IsUnique) && !_hasPartialPrimaryKey) || row.IsRowVersion)
1165 {
1166 return !row.IsLong;
1167 }
1168 return false;
1169 default:
1170 throw ADP.InvalidConflictOptions(conflictOption);
1171 }
1172 }

References System.Data.Common.DbCommandBuilder._hasPartialPrimaryKey, System.Data.Common.DbCommandBuilder.ConflictOption, System.Data.Common.ADP.InvalidConflictOptions(), System.Data.Common.DbSchemaRow.IsKey, System.Data.Common.DbSchemaRow.IsLong, System.Data.Common.DbSchemaRow.IsRowVersion, and System.Data.Common.DbSchemaRow.IsUnique.

Referenced by System.Data.Common.DbCommandBuilder.BuildWhereClause(), and System.Data.Common.DbCommandBuilder.IncludeInWhereClause().