Ejemplo n.º 1
0
        public LimsDbContext CreateDbContext(string[] args)
        {
            LimsEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new LimsDbContext(builder.Options));
        }
Ejemplo n.º 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     LimsEfCoreEntityExtensionMappings.Configure();
 }