public ParamDelete ToParamDelete() { var pDelete = ParamDelete.Instance(); pDelete.From(GetTableName()); EachWhere(c => pDelete.Where(builder => BuildCondition(builder, c))); return(pDelete); }
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); }