public BllBase() { //获取数据库连接 con = new Models.OilToolsPlantformEntities(); rm = new ResourceManager("OilToolsPlantform.data.ErrorCode", typeof(ErrorCode).Assembly); //在日志中写入执行的SQL con.Database.Log = s => com.Origin.CommonLibrary.Framework.LogHelper.SQL(s); }
public DalBase(Models.OilToolsPlantformEntities _con) { this.con = _con; }
public cToolDAL(Models.OilToolsPlantformEntities _con) : base(_con) { }