public void Setup() { TestDb.Execute(Resources.testdb_b); Action <MySqlClassGenerator> a = delegate(MySqlClassGenerator x) { x.Formatter.AddAlias("a", "TestAlias1"); x.Formatter.AddAlias("AbCdEfGhIj"); x.AddColumnCollection("TestColl", typeof(TestCollEnum), typeof(int), typeof(int), Resources.testdb_b_name, new ColumnCollectionItem[] { ColumnCollectionItem.FromEnum(x.Formatter, "asdfA", TestCollEnum.A), ColumnCollectionItem.FromEnum(x.Formatter, "asdfB", TestCollEnum.B), ColumnCollectionItem.FromEnum(x.Formatter, "asdfC", TestCollEnum.C) }); x.AddColumnCollection("TestCollTwo", typeof(TestCollNestedEnum), typeof(int), typeof(int), Resources.testdb_b_name, new ColumnCollectionItem[] { ColumnCollectionItem.FromEnum(x.Formatter, "bbbbA", TestCollNestedEnum.A), ColumnCollectionItem.FromEnum(x.Formatter, "bbbbB", TestCollNestedEnum.B), ColumnCollectionItem.FromEnum(x.Formatter, "bbbbC", TestCollNestedEnum.C) }); }; _dbTypes = ClassCreatorHelper.GetTableTypes(Resources.testdb_b_name, a); _dbProperties = ClassCreatorHelper.GetTableTypeProperties(_dbTypes); _conn = TestDb.Open(); }
public void Setup() { TestDb.Execute(Resources.testdb_a); TestDb.Execute(Resources.testdb_a_view); _dbATypes = ClassCreatorHelper.GetTableTypes(Resources.testdb_a_name); _dbAProperties = ClassCreatorHelper.GetTableTypeProperties(_dbATypes); _dbAViewTypes = ClassCreatorHelper.GetTableTypes(Resources.testdb_a_view_name); _dbAViewProperties = ClassCreatorHelper.GetTableTypeProperties(_dbAViewTypes); _conn = TestDb.Open(); }
public void CreateViewTinyTextTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "ttxt", typeof(string)); }
public void CreateLongTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "l", typeof(long)); }
public void CreateIntNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "in", typeof(int?)); }
public void CreateFloatNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "fn", typeof(float?)); }
public void CreateByteTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "bu", typeof(byte)); }
public void CreateViewVarCharTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "vc", typeof(string)); }
public void CreateViewUShortTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "su", typeof(ushort)); }
public void CreateVarCharNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "vcn", typeof(string)); }
public void CreateUnsignedDoubleNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "dun", typeof(double?)); }
public void CreateUShortNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "sun", typeof(ushort?)); }
public void CreateULongNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "lun", typeof(ulong?)); }
public void CreateShortTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "s", typeof(short)); }
public void CreateSByteNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "bn", typeof(sbyte?)); }
public void CreateViewUIntTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "iu", typeof(uint)); }
public void CreateViewULongTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "lu", typeof(ulong)); }
public void CreateViewByteNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "bun", typeof(byte?)); }
public void CreateViewUnsignedDoubleTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "du", typeof(double)); }
public void CreateViewDoubleNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "dn", typeof(double?)); }
public void CreateBoolTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "boo", typeof(bool)); }
public void CreateViewLongNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "ln", typeof(long?)); }
public void CreateDoubleTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "d", typeof(double)); }
public void CreateViewSByteTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "b", typeof(sbyte)); }
public void CreateFloatTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "f", typeof(float)); }
public void CreateViewShortNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "sn", typeof(short?)); }
public void CreateIntTest() { ClassCreatorHelper.AssertContainsProperty(_dbAProperties, "i", typeof(int)); }
public void CreateViewTextNullableTest() { ClassCreatorHelper.AssertContainsProperty(_dbAViewProperties, "txtn", typeof(string)); }