/// <summary> /// A SqlCeConnection extension method that executes the entity operation. /// </summary> /// <typeparam name="T">Generic type parameter.</typeparam> /// <param name="this">The @this to act on.</param> /// <param name="cmdText">The command text.</param> /// <param name="transaction">The transaction.</param> /// <returns>A T.</returns> public static T ExecuteEntity <T>(this SqlCeConnection @this, string cmdText, SqlCeTransaction transaction) where T : new() { return(@this.ExecuteEntity <T>(cmdText, null, CommandType.Text, transaction)); }
/// <summary> /// A SqlCeConnection extension method that executes the entity operation. /// </summary> /// <typeparam name="T">Generic type parameter.</typeparam> /// <param name="this">The @this to act on.</param> /// <param name="cmdText">The command text.</param> /// <param name="commandType">Type of the command.</param> /// <returns>A T.</returns> public static T ExecuteEntity <T>(this SqlCeConnection @this, string cmdText, CommandType commandType) where T : new() { return(@this.ExecuteEntity <T>(cmdText, null, commandType, null)); }
/// <summary> /// A SqlCeConnection extension method that executes the entity operation. /// </summary> /// <typeparam name="T">Generic type parameter.</typeparam> /// <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> /// <returns>A T.</returns> public static T ExecuteEntity <T>(this SqlCeConnection @this, string cmdText, SqlCeParameter[] parameters) where T : new() { return(@this.ExecuteEntity <T>(cmdText, parameters, CommandType.Text, null)); }