Example #1
0
 public int Execute(DataSet pDataSet, IParamValue pParamValue)
 {
     return Execute(pDataSet, pParamValue.GetDictionary());
 }
Example #2
0
 internal static double ProcessParam(IParamValue Param_, double Value) =>
 Param_.Min + (Value % (Param_.Max - Param_.Min));
Example #3
0
 public int Delete(IParamValue pParamValue)
 {
     return Delete(pParamValue.GetDictionary());
 }
Example #4
0
 public DataSet Execute(IParamValue pParamValue)
 {
     return Execute(pParamValue.GetDictionary());
 }
Example #5
0
 public int Insert(IParamValue pParamValue)
 {
     return Insert(pParamValue.GetDictionary());
 }
Example #6
0
 public int Update(IParamValue pParamValue)
 {
     return Update(pParamValue.GetDictionary());
 }
Example #7
0
 public CommandManager(ConnectionFactory pconFactory, IParamValue pParamValue)
     : this(pconFactory, CommandType.Text, pParamValue)
 {
     //Init(pconFactory);
     //BuildSQL(pParamValue);
 }
Example #8
0
 public CommandManager(ConnectionFactory pconFactory, CommandType pCommandType, IParamValue pParamValue)
 {
     mCommandType = pCommandType;
     Init(pconFactory);
     BuildSQL(pParamValue);
 }
Example #9
0
 public void SetParamValue(IParamValue pParamValue)
 {
     SetParamValue(pParamValue.GetDictionary());
 }
Example #10
0
 public string getSQL(IParamValue pParamValue)
 {
     return getSQL(pParamValue.GetDictionary());
 }
Example #11
0
 /// <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());
 }
Example #12
0
 /// <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);
     }
 }
Example #13
0
 public void BuildParam(IParamValue pParamValue)
 {
     BuildParam(pParamValue.GetDictionary());
 }