Beispiel #1
0
        // test not working properly yet
        public void GenerateData()
        {
            Post post = new Post()
            {
                Id       = 1,
                Created  = DateTime.Now,
                Modified = DateTime.Now,
                Type     = PostType.Activity
            };

            using (var context = new VisitingStolacDbContext(_options))
            {
                context.Posts.Add(post);
                context.SaveChanges();
            }
        }