Chore: Added full name property to product

Chore: Removed GetButton Function in ControlFactory.
This commit is contained in:
tanshu
2016-03-29 12:52:33 +05:30
parent 2c206b059a
commit 4ac6f66041
2 changed files with 61 additions and 20 deletions

View File

@ -24,6 +24,13 @@ namespace Tanshu.Accounts.Entities
public virtual decimal Quantity { get; set; }
public virtual IList<Inventory> Inventories { get; set; }
public virtual string FullName
{
get
{
return Units == string.Empty ? Name : string.Format("{0} ({1})", Name, Units);
}
}
}
public class ProductMap : ClassMapping<Product>
{