can we use attributed mapping instead of fluent mapping

Dec 31, 2014 at 5:44 AM
Can we use attributed mapping instead of fluent mapping for entity
Jan 2, 2015 at 9:30 AM
Edited Jan 2, 2015 at 9:32 AM
Yes, framework itself does not have any dependencies on attributes or fluent mapping classes, however we recommend non-attributed so that you have more pure PoCo and store all of this in separate mapping file e.g. https://genericunitofworkandrepositories.codeplex.com/SourceControl/latest#main/Sample/Northwind.Entities/Models/Mapping/CustomerMap.cs.
Marked as answer by lelong37 on 1/2/2015 at 1:30 AM
Jan 3, 2015 at 1:26 PM
Thanks Lelong37