Ejemplo n.º 1
0
        public CorePersistenceContext(IServiceProvider serviceProvider)
        {
            if (context == null)
            {
                context = serviceProvider.GetService <CoreDbContext>();
            }

            context?.Database.Migrate();

            actionItemRepository = new ActionItemRepository(context);
            userRepository       = new UserRepository(context);
        }
Ejemplo n.º 2
0
 public ActionItemRepository(CoreDbContext context)
 {
     this.context = context;
 }
Ejemplo n.º 3
0
 public UserRepository(CoreDbContext context)
 {
     this.context = context;
 }