Should i use partial classes as business layer when using entity framework?
Posted
by samsur
on Stack Overflow
See other posts from Stack Overflow
or by samsur
Published on 2010-05-30T20:32:07Z
Indexed on
2010/05/30
20:42 UTC
Read the original article
Hit count: 166
entity-framework
I am working on a project using entity framework. Is it okay to use partial classes of the EF generated classes as the business layer. I am begining to think that this is how EF is intended to be used.
I have attempted to use a DTO pattern and soon realized that i am just creating a bunch of mapping classes that is duplicating my effort and also a cause for more maintenance work and an additional layer.
I want to use self-tracking-entities and pass the EF entities to all the layers. Please share your thoughts and ideas. Thanks
© Stack Overflow or respective owner