public DapperContext(string connectionStr, string logicDeleteSql, bool registerUserId) { ConnectionStr = connectionStr; DapperContextConfig = new DapperContextConfig() { SqlProvider = SqlProvider.MSSQL, LogicDeleteSql = logicDeleteSql, RegisterUserId = registerUserId }; }
public DapperContext(string connectionStr) { ConnectionStr = connectionStr; DapperContextConfig = new DapperContextConfig() { SqlProvider = SqlProvider.MSSQL, LogicDeleteSql = " IsDeleted=1 ", RegisterUserId = true }; }
public DapperContext(string connectionStr, DapperContextConfig config) { ConnectionStr = connectionStr; DapperContextConfig = config; }