创建实体框架

编程入门 行业动态 更新时间:2024-10-19 09:40:50
本文介绍了创建实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是Entity框架和三层体系结构的新手。 我正在为一个客户端的pproject工作需要三层实体框架中的项目。 以下是图表的链接 imageshack/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 imageshack/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.

更多推荐

创建实体框架

本文发布于:2023-11-17 08:36:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609481.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实体   框架

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!