示例#1
0
 /// <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&lt;T&gt;</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));
 }
示例#2
0
 /// <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&lt;IEnumerable&lt;T&gt;&gt;</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);
 }
示例#3
0
 /// <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&lt;T&gt;</returns>
 public static IDapperPlusActionSet <T> ThenBulkDelete <TEntity, T>(this IDapperPlusActionSet <IEnumerable <TEntity> > actionSet, params Func <TEntity, T>[] selectors)
 {
     return(actionSet.ThenBulkDelete(null, selectors));
 }
示例#4
0
 /// <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&lt;IEnumerable&lt;T&gt;&gt;</returns>
 public static IDapperPlusActionSet <IEnumerable <T> > AlsoBulkInsert <T>(this IDapperPlusActionSet <IEnumerable <T> > actionSet, params Func <T, object>[] selectors)
 {
     return(actionSet.AlsoBulkInsert(null, selectors));
 }