示例#1
0
 internal RdbTable(IRepositoryInternal repository)
 {
     _repository = repository;
     _meta       = repository.EntityMeta;
     _tableInfo  = repository.TableInfo;
     _columns    = new List <RdbColumn>();
 }
示例#2
0
文件: RdbTable.cs 项目: hardCTE/Rafy
 internal RdbTable(IRepositoryInternal repository)
 {
     _repository = repository;
     _meta = repository.EntityMeta;
     _tableInfo = repository.TableInfo;
     _columns = new List<RdbColumn>();
 }
示例#3
0
文件: RdbTable.cs 项目: zhuwansu/Rafy
        internal RdbTable(IRepositoryInternal repository)
        {
            _repository = repository;
            _meta = repository.EntityMeta;
            _tableInfo = repository.TableInfo;
            _columns = new List<RdbColumn>();

            _deleteSql = new Lazy<string>(this.GenerateDeleteSQL);
            _updateSQL = new Lazy<string>(() => this.GenerateUpdateSQL(null));
            _insertSql = new Lazy<string>(() => this.GenerateInsertSQL(false));
            _insertSqlWithId = new Lazy<string>(() => this.GenerateInsertSQL(true));
        }