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; }
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; }
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); } }
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; }
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)); }
public Model(string value, int brand_id) : base(value) { Brand = new DB_Element(brand_id); }
public Model(int id, string value, DB_Element brand) : base(id, value) { Brand = brand ?? throw new ArgumentNullException(nameof(brand)); }
public Client(int id, string value, string phone, DB_Element city) : base(id, value) { Phone = phone; City = city ?? throw new ArgumentNullException(nameof(city)); }