Click here to Skip to main content
15,886,518 members
Articles / Web Development / ASP.NET

Fluent API vs Data Annotations- Working with Configuration-Part 1

Rate me:
Please Sign up or sign in to vote.
4.95/5 (19 votes)
15 Oct 2012CPOL4 min read 65.6K   17  
Domain Model Layer will be better isolated from infrastructure implementation. Everything what you can configure with DataAnnotations is also possible with the Fluent API. The reverse is not true. So, from the viewpoint of configuration options and flexibility the Fluent API is “better”.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Singapore Singapore
A life-long-learner, maker and soft music fan. Likes building things to solve problems. Years of successful records serving mid and large scale .NET applications in domestic and international client environment. Expertise in different areas of software development life cycles and Software Architecture.

Always looks for new technology and loves to get hands dirty Smile | :)

Comments and Discussions