Linq to Sql - 3层设计 [英] Linq to Sql - 3 Tier Design

查看:55
本文介绍了Linq to Sql - 3层设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,


推荐答案

嗨Martyn,

Linq与之无关你的架构,至少不是直接的。数据访问可以基于Linq To SQL或Linq To Entities,但这并不意味着"完全替换DAL"。并且"直接从BLL使用"。它只是允许更容易的数据操作,特别是在查询和连接来自不同来源的数据时

请检查以下链接

http://code.msdn.microsoft.com/multitierlinqtosql

http://blogs.msdn.com/mirceat/archive/2008/03/13/linq-framework-design-guidelines.aspx

Linq到Sql的多层体系结构示例

http://multitierlinqtosql.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33761


N层架构中的LINQ to SQL
http://www.codeproject.com/KB/linq/LINQ2SQLNTiers.aspx

问候
阿扎

中号ark as Answer如果这有帮助
Hi Martyn,

Linq has nothing to do with your architecture, at least not directly. Data access can be based on Linq To SQL or Linq To Entities, but that is not meant to "replace the DAL entirely" and to be "used from the BLL directly". It just allows easier data manipulation, especially when querying and joining data from different sources

Please check the below links

http://code.msdn.microsoft.com/multitierlinqtosql

http://blogs.msdn.com/mirceat/archive/2008/03/13/linq-framework-design-guidelines.aspx

Example of a Multi Tier Architecture for Linq to Sql

http://multitierlinqtosql.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33761


 LINQ to SQL in N-Tier architectures

http://www.codeproject.com/KB/linq/LINQ2SQLNTiers.aspx

Regards
Azhar

Mark as Answer if this helps


这篇关于Linq to Sql - 3层设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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