c# - How to use entity framework in business layer and/or data layer? -


i use entity framework in asp.net application.

i can use linq entities in layer, know should put entity framework? (dal, bal or direct use in presentation).

entityframework should go in data access layer. expose presentation layer tightly couples presentation database, allowing changes @ database level flow presentation layer.

what have done on of our projects use entity framework @ dal, transform entities our business objects (which quite simple object used dto's of our logic contained in services act on objects - route isn't everyone, fitted architecht wanted).


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -