如何实现ASP.NET三层架构,构建高效、可扩展的应用程序?
- 内容介绍
- 文章标签
- 相关推荐
本文共计2656个文字,预计阅读时间需要11分钟。
一、数据库
/*==============================================================*/ /* DBMS name: Microsoft SQL Server 2000 */ /*==============================================================*/ if exists (select 1 from sysobjects where id = object_id('newsContent') and type = 'U') drop table newsContent go /*==============================================================*/ /* Table: newsContent */ /*==============================================================*/ create table newsContent ( ID int identity(1,1) primary key, Title nvarchar(50) not null, Content ntext not null, AddDate datetime not null, CategoryID int not null ) go
二、项目文件架构
实现步骤为:4-3-6-5-2-1
实现步骤过程
1、创建Model,实现业务实体。
2、创建IDAL,实现接口。
3、创建SQLServerDAL,实现接口里的方法。
本文共计2656个文字,预计阅读时间需要11分钟。
一、数据库
/*==============================================================*/ /* DBMS name: Microsoft SQL Server 2000 */ /*==============================================================*/ if exists (select 1 from sysobjects where id = object_id('newsContent') and type = 'U') drop table newsContent go /*==============================================================*/ /* Table: newsContent */ /*==============================================================*/ create table newsContent ( ID int identity(1,1) primary key, Title nvarchar(50) not null, Content ntext not null, AddDate datetime not null, CategoryID int not null ) go
二、项目文件架构
实现步骤为:4-3-6-5-2-1
实现步骤过程
1、创建Model,实现业务实体。
2、创建IDAL,实现接口。
3、创建SQLServerDAL,实现接口里的方法。

