static SqlTemplate() { Select = new SelectTemplate(); Update = new UpdateTemplate(); Delete = new DeleteTemplate(); Insert = new InsertTemplate(); Repeate = new RepeateTemplate(); Count = new CountTemplate(); }
public string InsertRule(SqlRelationModel model) { var temp_model = model.ModelWithoutPrimary(); temp_model.ResetMembers(model.Tables); InsertTemplate insert = new InsertTemplate(); string sql = insert.Insert(temp_model); model.ClearFilter(); return(sql); }