示例#1
0
        protected override void Seed(LikesDbContext context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method
            //  to avoid creating duplicate seed data.
        }
示例#2
0
 public PageLikesRepository(LikesDbContext likesDbContext)
 {
     _likesDbContext = likesDbContext;
 }
 public LikesService(LikesDbContext db, IMapper mapper)
     : base(db)
     => this.mapper = mapper;