Exemplo n.º 1
0
 /// <summary>The main.</summary>
 /// <param name="args">The args.</param>
 private static void Main(string[] args)
 {
     var dbContext = new DatabaseContext();
     var story = ExampleStoryGenerator.MakeExampleStory();
     dbContext.Stories.Add(story);
     dbContext.SaveChanges();
     //RunStory("Demo");
     //dbContext.Stories.Remove(story);
     //dbContext.SaveChanges();
     Console.ReadKey();
 }
Exemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="StoryReadRepository" /> class.</summary>
 public StoryReadRepository()
 {
     this.databaseContext = new DatabaseContext();
 }