/// <summary>DELETE entities in a database table or a view using a lambda expression.</summary> /// <typeparam name="TEntity">Type of the entity.</typeparam> /// <typeparam name="T">Generic type parameter.</typeparam> /// <param name="actionSet">The actionSet to act on.</param> /// <param name="mapperKey">The mapper key.</param> /// <param name="selectors">The selection of entities to delete.</param> /// <returns>An IDapperPlusActionSet<T></returns> public static IDapperPlusActionSet <T> ThenBulkDelete <TEntity, T>(this IDapperPlusActionSet <IEnumerable <TEntity> > actionSet, string mapperKey, params Func <TEntity, T>[] selectors) { return(actionSet.CreateDapperAction(mapperKey, DapperPlusActionKind.Delete, selectors)); }
/// <summary>INSERT entities in a database table or a view using a lambda expression.</summary> /// <typeparam name="T">Generic type parameter.</typeparam> /// <param name="actionSet">The actionSet to act on.</param> /// <param name="mapperKey">The mapper key.</param> /// <param name="selectors">The selection of entities to insert.</param> /// <returns>An IDapperPlusActionSet<IEnumerable<T>></returns> public static IDapperPlusActionSet <IEnumerable <T> > AlsoBulkInsert <T>(this IDapperPlusActionSet <IEnumerable <T> > actionSet, string mapperKey, params Func <T, object>[] selectors) { actionSet.AddAction(mapperKey, DapperPlusActionKind.Insert, selectors); return(actionSet); }
/// <summary>DELETE entities in a database table or a view using a lambda expression</summary> /// <typeparam name="TEntity">Type of the entity.</typeparam> /// <typeparam name="T">Generic type parameter.</typeparam> /// <param name="actionSet">The actionSet to act on.</param> /// <param name="selectors">The selection of entities to delete.</param> /// <returns>An IDapperPlusActionSet<T></returns> public static IDapperPlusActionSet <T> ThenBulkDelete <TEntity, T>(this IDapperPlusActionSet <IEnumerable <TEntity> > actionSet, params Func <TEntity, T>[] selectors) { return(actionSet.ThenBulkDelete(null, selectors)); }
/// <summary>INSERT entities in a database table or a view using a lambda expression.</summary> /// <typeparam name="T">Generic type parameter.</typeparam> /// <param name="actionSet">The actionSet to act on.</param> /// <param name="selectors">The selection of entities to insert.</param> /// <returns>An IDapperPlusActionSet<IEnumerable<T>></returns> public static IDapperPlusActionSet <IEnumerable <T> > AlsoBulkInsert <T>(this IDapperPlusActionSet <IEnumerable <T> > actionSet, params Func <T, object>[] selectors) { return(actionSet.AlsoBulkInsert(null, selectors)); }