Advertisement
Shuva_Dev

BlogUnitOfWork

Jul 4th, 2024
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using Blog.Domain.RepositoryContracts;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8.  
  9. namespace Blog.Infrastructure.UnitOfWorks
  10. {
  11.     public class BlogUnitOfWork : UnitOfWork
  12.     {
  13.         public IBlogPostRepository BlogPostRepository { get; private set; }
  14.         public BlogUnitOfWork(BlogDbContext dbContext,
  15.             IBlogPostRepository blogPostRepository) : base(dbContext)
  16.         {
  17.             BlogPostRepository = blogPostRepository;
  18.         }
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement