예제 #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);
        }
예제 #3
0