コード例 #1
0
        public void Configure(EntityTypeBuilder <Cooler> builder)
        {
            ConfigureUtils.ProductConfigure(builder);

            builder.Property(c => c.CompatibleSockets).IsRequired();
            builder.Property(c => c.Height).IsRequired();
        }
コード例 #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();
 }
コード例 #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();
        }
コード例 #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();
 }
コード例 #5
0
 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();
 }
コード例 #6
0
 public void Configure(EntityTypeBuilder <Storage> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
     builder.Property(s => s.FormFactor).IsRequired();
     builder.Property(s => s.Interface).IsRequired();
 }
コード例 #7
0
 public void Configure(EntityTypeBuilder <PowerSupply> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
 }
コード例 #8
0
 public void Configure(EntityTypeBuilder <VideoCard> builder)
 {
     ConfigureUtils.ProductConfigure(builder);
     builder.Property(v => v.Interface).IsRequired();
     builder.Property(v => v.Width).IsRequired();
 }