LotSizingDataModel.Core 2.0.1
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
TransportResource.cs
Go to the documentation of this file.
1using System;
2using System.Xml.Serialization;
4
6
7/// <summary>A transport resource with its own shared capacities and costs.</summary>
8[Serializable]
9[XmlType(TypeName = "transportResource")]
10public sealed partial class TransportResource : IdentifiedEntity
11{
12 public TransportResource() { }
13 public TransportResource(int id, string name) { Id = id; Name = name; }
14
15 /// <summary>Rejects raw legacy XML; use the versioned model serializers to migrate it.</summary>
16 [XmlElement("lanes")]
17 public System.Xml.XmlElement? LegacyLanesGuard
18 {
19 get => null;
20 set => throw new InvalidOperationException("Legacy nested lanes require SupplyChainXmlSerializer or LotSizingInstanceXmlSerializer migration.");
21 }
22}
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.
System.Xml.? XmlElement LegacyLanesGuard
Rejects raw legacy XML; use the versioned model serializers to migrate it.