コード例 #1
0
        protected TestDapperPlusRepository(ITestDbProvider provider, string tableName, string schemeName = null)
        {
            _povider   = provider;
            _tableName = tableName;
            if (schemeName == null)
            {
                schemeName = DefaultScheme;
            }
            SchemeTableName = _povider.GetTableName(_tableName, schemeName);

            _mapper = DapperPlusManager.Entity <TEntity>().Table(_tableName).Identity(x => x.Id).BatchSize(100000);
        }
コード例 #2
0
 public static string GetProcedureName(this ITestDbProvider provider, string procedureName, string scheme = DefaultScheme)
 {
     return(provider.GetTableName(procedureName, scheme));
 }