예제 #1
0
 static SqlTemplate()
 {
     Select  = new SelectTemplate();
     Update  = new UpdateTemplate();
     Delete  = new DeleteTemplate();
     Insert  = new InsertTemplate();
     Repeate = new RepeateTemplate();
     Count   = new CountTemplate();
 }
예제 #2
0
        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);
        }