LotSizingDataModel.Core 2.0.1
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
Supplier.cs
Go to the documentation of this file.
1using System;
2using System.Xml.Serialization;
4
6
7/// <summary>
8/// Represents a supplier in the supply chain.
9///
10/// Corresponds to the UML class "Fournisseur".
11/// Its identifier corresponds to f in the source model.
12/// </summary>
13[Serializable]
14[XmlType(TypeName = "supplier")]
15public sealed class Supplier : IdentifiedEntity
16{
17 /// <summary>
18 /// Initializes an empty supplier.
19 ///
20 /// This public parameterless constructor is required
21 /// by <see cref="XmlSerializer"/>.
22 /// </summary>
23 public Supplier()
24 {
25 }
26
27 /// <summary>
28 /// Initializes a supplier with an identifier and a name.
29 /// </summary>
30 /// <param name="id">
31 /// Numerical identifier corresponding to f
32 /// in the source model.
33 /// </param>
34 /// <param name="name">
35 /// Supplier name.
36 /// </param>
37 public Supplier(int id, string name)
38 {
39 // Initialize supplier properties
40 Id = id;
41 Name = name;
42 }
43}
int Id
Gets or sets the numerical identifier of the entity.
IdentifiedEntity()
Initializes a new instance of the IdentifiedEntity class.
string Name
Gets or sets the entity name.
Supplier()
Initializes an empty supplier.
Definition Supplier.cs:23
Supplier(int id, string name)
Initializes a supplier with an identifier and a name.
Definition Supplier.cs:37