I have a 4 layers(project) Solution.
- Entity Framework Layer (EFL)
- Data Access Layer(DLL): All of CRUD operations and queries.
- Business Logic Layer(BLL): Calling DLL methods and adding some business to them.
- MVC Layer
As I said I have a separate EFL layer and because of this I don't know How can I use benefits of models in MVC? for example I can't write validation Annotations like <required> or <Display(Name:="username:")> in EFL layer because probably they will delete if I generate model from database again. and even if I do that How I can use Model folder of MVC?
If I create some class same as EFL classes I need to write a huge bunch of code to convert these classes to each other.
As what structure I can use MVC Models? and combine them with Entity Framework classes?