Exemple #1
0
        public ParamDelete ToParamDelete()
        {
            var settings = XElement.Parse(settingXml);
            var pDelete  = ParamDelete.Instance().From(getXmlElementValue(settings, "table"));

            parseWhere(settings, (name, value, compare, variable, extend) => pDelete.AndWhere(name, value, compare, extend));

            return(pDelete);
        }
Exemple #2
0
        protected IDeleteBuilder BuilderParse(ParamDelete param)
        {
            var data          = param.GetData();
            var deleteBuilder = db.Delete(data.From.Length == 0 ? typeof(T).Name : data.From);

            deleteBuilder.Where(data.WhereSql);

            return(deleteBuilder);
        }