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

◆ IncludeInWhereClause()

bool System.Data.Common.DbCommandBuilder.IncludeInWhereClause ( DbSchemaRow row,
bool isUpdate )
inlineprivate

Definition at line 1133 of file DbCommandBuilder.cs.

1134 {
1135 bool flag = IncrementWhereCount(row);
1136 if (flag && row.IsHidden)
1137 {
1138 if (ConflictOption.CompareRowVersion == ConflictOption)
1139 {
1140 throw ADP.DynamicSQLNoKeyInfoRowVersionUpdate();
1141 }
1142 throw ADP.DynamicSQLNoKeyInfoUpdate();
1143 }
1144 if (!flag && ConflictOption.CompareAllSearchableValues == ConflictOption)
1145 {
1146 flag = !row.IsLong && !row.IsRowVersion && !row.IsHidden;
1147 }
1148 return flag;
1149 }

References System.Data.Common.ADP.DynamicSQLNoKeyInfoRowVersionUpdate(), System.Data.Common.ADP.DynamicSQLNoKeyInfoUpdate(), System.Data.Common.DbCommandBuilder.IncrementWhereCount(), and System.Data.Common.DbSchemaRow.IsHidden.

Referenced by System.Data.Common.DbCommandBuilder.BuildWhereClause().