@@ -12,13 +12,13 @@ namespace MZBase.EntityFrameworkCore
1212 /// <typeparam name="DBModelEntity">The type of the database model entity.</typeparam>
1313 /// <typeparam name="DomainModelEntity">The type of the domain model entity.</typeparam>
1414 /// <typeparam name="PrimaryKeyType">The type of the primary key.</typeparam>
15- public class LDRCompatibleRepositoryAsync < DomainModelEntity , DBModelEntity , PrimaryKeyType > : BaseRepositoryAsync < DomainModelEntity , DBModelEntity , PrimaryKeyType > , ILDRCompatibleRepositoryAsync < DomainModelEntity , DBModelEntity , PrimaryKeyType >
15+ public class LDRCompatibleRepositoryAsync < DomainModelEntity , DBModelEntity , PrimaryKeyType > : RepositoryAsync < DomainModelEntity , DBModelEntity , PrimaryKeyType > , ILDRCompatibleRepositoryAsync < DomainModelEntity , DBModelEntity , PrimaryKeyType >
1616 where DomainModelEntity : Model < PrimaryKeyType >
1717 where DBModelEntity : DomainModelEntity , IConvertibleDBModelEntity < DomainModelEntity > , new ( )
1818 where PrimaryKeyType : struct
1919 {
2020 /// <summary>
21- /// Initializes a new instance of the <see cref="LDRCompatibleRepositoryAsync {DBModelEntity, DomainModelEntity, PrimaryKeyType}"/> class.
21+ /// Initializes a new instance of the <see cref="BaseLDRCompatibleRepositoryAsync {DBModelEntity, DomainModelEntity, PrimaryKeyType}"/> class.
2222 /// </summary>
2323 /// <param name="context">The database context.</param>
2424 public LDRCompatibleRepositoryAsync ( DbContext context ) : base ( context )
@@ -34,5 +34,10 @@ public virtual async Task<LinqDataResult<DomainModelEntity>> AllItemsAsync(LinqD
3434 {
3535 return await _context . Set < DBModelEntity > ( ) . ToLinqDataResultAsync < DomainModelEntity > ( request . Take , request . Skip , request . Sort , request . Filter ) ;
3636 }
37+
38+ public virtual LinqDataResult < DomainModelEntity > AllItems ( LinqDataRequest request )
39+ {
40+ return _context . Set < DBModelEntity > ( ) . ToLinqDataResult < DomainModelEntity > ( request . Take , request . Skip , request . Sort , request . Filter ) ;
41+ }
3742 }
3843}
0 commit comments