TortugaResearch / Tortuga.Chain

A fluent ORM for .NET
Other
335 stars 22 forks source link

GetByKey<TObject> and views #442

Open Grauenwolf opened 2 years ago

Grauenwolf commented 2 years ago

If using GetByKey<TObject> and a view, then look for a [Key] attribute on the TObject.

This is also used when the table doesn't contain a primary key.

Grauenwolf commented 2 years ago

UpdateByKey and DeleteByKey should probably do the same.