Class EfCorePostRepository
Inheritance
System.Object
EfCorePostRepository
Implements
IAsyncEnumerable<Post>
Inherited Members
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Posts.Post>.FindAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Posts.Post>.DeleteAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Posts.Post>.EnsureCollectionLoadedAsync<TProperty>(Volo.Blogging.Posts.Post, Expression<>, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Posts.Post>.EnsurePropertyLoadedAsync<TProperty>(Volo.Blogging.Posts.Post, Expression<>, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Posts.Post>.WithDetails(Expression<>[])
Namespace: Volo.Blogging.Posts
Assembly: Volo.Blogging.EntityFrameworkCore.dll
Syntax
public class EfCorePostRepository : EfCoreRepository<IBloggingDbContext, Post, Guid>, IAsyncEnumerable<Post>, IEfCoreRepository<Post, Guid>, IEfCoreRepository<Post>, IRepository<Post>, IRepository<Post, Guid>, ISupportsExplicitLoading<Post, Guid>, IPostRepository, IBasicRepository<Post, Guid>
Constructors
EfCorePostRepository(IDbContextProvider<IBloggingDbContext>)
Declaration
public EfCorePostRepository(IDbContextProvider<IBloggingDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<IBloggingDbContext> | dbContextProvider |
Methods
GetOrderedList(Guid, Boolean)
Declaration
public Task<List<Post>> GetOrderedList(Guid blogId, bool descending = false)
Parameters
Type | Name | Description |
---|---|---|
Guid | blogId | |
System.Boolean | descending |
Returns
Type | Description |
---|---|
Task<List<Post>> |
GetPostByUrl(Guid, String)
Declaration
public Task<Post> GetPostByUrl(Guid blogId, string url)
Parameters
Type | Name | Description |
---|---|---|
Guid | blogId | |
System.String | url |
Returns
Type | Description |
---|---|
Task<Post> |
GetPostsByBlogId(Guid)
Declaration
public Task<List<Post>> GetPostsByBlogId(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<List<Post>> |
WithDetails()
Declaration
public override IQueryable<Post> WithDetails()
Returns
Type | Description |
---|---|
IQueryable<Post> |
Overrides
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Posts.Post>.WithDetails()
Implements
IAsyncEnumerable<>