Ejemplo n.º 1
0
 public static IQueryable <T> xDbGetTable <T>(this IIdentityContext_SqlKata context) where T : class => throw new NotImplementedException();
Ejemplo n.º 2
0
 public static async Task <int> xDbUpdateAsync <T>(this IIdentityContext_SqlKata context, T data, CancellationToken cancellationToken = default)
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(await context.Query.UpdateAsync(data));
 }
Ejemplo n.º 3
0
 public static async Task <int> xDbDeleteAsync <T, TKey>(this IIdentityContext_SqlKata context, T data, CancellationToken cancellationToken = default) where T : IId <TKey> where TKey : IEquatable <TKey>
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(await context.Query.Where(nameof(data.Id), data.Id).DeleteAsync());
 }