示例#1
0
    public TelerikUIExampleDbContext CreateDbContext(string[] args)
    {
        TelerikUIExampleEfCoreEntityExtensionMappings.Configure();

        var configuration = BuildConfiguration();

        var builder = new DbContextOptionsBuilder <TelerikUIExampleDbContext>()
                      .UseSqlServer(configuration.GetConnectionString("Default"));

        return(new TelerikUIExampleDbContext(builder.Options));
    }
示例#2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     TelerikUIExampleEfCoreEntityExtensionMappings.Configure();
 }