Ejemplo n.º 1
0
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.ApplyConfiguration(ServerMetadata.GetConfiguration());
            modelBuilder.ApplyConfiguration(ServerIpV4.GetIpV4Configuration());
            modelBuilder.ApplyConfiguration(ServerIpV6.GetIpV6Configuration());
            modelBuilder.ApplyConfiguration(Server.GetConfiguration());

            base.OnModelCreating(modelBuilder);
        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            modelBuilder.Configurations.Add(ServerMetadata.GetConfiguration());
            modelBuilder.Configurations.Add(ServerIpV4.GetIpV4Configuration());
            modelBuilder.Configurations.Add(ServerIpV6.GetIpV6Configuration());
            modelBuilder.Configurations.Add(Server.GetConfiguration());
            modelBuilder.Configurations.Add(VideoChannel.GetConfiguration());
            modelBuilder.Configurations.Add(RecognitionLog.GetConfiguration());
        }