Exemplo n.º 1
0
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     modelBuilder.Entity <Area>().HasData(AreaRepository.getAreas());
     modelBuilder.Entity <ServiceInfo>().HasData(ServiceInfoRepository.getSerivecesInfo());
     modelBuilder.Entity <ServiceSoftware>().HasData(ServiceSoftwareRepository.getSerivecesSoftware());
     modelBuilder.Entity <ServiceHardware>().HasData(ServiceHardwareRepository.getSerivecesHardware());
     modelBuilder.Entity <Person>().HasData(PersonRepository.GetPeople());
     modelBuilder.Entity <Organization>().HasData(OrganizationRepository.GetOrganizations());
     modelBuilder.Entity <Contract>().HasData(ContractRepository.GetContracts());
 }
Exemplo n.º 2
0
 public ServiceInfoManager()
 {
     _IServiceInfoRepository = new ServiceInfoRepository();
 }