Hi,
I’d like to update one of two values in a record’s composite primary key…
await Db.UpdateOnlyAsync(() =>
new dsMapping.TargetTable
{
SourceSchemaName = table.SourceSchemaName,
SourceTableName = table.SourceTableName
},
where: t => string.Equals(t.SourceSchemaName, table.SourceSchemaName,
StringComparison.OrdinalIgnoreCase) &&
string.Equals(t.SourceTableName, table.SourceTableName,
StringComparison.OrdinalIgnoreCase));
Where TargetTable’s SourceSchemaName and SourceTableName columns comprise the primary key.
Data integrity is avoided through the other database changes, so there is no concern of duplicating a clustered index value.
It doesn’t look like any of OrmLite’s Update apis will allow this - is that correct?