-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for EF Fluent API #90
Comments
No, I didn't create a fluent api for mapping columns to C# properties. I agree that it is something that would be nice to have. Based on your title, it sounds like you'd want to be able to pass a |
For mapping properties of my classes i don't use ColumnAttribute but i use HasColumnName method of EntityFramework fluent api.
EntityFramework stores mapping in DbContext. It can be retreived this way https://romiller.com/2015/08/05/ef6-1-get-mapping-between-properties-and-columns/ I can't use ColumnAttribute because classes are in domain and they're isolated from data layer. |
Yes, I hear what you're saying. Like I said, it would be a good feature to add as a separate library that is dependent on both It is doable, but it will take some time. It is going to require some work that I've been wanting to do to improve the architecture of the mapping between the results and the returned objects. This work will likely take some time, so I can't really give you an estimate on when I'll have something ready, unfortunately. |
Ok, i see. Thanks |
Seems it can't be used fluent API configuration for mapping fields.
Such as http://www.entityframeworktutorial.net/code-first/fluent-api-in-code-first.aspx
The text was updated successfully, but these errors were encountered: