henkmollema / Dommel

CRUD operations with Dapper made simple.
MIT License
611 stars 99 forks source link

Resolving foreign key properties #28

Closed tborgesa closed 9 years ago

tborgesa commented 9 years ago

Hi,

In your implementation default of interface IForeignKeyPropertyResolver you only get the name of type + Id, but there is any property in the database that not follow this rule.

Maybe you can create a method in DommelEntityMap that set a name of FK Property and in the method ResolveForeignKeyProperty get this name or return this role above.

Thanks.

henkmollema commented 9 years ago

Hi,

Nice idea, I was planning to add something like this. Note that version 1.4 is still in beta. Please keep any suggestions coming :smile:

Regards

henkmollema commented 9 years ago

This should be fixed by Dapper.FluentMap.Dommel. Closing this issue here. https://github.com/henkmollema/Dapper-FluentMap/issues/30