Entity Framework 4.1 - Code First with existing Database, how to define classes, using Attributes or EntityTypeConfiguration? What is the difference?
I have been studying the EF for a short time and cant find the answer to this question. I have existing database and I am using CodeFirst to create classes for the model. What is the difference in using Attributes and EntityTypeConfiguration to define parameters of table columns? Since the database already has defined foreign keys and unique constraints, and so on, how and where to implement the validation for a best and most fluid result for use in ASP.NET MVC3? Is it better to implement Attributes and CustomValidation or to use TryCatch blocks to catch errors from db? Does Validator