protected virtual void LoadSchemaImpl() { InfoTable infoTable = new InfoTable(); infoTable.Create(DbConnection); infoTable.Create_Index(DbConnection); }
public void TestDomainTableInfo() { OrmLiteConfig.DialectProvider = SqliteDialect.Provider; InfoTable info = new InfoTable(); info.Should().NotBeNull(); Assert.Throws <NullReferenceException>(new TestDelegate( delegate { info.Create(null); })); Assert.Throws <NullReferenceException>(new TestDelegate( delegate { info.Create_Index(null); })); PropertyInfo pi = info.GetType().GetProperty("IndexName", BindingFlags.NonPublic | BindingFlags.Instance); pi.Should().NotBeNull(); Assert.IsNotNull(pi.GetValue(info)); pi = info.GetType().GetProperty("IndexFieldName", BindingFlags.NonPublic | BindingFlags.Instance); pi.Should().NotBeNull(); Assert.IsNotNull(pi.GetValue(info)); }