// <fileinfo name="OrderDetailsRow_Base.cs">
// <copyright>
// All rights reserved.
// </copyright>
// <remarks>
// Do not change this source code manually. Changes to this file may
// cause incorrect behavior and will be lost if the code is regenerated.
// </remarks>
// <generator rewritefile="True" infourl="http://www.SharpPower.com">RapTier</generator>
// </fileinfo>
using System;
namespace MyCompany.MyProject.Db
{
/// <summary>
/// The base class for <see cref="OrderDetailsRow"/> that
/// represents a record in the <c>Order Details</c> table.
/// </summary>
/// <remarks>
/// Do not change this source code manually. Update the <see cref="OrderDetailsRow"/>
/// class if you need to add or change some functionality.
/// </remarks>
public abstract class OrderDetailsRow_Base
{
private int _orderID;
private int _productID;
private decimal _unitPrice;
private short _quantity;
private float _discount;
/// <summary>
/// Initializes a new instance of the <see cref="OrderDetailsRow_Base"/> class.
/// </summary>
public OrderDetailsRow_Base()
{
// EMPTY
}
/// <summary>
/// Gets or sets the <c>OrderID</c> column value.
/// </summary>
/// <value>The <c>OrderID</c> column value.</value>
public int OrderID
{
get { return _orderID; }
set { _orderID = value; }
}
/// <summary>
/// Gets or sets the <c>ProductID</c> column value.
/// </summary>
/// <value>The <c>ProductID</c> column value.</value>
public int ProductID
{
get { return _productID; }
set { _productID = value; }
}
/// <summary>
/// Gets or sets the <c>UnitPrice</c> column value.
/// </summary>
/// <value>The <c>UnitPrice</c> column value.</value>
public decimal UnitPrice
{
get { return _unitPrice; }
set { _unitPrice = value; }
}
/// <summary>
/// Gets or sets the <c>Quantity</c> column value.
/// </summary>
/// <value>The <c>Quantity</c> column value.</value>
public short Quantity
{
get { return _quantity; }
set { _quantity = value; }
}
/// <summary>
/// Gets or sets the <c>Discount</c> column value.
/// </summary>
/// <value>The <c>Discount</c> column value.</value>
public float Discount
{
get { return _discount; }
set { _discount = value; }
}
/// <summary>
/// Returns the string representation of this instance.
/// </summary>
/// <returns>The string representation of this instance.</returns>
public override string ToString()
{
System.Text.StringBuilder dynStr = new System.Text.StringBuilder(GetType().Name);
dynStr.Append(':');
dynStr.Append(" OrderID=");
dynStr.Append(OrderID);
dynStr.Append(" ProductID=");
dynStr.Append(ProductID);
dynStr.Append(" UnitPrice=");
dynStr.Append(UnitPrice);
dynStr.Append(" Quantity=");
dynStr.Append(Quantity);
dynStr.Append(" Discount=");
dynStr.Append(Discount);
return dynStr.ToString();
}
} // End of OrderDetailsRow_Base class
} // End of namespace