OrderLine.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:1k
- using System;
- namespace Wrox.ProCSharp.EnterpriseServices
- {
- [Serializable]
- public class OrderLine
- {
- public static OrderLine Create(int productId, float unitPrice, int quantity)
- {
- OrderLine detail = new OrderLine();
- detail.productId = productId;
- detail.unitPrice = unitPrice;
- detail.quantity = quantity;
- return detail;
- }
- public OrderLine()
- {
- }
- private int productId;
- private float unitPrice;
- private int quantity;
- public int ProductId
- {
- get
- {
- return productId;
- }
- set
- {
- productId = value;
- }
- }
- public float UnitPrice
- {
- get
- {
- return unitPrice;
- }
- set
- {
- unitPrice = value;
- }
- }
- public int Quantity
- {
- get
- {
- return quantity;
- }
- set
- {
- quantity = value;
- }
- }
- }
- }