Ejemplo n.º 1
0
 public void ShouldBindModelToTableModel()
 {
     ModelTest model = new ModelTest() { id = 1, name = "test"};
     TableModel tModel = new ModelLinker<ModelTest>(model).LinkModel();
     Assert.AreEqual("TAB_MODEL", tModel.GetTableName());
     Assert.AreEqual(1, tModel.GetColumnValue("MODEL_ID"));
     Assert.AreEqual("test", tModel.GetColumnValue("name"));
 }
Ejemplo n.º 2
0
 public void ShouldGenerateInsertSQLStatement()
 {
     ModelTest model = new ModelTest() { id = 1, name = "test"};
     XBind xbind = default_xbind();
     xbind.Save<ModelTest>(model);
 }