Datei: StressTests/StressTestClasses/OrderLine.cs
Last Commit (9de6a8c)
| 1 | -- File didn't exist -- |
New Commit (bbf1d57)
| 1 | using System; |
| 2 | using NDO; |
| 3 | |
| 4 | namespace StressTestClasses |
| 5 | { |
| 6 | ····/// <summary> |
| 7 | ····/// An order line. Part of the composite relation SalesOrder.lines. |
| 8 | ····/// </summary> |
| 9 | ····[NDOPersistent] |
| 10 | ····public class OrderLine |
| 11 | ····{ |
| 12 | ········string product; |
| 13 | ········int quantity; |
| 14 | ········decimal price; |
| 15 | |
| 16 | ········// Set by NDO as the counterpart of SalesOrder.lines |
| 17 | #pragma warning disable CS0649 |
| 18 | ········[NDORelation] |
| 19 | ········SalesOrder order; |
| 20 | #pragma warning restore CS0649 |
| 21 | |
| 22 | ········public OrderLine() |
| 23 | ········{ |
| 24 | ········} |
| 25 | |
| 26 | ········public string Product |
| 27 | ········{ |
| 28 | ············get { return product; } |
| 29 | ············set { product = value; } |
| 30 | ········} |
| 31 | |
| 32 | ········public int Quantity |
| 33 | ········{ |
| 34 | ············get { return quantity; } |
| 35 | ············set { quantity = value; } |
| 36 | ········} |
| 37 | |
| 38 | ········public decimal Price |
| 39 | ········{ |
| 40 | ············get { return price; } |
| 41 | ············set { price = value; } |
| 42 | ········} |
| 43 | |
| 44 | ········public SalesOrder Order |
| 45 | ········{ |
| 46 | ············get { return order; } |
| 47 | ········} |
| 48 | ····} |
| 49 | } |
| 50 |