henkmollema / Dommel

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

Allow manually entered key property #69

Closed orenht closed 6 years ago

orenht commented 7 years ago

Right now the sql builders just don't insert the key property

henkmollema commented 6 years ago

@orenht you can implement your own IKeyPropertyResolver interface which allows you to specify the isIdentity output parameter. Dommel will include the key property in the query when isIdentity is false.