Exemple #1
0
        private ErrorCentralContext Seed()
        {
            var context = new ErrorCentralContext(Options);

            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();


            context.Add(new UserBuilder().Build());

            context.SaveChanges();

            context.AddRange(_logErrors[0], _logErrors[1]);

            context.SaveChanges();

            return(context);
        }
Exemple #2
0
        private ErrorCentralContext Seed()
        {
            var context = new ErrorCentralContext(Options);

            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();

            context.Add(_user);

            context.SaveChanges();

            return(context);
        }