henkmollema / Dommel

CRUD operations with Dapper made simple.
MIT License
634 stars 100 forks source link

Allow generated non-key properties #201

Closed henkmollema closed 4 years ago

henkmollema commented 4 years ago

Rename and repurpose KeyPropertyInfo to ColumnPropertyInfo and use it in both IPropertyResolver and IKeyPropertyResolver to allow specifying whether a property represents a generated database column via the [DatabaseGenerated] attribute.

Query generation for inserts and updates has been adjusted to skip generated properties.

Fixes #190