Наследование: ComparerTests.TestCaseStructure
Пример #1
0
 public static TableColumn[] CreateResourceTypeAndIdColumns(ColumnNullable nullable = ColumnNullable.True)
 {
     return(new TableColumn[]
     {
         new IntColumn("resource_type", nullable),
         new BigIntColumn("resource_id", nullable)
     });
 }
Пример #2
0
 public static TableColumn[] CreateUserIdAndNameColumns(ColumnNullable nullable = ColumnNullable.True)
 {
     return(new TableColumn[]
     {
         new BigIntColumn("user_id", nullable),
         new StringColumn("user_name", ColumnConstants.StrLenStd, nullable)
     });
 }
Пример #3
0
 public static TableColumn[] CreateAuditColumnsWithNames(ColumnNullable nullable = ColumnNullable.True)
 {
     return(new TableColumn[]
     {
         new DateTimeColumn("date_change", nullable),
         new BigIntColumn("user_id_change", nullable),
         new StringColumn("user_name_change", ColumnConstants.StrLenStd, nullable)
     });
 }
Пример #4
0
 public TableColumn(
     string name, SqlDbType sqlDbType, int length = 0, ColumnNullable nullable = ColumnNullable.True, bool identity = false)
 {
     _name      = name;
     _sqlDbType = sqlDbType;
     _length    = length;
     _nullable  = nullable;
     _identity  = identity;
 }
Пример #5
0
 public static TableColumn[] CreateResourceTypeAndIdColumnsWithName(ColumnNullable nullable)
 {
     return(new TableColumn[]
     {
         new IntColumn("resource_type", nullable),
         new BigIntColumn("resource_id", nullable),
         new Ct7UniqueNameColumn("resource_unique_name"),
         new Ct7NameColumn("resource_name")
     });
 }
Пример #6
0
 public IdColumn(string name, ColumnNullable nullable = ColumnNullable.False, bool identity = false)
     : base(name, nullable, identity)
 {
 }
Пример #7
0
 public DateTimeColumn(string name, ColumnNullable nullable = ColumnNullable.True)
     : base(name, SqlDbType.DateTime, 0, nullable)
 {
 }
Пример #8
0
 public FloatColumn(string name, ColumnNullable nullable = ColumnNullable.True)
     : base(name, SqlDbType.Float, 0, nullable)
 {
 }
Пример #9
0
 public BigIntColumn(string name, ColumnNullable nullable = ColumnNullable.True, bool identity = false)
     : base(name, SqlDbType.BigInt, 0, nullable, identity)
 {
 }
Пример #10
0
 public Ct7NameColumn(string colName = "name", ColumnNullable nullable = ColumnNullable.True)
     : base(colName, ColumnConstants.StrLenStd, nullable)
 {
 }
Пример #11
0
 public BitColumn(string name, ColumnNullable nullable = ColumnNullable.False)
     : base(name, SqlDbType.Bit, 0, nullable)
 {
 }
Пример #12
0
 public CharColumn(string name, int length, ColumnNullable nullable = ColumnNullable.True)
     : base(name, SqlDbType.VarChar, length, nullable)
 {
 }
Пример #13
0
 public GuidColumn(string name, ColumnNullable nullable = ColumnNullable.True)
     : base(name, SqlDbType.UniqueIdentifier, 0, nullable)
 {
 }
Пример #14
0
 public TableColumn()
 {
     _nullable = ColumnNullable.True;
 }