Beispiel #1
0
 /// <summary>
 ///     A SqlCeConnection extension method that executes the scalar operation.
 /// </summary>
 /// <param name="this">The @this to act on.</param>
 /// <param name="cmdText">The command text.</param>
 /// <param name="commandType">Type of the command.</param>
 /// <param name="transaction">The transaction.</param>
 /// <returns>An object.</returns>
 public static T ExecuteScalarTo <T>(this SqlCeConnection @this, string cmdText, CommandType commandType, SqlCeTransaction transaction)
 {
     return(@this.ExecuteScalarTo <T>(cmdText, null, commandType, transaction));
 }
Beispiel #2
0
 /// <summary>
 ///     A SqlCeConnection extension method that executes the scalar operation.
 /// </summary>
 /// <param name="this">The @this to act on.</param>
 /// <param name="cmdText">The command text.</param>
 /// <param name="parameters">Options for controlling the operation.</param>
 /// <param name="commandType">Type of the command.</param>
 /// <returns>An object.</returns>
 public static T ExecuteScalarTo <T>(this SqlCeConnection @this, string cmdText, SqlCeParameter[] parameters, CommandType commandType)
 {
     return(@this.ExecuteScalarTo <T>(cmdText, parameters, commandType, null));
 }
Beispiel #3
0
 /// <summary>
 ///     A SqlCeConnection extension method that executes the scalar operation.
 /// </summary>
 /// <param name="this">The @this to act on.</param>
 /// <param name="cmdText">The command text.</param>
 /// <returns>An object.</returns>
 public static T ExecuteScalarTo <T>(this SqlCeConnection @this, string cmdText)
 {
     return(@this.ExecuteScalarTo <T>(cmdText, null, CommandType.Text, null));
 }
Beispiel #4
0
 /// <summary>
 ///     A SqlCeConnection extension method that executes the scalar operation.
 /// </summary>
 /// <param name="this">The @this to act on.</param>
 /// <param name="cmdText">The command text.</param>
 /// <param name="parameters">Options for controlling the operation.</param>
 /// <param name="transaction">The transaction.</param>
 /// <returns>An object.</returns>
 public static T ExecuteScalarTo <T>(this SqlCeConnection @this, string cmdText, SqlCeParameter[] parameters, SqlCeTransaction transaction)
 {
     return(@this.ExecuteScalarTo <T>(cmdText, parameters, CommandType.Text, transaction));
 }