POCOEntties更新问题 [英] POCOEntties updation problem
本文介绍了POCOEntties更新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了5个项目
1 for --Datacontext
2 for --DataaccessLayer
3 for --BLL
4 for --Presentlayer
我从Edm文件中划分Model.tt实体并在POCOProject中复制
现在我的问题是如何更新两个edmx文件poco实体。
请帮助我,我无法得到正确的解决方案。
I have created 5 project
1 for --Datacontext
2 for --DataaccessLayer
3 for --BLL
4 for --Presentlayer
and i have divided Model.tt entities from Edm file and copied in POCOProject
now my problem is how can i update both edmx file poco entities.
please help me i could not get the proper solution for that.
推荐答案
您可以考虑使用存储库模式。
参考
模型(POCO),实体框架和数据模式。 [ ^ ]
http://nullablecode.com/2013/09/splitting-entity-framework-model-classes-separate-projects/ [ ^ ]
希望这会给你一个想法......
You may consider using a Repository Pattern .
Refer
Models (POCO), Entity Framework and Data Patterns.[^]
http://nullablecode.com/2013/09/splitting-entity-framework-model-classes-separate-projects/[^]
Hope this gives you an idea...
这篇关于POCOEntties更新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文