/// <summary> /// Enumerates execute entities in this collection. /// </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>An enumerator that allows foreach to be used to process execute entities in this collection.</returns> public static IEnumerable <T> ExecuteEntities <T>(this SqlCeConnection @this, string cmdText, SqlCeTransaction transaction) where T : new() { return(@this.ExecuteEntities <T>(cmdText, null, CommandType.Text, transaction)); }
/// <summary> /// Enumerates execute entities in this collection. /// </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>An enumerator that allows foreach to be used to process execute entities in this collection.</returns> public static IEnumerable <T> ExecuteEntities <T>(this SqlCeConnection @this, string cmdText, CommandType commandType) where T : new() { return(@this.ExecuteEntities <T>(cmdText, null, commandType, null)); }
/// <summary> /// Enumerates execute entities in this collection. /// </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>An enumerator that allows foreach to be used to process execute entities in this collection.</returns> public static IEnumerable <T> ExecuteEntities <T>(this SqlCeConnection @this, string cmdText, SqlCeParameter[] parameters) where T : new() { return(@this.ExecuteEntities <T>(cmdText, parameters, CommandType.Text, null)); }