摘要:
public class BaseController<T> : Controller where T : class, new() { BaseDal<T> baseDal = new BaseDal<T>(); #region 通用基础方法 /// <summary> /// 新增 /// </ 阅读全文
摘要:
@{ ViewBag.Title = "测试页"; Layout = "~/Views/Shared/_LayoutPage.cshtml"; } <div> 上传文件 <input type="file" id="file" /> <br /> <input type="button" id="u 阅读全文
摘要:
public class BaseApiController<T> : ApiController where T : class { BaseDal<T> baseDal = new BaseDal<T>(); #region 通用Api /// <summary> /// 新增 /// </su 阅读全文
摘要:
/// <summary> /// 分页查询获取数据实体 /// </summary> /// <typeparam name="T"></typeparam> public class PageDataView<T> { private int _TotalNum; public PageData 阅读全文
摘要:
public class BaseDal<T> where T : class { #region 通用方法 /// <summary> /// 新增 /// </summary> /// <param name="model"></param> /// <returns></returns> pu 阅读全文
摘要:
public class DbHelper { static string connstr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; //public static IDbConnec 阅读全文