public void TestDoNotGetHiddenColumn() { var mdc = new ModelDefinitionConverter(); NLORM.Core.BasicDefinitions.ModelDefinition md = mdc.ConverClassToModelDefinition <TestClassC>(); Assert.AreEqual <int>(0, md.PropertyColumnDic.Count); }
public void TestDBTypeUInt16Gen() { var cfd = createFakeCfdByDbType(DbType.UInt16); var cfdDic = new Dictionary <string, BasicDefinitions.ColumnFieldDefinition>(); cfdDic.Add("test1", cfd); var md = new NLORM.Core.BasicDefinitions.ModelDefinition("Test", cfdDic); var sqlGen = new BaseSqlGenerator(); try { sqlGen.GenCreateTableSql(md); } catch (NLORM.Core.Exceptions.NLORMException nle) { Assert.AreEqual(nle.ErrorCode, "SG"); } catch (Exception e) { Assert.Fail(); } }