public void Configure(EntityTypeBuilder <Cooler> builder)
        {
            ConfigureUtils.ProductConfigure(builder);

            builder.Property(c => c.CompatibleSockets).IsRequired();
            builder.Property(c => c.Height).IsRequired();
        }
Ejemplo n.º 2
0
 public void Configure(EntityTypeBuilder <Ram> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
     builder.Property(r => r.Capacity).IsRequired();
     builder.Property(r => r.Frequency).IsRequired();
     builder.Property(r => r.Type).IsRequired();
 }
Ejemplo n.º 3
0
        public void Configure(EntityTypeBuilder <Case> builder)
        {
            ConfigureUtils.ProductConfigure(builder);

            builder.Property(c => c.MotherBoardFormFactor).IsRequired();
            builder.Property(c => c.CoolerHeight).IsRequired();
            builder.Property(c => c.VideoCardWidth).IsRequired();
            builder.Property(c => c.NumberOfSlots).IsRequired();
        }
Ejemplo n.º 4
0
 public void Configure(EntityTypeBuilder <Cpu> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
     builder.Property(c => c.Socket).IsRequired();
     builder.Property(c => c.RamFrequency).IsRequired();
     builder.Property(c => c.MaximumRamMemory).IsRequired();
     builder.Property(c => c.TypeOfRam).IsRequired();
     builder.Property(c => c.HasStockCooler).IsRequired();
 }
 public void Configure(EntityTypeBuilder <Motherboard> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
     builder.Property(m => m.FormFactor).IsRequired();
     builder.Property(m => m.GraphicInterface).IsRequired();
     builder.Property(m => m.M2).IsRequired();
     builder.Property(m => m.MaximumRamMemory).IsRequired();
     builder.Property(m => m.RamFrequency).IsRequired();
     builder.Property(m => m.RamSlots).IsRequired();
     builder.Property(m => m.TypeOfRam).IsRequired();
     builder.Property(m => m.Socket).IsRequired();
     builder.Property(m => m.Sata).IsRequired();
 }
Ejemplo n.º 6
0
 public void Configure(EntityTypeBuilder <Storage> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
     builder.Property(s => s.FormFactor).IsRequired();
     builder.Property(s => s.Interface).IsRequired();
 }
Ejemplo n.º 7
0
 public void Configure(EntityTypeBuilder <PowerSupply> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
 }
Ejemplo n.º 8
0
 public void Configure(EntityTypeBuilder <VideoCard> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
     builder.Property(v => v.Interface).IsRequired();
     builder.Property(v => v.Width).IsRequired();
 }