public string SelectCountSource(SqlRelationModel model) { CountTemplate template = new CountTemplate(); StringBuilder sql = new StringBuilder(); model.UseDefaultFilter(); sql.Append(template.SelectCount(model.EntityModel)); sql.Append(JoinRule(model, model.Sources)); model.ClearFilter(); return(sql.ToString()); }
public string InsertSource(SqlRelationModel parameter_model) { parameter_model.UseDefaultFilter(); return(InsertRule(parameter_model)); }
public string UpdateSource(SqlRelationModel model) { model.UseDefaultFilter(); return(UpdateRule(model, model.AfterTables)); }