コード例 #1
0
        public void Setup()
        {
            var configuration = new ExampleInstaller().Config;

            //BuildSchema(configuration);

            new SchemaUpdate(configuration).Execute(true, true);
        }
コード例 #2
0
        public void Setup()
        {
            var configuration = new ExampleInstaller(NullLoggerFactory.Instance).Config;

            using (var dbContext = new ExampleDbContext(configuration.Options))
            {
                dbContext.Database.EnsureCreated();
            }
        }
コード例 #3
0
        public void Setup()
        {
            var configuration = new ExampleInstaller().BuildFluent().BuildConfiguration();

            new SchemaUpdate(configuration).Execute(true, true);
        }