创建实体框架 [英] Create an Entity Framework

查看:50
本文介绍了创建实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是Entity框架和三层体系结构的新手。

我正在为一个客户端的pproject工作需要三层实体框架中的项目。



以下是图表的链接



http://imageshack.com/a/img401/2114/cg2z.png [ ^ ]



我尝试通过教程创建可执行文件,但我没有做对。



你能帮忙创建骨架。



提前致谢



clickety

Hi,

I am New to Entity framework and three tier architecture.
I am working on a pproject for which the client needs the project in 3-tier entity framework.

Below is the link to diagram

http://imageshack.com/a/img401/2114/cg2z.png[^]

I tried creating the executable going through the tutorials but i am not getting it right.

Could you please help in creating the skeleton.

Thanks in advance

clickety

推荐答案

此图与3层架构无关。 3层和EF是不一样的,但是你可以通过将所有EF代码放入数据层dll来实现。我个人认为这仍然是一个好主意,尤其是创建类的好主意,所以你的LINQ查询只能编写一次,而不是分散在你的代码中。



你如果你不知道怎么做,不应该从希望你做工作的雇主那里得到图表。
This diagram has nothing to do with a 3 tier architecture. 3 tier and EF are kind of at odds, but you can do it, by putting all your EF code in to a data layer dll. I personally think that it's still a good idea, and especially a good idea to create classes so your LINQ queries only get written once instead of scattered through your code.

You should not be getting diagrams from an employer who wants you to do work if you have no idea how to do it.


这篇关于创建实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆