Ejemplo n.º 1
0
        /// <summary>
        /// 获取删除语句
        /// </summary>
        /// <param name="filter">将参数化映射到标签中类的主键或其他字段上</param>
        /// <returns></returns>
        public string DeletePreRule(SqlRelationModel model, string pre)
        {
            DeleteTemplate delete = new DeleteTemplate();
            string         result = delete.DeleteWithCondition(model, pre);

            model.FilterFunction = null;
            return(result);
        }
Ejemplo n.º 2
0
 static SqlTemplate()
 {
     Select  = new SelectTemplate();
     Update  = new UpdateTemplate();
     Delete  = new DeleteTemplate();
     Insert  = new InsertTemplate();
     Repeate = new RepeateTemplate();
     Count   = new CountTemplate();
 }
Ejemplo n.º 3
0
        public string DeleteAftRule(SqlRelationModel model, string[] aft)
        {
            DeleteTemplate delete = new DeleteTemplate();

            return(delete.DeleteWithCondition(model, aft));
        }