Exemple #1
0
 public static void Initialize()
 {
     System.Data.Entity.Database.SetInitializer(new ScrumerDBInitializer());
     using (var db = new ScrumerContext())
     {
         {
             db.Database.Initialize(true);
         }
     }
 }
Exemple #2
0
 public UserController(ScrumerContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }