public int Execute(DataSet pDataSet, IParamValue pParamValue) { return Execute(pDataSet, pParamValue.GetDictionary()); }
internal static double ProcessParam(IParamValue Param_, double Value) => Param_.Min + (Value % (Param_.Max - Param_.Min));
public int Delete(IParamValue pParamValue) { return Delete(pParamValue.GetDictionary()); }
public DataSet Execute(IParamValue pParamValue) { return Execute(pParamValue.GetDictionary()); }
public int Insert(IParamValue pParamValue) { return Insert(pParamValue.GetDictionary()); }
public int Update(IParamValue pParamValue) { return Update(pParamValue.GetDictionary()); }
public CommandManager(ConnectionFactory pconFactory, IParamValue pParamValue) : this(pconFactory, CommandType.Text, pParamValue) { //Init(pconFactory); //BuildSQL(pParamValue); }
public CommandManager(ConnectionFactory pconFactory, CommandType pCommandType, IParamValue pParamValue) { mCommandType = pCommandType; Init(pconFactory); BuildSQL(pParamValue); }
public void SetParamValue(IParamValue pParamValue) { SetParamValue(pParamValue.GetDictionary()); }
public string getSQL(IParamValue pParamValue) { return getSQL(pParamValue.GetDictionary()); }
/// <summary> /// @author = Nguyen The Hung /// @LastModify = KhoaHT 25/08/2007 /// </summary> /// <returns>void</returns> public void BuildSQL(CommandType pCommandType, IParamValue pParamValue) { BuildSQL(pCommandType, pParamValue.GetDictionary()); }
/// <summary> /// @author = KhoaHT 10/09/2007 /// </summary> /// <returns>void</returns> public void BuildSQL(IParamValue pParamValue) { if (!DidBuildSQL()) { return; } else { comIdbCommand = mconFactory.MakeCommand(); comIdbCommand.Connection = mconFactory.ConIdbConnection; mconFactory.AssignCommand(comIdbCommand);// KhoaHT: Gan transaction cho command comIdbCommand.CommandType = mCommandType; comIdbCommand.CommandText = getSQL(pParamValue); BuildParam(pParamValue); SetParamValue(pParamValue); } }
public void BuildParam(IParamValue pParamValue) { BuildParam(pParamValue.GetDictionary()); }