//构建自定义SQL语句 protected override void ExcutCommandText() { base.ExcutCommandText(); ExcutParBag_Excut bagPar = (ExcutParBag_Excut)this.excutParBag; this.CommandText = bagPar.commandText; this.SetDynamicParameters(bagPar.dynamicParma); }
public FindQuery(string commandText, dynamic dynamicParms, string targetdb = null) { excutParBag = new ExcutParBag_Excut(); this.SetTargetDb(targetdb.ToSafeString()); ((ExcutParBag_Excut)excutParBag).excutEnum = ExcutEnum.ExcutQuery; ((ExcutParBag_Excut)excutParBag).commandText = commandText; ((ExcutParBag_Excut)excutParBag).dynamicParma = new List <dynamic>(); if (dynamicParms != null) { ((ExcutParBag_Excut)excutParBag).dynamicParma.Add(dynamicParms); } }