コード例 #1
0
 public static IQueryable <T> xDbGetTable <T>(this IIdentityContext_SqlKata context) where T : class => throw new NotImplementedException();
コード例 #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));
 }
コード例 #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());
 }