public static IQueryable <T> xDbGetTable <T>(this IIdentityContext_SqlKata context) where T : class => throw new NotImplementedException();
public static async Task <int> xDbUpdateAsync <T>(this IIdentityContext_SqlKata context, T data, CancellationToken cancellationToken = default) { cancellationToken.ThrowIfCancellationRequested(); return(await context.Query.UpdateAsync(data)); }
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()); }