Ejemplo n.º 1
0
 public Tech_Data(DB_Element car_case, Engine engine, int doors_count, int seats_count)
 {
     Car_case    = car_case ?? throw new ArgumentNullException(nameof(car_case));
     Engine      = engine ?? throw new ArgumentNullException(nameof(engine));
     Doors_count = doors_count;
     Seats_count = seats_count;
 }
Ejemplo n.º 2
0
 public Product(string value, DB_Element country, Engine engine, Model model, Tech_Data tech_Data, bool in_stock, decimal price) : base(value)
 {
     Country   = country ?? throw new ArgumentNullException(nameof(country));
     Engine    = engine ?? throw new ArgumentNullException(nameof(Engine));
     Model     = model ?? throw new ArgumentNullException(nameof(model));
     Tech_Data = tech_Data ?? throw new ArgumentNullException(nameof(tech_Data));
     In_stock  = in_stock;
     Price     = price;
 }
Ejemplo n.º 3
0
     internal void Save()
     {
         int elementID = Element switch
         {
             IElementTreeNode node => node.FlexDB_ID,
             DB_Element dbElement => dbElement.ID,
             _ => throw new InvalidOperationException("Unknown Element type in SynsetToElementBindingViewModel")
         };
         //FlexData.Context.SaveSynsetToElementBinding(Synset.ID, elementID, Weight);
     }
 }
Ejemplo n.º 4
0
 public Engine(DB_Element type, DB_Element place, float capacity)
 {
     Type     = type ?? throw new ArgumentNullException(nameof(type));
     Place    = place ?? throw new ArgumentNullException(nameof(place));
     Capacity = capacity;
 }
Ejemplo n.º 5
0
 public Sale(DB_Element client, DB_Element product, DB_Element payment_type)
 {
     Client       = client ?? throw new ArgumentNullException(nameof(client));
     Product      = product ?? throw new ArgumentNullException(nameof(product));
     Payment_type = payment_type ?? throw new ArgumentNullException(nameof(payment_type));
 }
Ejemplo n.º 6
0
 public Model(string value, int brand_id) : base(value)
 {
     Brand = new DB_Element(brand_id);
 }
Ejemplo n.º 7
0
 public Model(int id, string value, DB_Element brand) : base(id, value)
 {
     Brand = brand ?? throw new ArgumentNullException(nameof(brand));
 }
Ejemplo n.º 8
0
 public Client(int id, string value, string phone, DB_Element city) : base(id, value)
 {
     Phone = phone;
     City  = city ?? throw new ArgumentNullException(nameof(city));
 }