Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="paramName"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public override IDataParameter CreateParameter(string paramName, object value)
 {
     return(MySqlParamHelper.MakeInParam(paramName, value));
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="paramName"></param>
 /// <param name="dbType"></param>
 /// <param name="size"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public override IDataParameter CreateParameter(string paramName, int dbType, int size, object value)
 {
     return(MySqlParamHelper.MakeInParam(paramName, (MySqlDbType)dbType, size, value));
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="paramName"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public override IDataParameter CreateParameterByBlob(string paramName, object value)
 {
     return(MySqlParamHelper.MakeInParam(paramName, MySqlDbType.Blob, 0, value));
 }
Esempio n. 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="paramName"></param>
 /// <param name="value"></param>
 public override void AddParam(string paramName, object value)
 {
     AddParam(MySqlParamHelper.MakeInParam(paramName, value));
 }
Esempio n. 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="paramName"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public override void AddParameterByGuid(string paramName, object value)
 {
     AddParameter(MySqlParamHelper.MakeInParam(paramName, MySqlDbType.VarChar, 32, value));
 }
Esempio n. 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="field"></param>
 /// <param name="sqlDbType"></param>
 /// <param name="size"></param>
 /// <param name="value"></param>
 protected override void AddParameter(string field, int sqlDbType, int size, object value)
 {
     AddParameter(MySqlParamHelper.MakeInParam(field, (MySqlDbType)sqlDbType, size, value));
 }
Esempio n. 7
0
 /// <summary>
 /// 添加参数
 /// </summary>
 /// <param name="field">字段名称</param>
 /// <param name="value">参数</param>
 public override void AddParameter(string field, object value)
 {
     AddParameter(MySqlParamHelper.MakeInParam(field, value));
 }
Esempio n. 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="paramName"></param>
 /// <param name="dbType"></param>
 /// <param name="size"></param>
 /// <param name="value"></param>
 protected override void AddExpressParam(string paramName, int dbType, int size, object value)
 {
     AddExpressParam(MySqlParamHelper.MakeInParam(paramName, (MySqlDbType)dbType, size, value));
 }
Esempio n. 9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="paramName"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public override void AddParameterByText(string paramName, object value)
 {
     AddParameter(MySqlParamHelper.MakeInParam(paramName, MySqlDbType.LongText, 0, value));
 }