protected async Task <bool> ExistsAsync(TIdentifier identifier) { if (!identifier.IsValid) { return(false); } else { return(await Database.Set <TEntity>() .Where(WhereClause(identifier)) .AnyAsync()); } }