mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 07:01:16 +03:00
@@ -56,7 +56,9 @@ namespace PracticeCalendar.Infrastructure.Persistence
|
||||
// Seed, if necessary
|
||||
if (!context.PracticeEvents.Any())
|
||||
{
|
||||
context.PracticeEvents.Add(new PracticeEvent("Event 1", "Event 1 desc"));
|
||||
context.PracticeEvents.Add(new PracticeEvent("Event 1", "Event 1 desc",
|
||||
DateTime.Now.AddHours(-1),
|
||||
DateTime.Now.AddHours(1)));
|
||||
|
||||
await context.SaveChangesAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user