예제 #1
0
        public static ClientsContext GetDbContext(string dbName)
        {
            var options = new DbContextOptionsBuilder <ClientsContext>()
                          .UseInMemoryDatabase(databaseName: dbName)
                          .Options;

            var dbContext = new ClientsContext(options);

            dbContext.Seed();

            return(dbContext);
        }