Configuration of Entity Framework Code First is a necessary evil and you have to admit is a very well designed user friendly process. But, in typical Microsoft fashion, the EF developers have given us more than one way to perform this configuration.
So…When do you use which!?
Use Fluent Configuration When:
Use Attribute Configuration When:
Keith is a Senior Software Engineer with Falafel Software. He has been developing software since 1999 specializing in web-based solutions primarily using the Microsoft stack. He has been a Microsoft MVP in ASP.NET since 2012.
The opinions expressed herein are my own personal opinions and do not represent
my employer's view in any way.