Example #1
0
 public ExtendedTable(
     IDatabase database,
     IKeyInfo <TEntity, TPrimaryKey> primaryKey,
     IdentitySpecification <TEntity> identity)
     : base(database, primaryKey, identity)
 {
 }
 public Table <TEntity, TPrimaryKey> CreateTable <TEntity, TPrimaryKey>(
     IKeyInfo <TEntity, TPrimaryKey> primaryKey,
     IdentitySpecification <TEntity> identitySpecification,
     IDatabase database)
     where TEntity : class
 {
     return(CreateTable(primaryKey, identitySpecification, database, null));
 }
 public Table <TEntity, TPrimaryKey> CreateTable <TEntity, TPrimaryKey>(
     IKeyInfo <TEntity, TPrimaryKey> primaryKey,
     IdentitySpecification <TEntity> identitySpecification,
     IDatabase database, object tableInfo)
     where TEntity : class
 {
     return(new ExtendedTable <TEntity, TPrimaryKey>(
                database,
                primaryKey,
                identitySpecification, tableInfo));
 }
Example #4
0
        public Table <TEntity, TPrimaryKey> CreateTable <TEntity, TPrimaryKey>(
            IKeyInfo <TEntity, TPrimaryKey> primaryKey,
            IdentitySpecification <TEntity> identitySpecification,
            IDatabase database)
            where TEntity : class
        {
            Table <TEntity, TPrimaryKey> table =
                new DefaultTable <TEntity, TPrimaryKey>(
                    database,
                    primaryKey,
                    identitySpecification);

            return(table);
        }