/// <summary> /// 构造函数 /// </summary> /// <param name="dbContext"></param> /// <param name="tableName"></param> public SqlQueryDAL(string dbContext, string tableName) { db = DBContextFactory.GetDBContext(dbContext); TableName = tableName; }
/// <summary> /// 构造函数, 用于创建EF上下文对象 /// </summary> /// <param name="context">指定创建哪个上下文对象</param> public BaseDAL(string context) { db = DBContextFactory.GetDBContext(context); }