Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a7b2e7a

Browse files
Build changes applied
1 parent a59c86b commit a7b2e7a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎src/AspnetRun.Core/Interfaces/IAsyncRepository.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using AspnetRun.Core.Entities;
2+
using AspnetRun.Core.Entities.Base;
23
using System;
34
using System.Collections.Generic;
45
using System.Linq;
@@ -8,7 +9,7 @@
89

910
namespace AspnetRun.Core.Interfaces
1011
{
11-
public interface IAsyncRepository<T> where T : BaseEntity
12+
public interface IAsyncRepository<T> where T : Entity
1213
{
1314
Task<IReadOnlyList<T>> GetAllAsync();
1415
Task<IReadOnlyList<T>> GetAsync(Expression<Func<T, bool>> predicate);

‎src/AspnetRun.Infrastructure/Repository/AspnetRunRepository.cs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
using AspnetRun.Core.Entities;
1+
using AspnetRun.Core.Entities.Base;
22
using AspnetRun.Core.Interfaces;
33
using AspnetRun.Infrastructure.Data;
44
using Microsoft.EntityFrameworkCore;
55
using System;
66
using System.Collections.Generic;
77
using System.Linq;
88
using System.Linq.Expressions;
9-
using System.Text;
109
using System.Threading.Tasks;
1110

1211
namespace AspnetRun.Infrastructure.Repository
1312
{
14-
public class AspnetRunRepository<T> : IAsyncRepository<T> where T : BaseEntity
13+
public class AspnetRunRepository<T> : IAsyncRepository<T> where T : Entity
1514
{
1615
protected readonly AspnetRunContext _dbContext;
1716

‎src/AspnetRun.Infrastructure/Repository/SpecificationEvaluator.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using AspnetRun.Core.Entities;
2+
using AspnetRun.Core.Entities.Base;
23
using AspnetRun.Core.Interfaces;
34
using Microsoft.EntityFrameworkCore;
45
using System.Linq;
56

67
namespace AspnetRun.Infrastructure.Repository
78
{
8-
public class SpecificationEvaluator<T> where T : BaseEntity
9+
public class SpecificationEvaluator<T> where T : Entity
910
{
1011
public static IQueryable<T> GetQuery(IQueryable<T> inputQuery, ISpecification<T> specification)
1112
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /