Autofac使用 泛型类型 使用的表是Teacher,创建相关的IDAL、DAL、IBLL、BLL层。 使用EF,创建一个Model层,存放edmx文件。 创建一个Infrastructure层,基础设施项目,使用泛型类型。 1、控制台程序的使用 (1)使用流程 a.参见Autofac管理注册类的 ...
分类:
其他好文 时间:
2018-08-30 23:34:40
阅读次数:
444
三层架构与MVC的关系 三层架构是一个分层式的软件体系架构设计,分为:表现层(UI)、业务逻辑层(BLL)、数据访问层(DAL)。分层的目的是为了实现“高内聚,低耦合”的思想,有利于系统后期的维护、更新或者移植。 MVC是一个设计模式,分为::MVC 即Model(模型),View(视图),Cont ...
分类:
Web程序 时间:
2018-08-23 19:33:08
阅读次数:
212
/// <summary> /// 删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public int DeleteId(int id) { int i = bll.Delete(id); if (i ...
分类:
其他好文 时间:
2018-08-23 10:10:52
阅读次数:
182
private List<UserInfoModel> ShowPage() { //输入参数 PagePut pageput = new PagePut(); string tablename = " Biao a inner join HuXing b on a.HuXingID=b.HuXin ...
分类:
其他好文 时间:
2018-08-23 10:10:38
阅读次数:
166
小白做的导出功能 js部分: 控制器部分: BLL部分: 引入using System.IO和using NPOI.XSSF.UserModel,在解决方案下添加一个空文件夹derivation 和一个带有标题栏的excel文件的stencil文件夹,excel文件里的标题要跟代码循环部分数据对齐 ...
分类:
其他好文 时间:
2018-07-31 11:14:39
阅读次数:
145
Stubll bll = new Stubll(); public static int pages; public static string TableName = "Stu"; public static string IndexCol = "ID"; public static int Pa ...
分类:
其他好文 时间:
2018-07-30 11:18:38
阅读次数:
136
string str = ConfigurationManager.AppSettings["DBName"].ToString(); public Studal ss() { Assembly ass = Assembly.Load("Studal"); Studal t = (Studal)as ...
分类:
其他好文 时间:
2018-07-30 11:17:27
阅读次数:
222
public class FactoryController : Controller { ProductInfosBll bll = new ProductInfosBll(); CityBll city = new CityBll(); static int index = 1;//索引页 st ...
分类:
其他好文 时间:
2018-07-29 17:04:12
阅读次数:
198
1:ASP.NET MVC5+EF6+EasyUI 后台管理系统(1)-WebApi与Unity注入 使用Unity是为了使用我们后台的BLL和DAL层 2:ASP.NET MVC5+EF6+EasyUI 后台管理系统(2)-WebApi与Unity注入-配置文件 3:ASP.NET MVC5+EF ...