What is the easiest way to support sql server rowversion during update?
I tried this:
db.UpdateOnly(u, f => new { f.Name, f.Description, f.Modified, f.ModifiedBy }, f => f.Version == u.Version && f.Id == u.Id);
but that fails miserably because it compares version as a Varchar(8000)
, go figure.
Not exactly the same but still a ServiceStack and OrmLite question:
What is the best way to eager load related entity descriptions? I've seen this but noticed the Join
changeset being checked in? This has lead to the POCO classes now having additional "Ignored" descriptions for each of the foreign keys.