如何使用Linq to sql隐含Ntire体系结构? [英] How to impliment Ntire architecture with the use of Linq to sql.?

查看:121
本文介绍了如何使用Linq to sql隐含Ntire体系结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用N-轮胎架构来实现一个项目,并且我不想使用sql查询,但是我想使用dbml和linq到sql.

因此,请帮助我并提供建议或任何示例...

I want to implement one project with the use of N-tire architecture, and i do not want to use sql queries, but i want to use dbml and linq to sql.

so please help me and provide me suggestion or if any sample...

推荐答案

您好,
好吧,这是我在使用Linq-To-Sql时的亲身经历.除了Web应用程序外,我还有3个类库.在第一个类库中,我定义了我的DBML,在第二个类库中,定义了业务逻辑和数据对象(连接到DBML的类),在第三个类中,定义了asp.net形式和代码.最后一个类库已分配给Common类和实用程序.那是一个非常简单但有效的架构:
Hi,
Well, this is my personal experience while using Linq-To-Sql. I had 3 class libraries in addition to a web-application. In the first class library I defined my DBMLs, in the second one, business logic and Data Objects(classes which connected to DBMLs) and in the third one, my asp.net forms and code behines. The last class library was assigned to Common classes and utilities. That was a very simple but effective architecture:
1- DAL--> DBMLs
2- BAL--> Connect to DBMLs and application logics
3- Common--> Utility classes
4- Web application



希望对您有帮助,
干杯



I hope it helps,
Cheers


这篇关于如何使用Linq to sql隐含Ntire体系结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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