Cleanup netcore21 specific code

This commit is contained in:
nicolas.dorier
2020-01-12 13:30:54 +09:00
parent 9876208b7d
commit 629dfcf152
24 changed files with 9 additions and 144 deletions

View File

@@ -41,12 +41,10 @@ namespace BTCPayServer
{
public static class Extensions
{
#if !NETCOREAPP21
public static IQueryable<TEntity> Where<TEntity>(this Microsoft.EntityFrameworkCore.DbSet<TEntity> obj, System.Linq.Expressions.Expression<Func<TEntity, bool>> predicate) where TEntity : class
{
return System.Linq.Queryable.Where(obj, predicate);
}
#endif
public static string Truncate(this string value, int maxLength)
{