91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 11.74MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-01
  • 語言: 其他
  • 標簽: MVC??EF??

資源簡介

完整EF實例demo,含增,刪,查,改,可運用到各個企業級項目,解壓即用。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Linq.expressions;
using?System.Text;
using?IBLL;
using?Comm;
using?Entity;

namespace?BLL
{
???public?class?baseBLL:IbaseBLL
????{
???????public?ShopDBEntities?entitys?=?EntityesContext.Instance();
???????public?bool?Addobject(T?t)
???????{
???????????return?EntityesContext.Insert(this.entitys?t);
???????}

???????public?bool?Updateobject(T?t)
???????{
???????????return?EntityesContext.Update(this.entitys?t);
???????}

???????public?bool?Deleteobject(T?t)
???????{
???????????return?EntityesContext.Delete(this.entitys?t);
???????}

???????public?T?GetSingle(expression>?model)?where?T?:?classnew()
???????{
???????????return?this.entitys.CreateobjectSet().FirstOrDefault(model);
???????}

???????public?IList?GetList(expression>?model)?where?T?:?classnew()
???????{
??????????
???????????
???????????return?this.entitys.CreateobjectSet().Where(model).ToList();
???????}

???????public?IList?GetList(expression>?model?expression>?order?int?rows?int?page?out?int?recordcount)?where?T?:?classnew()
???????{
???????????recordcount?=?GetCount(model);
???????????return?this.entitys.CreateobjectSet().Where(model).OrderByDescending(order).Skip((page?-?1)?*?rows).Take(rows).ToList();
???????}
???????public?IList?GetListAsc(expression>?model?expression>?order?int?rows?int?page?out?int?recordcount)?where?T?:?classnew()
???????{
???????????recordcount?=?GetCount(model);
???????????return?this.entitys.CreateobjectSet().Where(model).OrderBy(order).Skip((page?-?1)?*?rows).Take(rows).ToList();
???????}
???????public?int?GetCount(expression>?model)?where?T?:?classnew()
???????{
???????????return?this.entitys.CreateobjectSet().Where(model).Count();
???????}

???????public?IList?GetAll()?where?T?:?class
???????{
???????????return?this.entitys.CreateobjectSet().ToList();
???????}
???????public?IList?SqlQuery(string?sql?params?object[]?parametters)?where?T?:?class
???????{
???????????return?this.entitys.ExecuteStoreQuery(sql?parametters).ToList();
???????}
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-05-28?19:36??EF項目框架搭建實例\
?????文件????????2338??2016-05-28?17:00??EF項目框架搭建實例\baseBLL.cs
?????文件???????34031??2016-05-28?16:27??EF項目框架搭建實例\EntityesContext.cs
?????文件????????1614??2016-05-28?16:27??EF項目框架搭建實例\IbaseBLL.cs
?????目錄???????????0??2016-05-28?19:37??EF項目框架搭建實例\ShopInfo\
?????目錄???????????0??2016-05-28?19:36??EF項目框架搭建實例\ShopInfo\BLL\
?????文件????????2338??2016-05-28?17:00??EF項目框架搭建實例\ShopInfo\BLL\baseBLL.cs
?????目錄???????????0??2016-05-28?19:36??EF項目框架搭建實例\ShopInfo\BLL\bin\
?????目錄???????????0??2016-05-28?19:36??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\
?????文件????????6656??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\BLL.dll
?????文件???????17920??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\BLL.pdb
?????文件???????15360??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\Comm.dll
?????文件???????36352??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\Comm.pdb
?????文件????????9728??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\Entity.dll
?????文件???????19968??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\Entity.pdb
?????文件????????5120??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\IBLL.dll
?????文件????????7680??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\bin\Debug\IBLL.pdb
?????目錄???????????0??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\
?????文件????????6144??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\BLL.dll
?????文件???????13824??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\BLL.pdb
?????文件???????14336??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\Comm.dll
?????文件???????28160??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\Comm.pdb
?????文件????????9728??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\Entity.dll
?????文件???????15872??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\Entity.pdb
?????文件????????5120??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\IBLL.dll
?????文件????????7680??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\bin\Release\IBLL.pdb
?????文件????????2988??2016-05-28?17:27??EF項目框架搭建實例\ShopInfo\BLL\BLL.csproj
?????目錄???????????0??2016-05-29?02:32??EF項目框架搭建實例\ShopInfo\BLL\obj\
?????目錄???????????0??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\obj\Debug\
?????文件????????3054??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
?????文件???????33451??2017-06-19?15:07??EF項目框架搭建實例\ShopInfo\BLL\obj\Debug\BLL.csprojResolveAssemblyReference.cache
............此處省略579個文件信息

評論

共有 條評論