Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 166cb9e9

Přidáno uživatelem Milan Hotovec před téměř 4 roky(ů)

Completed data layer with migrations. With flags

Zobrazit rozdíly:

src/Modules/Goal/Infrastructure/Leuze.Modules.Goal.Infrastructure.Persistence/DependencyInjection.cs
55 55
                var context = serviceScope.ServiceProvider.GetRequiredService<LeuzeDbContext>();
56 56
                var appSettings = serviceScope.ServiceProvider.GetRequiredService<IOptions<AppSettings>>().Value;
57 57

  
58
                //TODO: This is debug delet this
58 59
                var user = context.Set<DomainUser>().Where(item => item.EmailAddress.Email == "ma@test.cz").FirstOrDefault();
59
                GoalDefinition gd = new GoalDefinition(user, user, "Test Goal definition", DateTime.Now, DateTime.Now.AddDays(10));
60
                GoalDefinition gd = new GoalDefinition(user, user, new GlobalDefinitionArea(user, DateTime.Now, DateTime.Now.AddDays(10)) ,"Test Goal definition");
60 61
                context.Add(gd);
61 62
                context.SaveChanges();
62 63
            }

Také k dispozici: Unified diff