caf9b3106c
Feature: Settings database table added to store string based settings. It is right now used to store bill header and footer. Hard Coded header/footer removed from file. Feature: Tax Analysis form created to easily show the tax calculation. Feature: Management form uses background workers. Dont' know if it is functional though. Chore: Reorder Table form moved to masters from sales folder. Refactor: ManagementBI and SalesAnalysisBI
27 lines
851 B
C#
27 lines
851 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
using NHibernate.Mapping.ByCode.Conformist;
|
|
using NHibernate.Mapping.ByCode;
|
|
|
|
namespace Tanshu.Accounts.Entities
|
|
{
|
|
public class MachineLocation
|
|
{
|
|
public virtual Guid MachineLocationID { get; set; }
|
|
public virtual string Machine { get; set; }
|
|
public virtual string Location { get; set; }
|
|
}
|
|
public class MachineLocationMap : ClassMapping<MachineLocation>
|
|
{
|
|
public MachineLocationMap()
|
|
{
|
|
Table("MachineLocations");
|
|
Schema("dbo");
|
|
Lazy(true);
|
|
Id(x => x.MachineLocationID, map => map.Generator(Generators.GuidComb));
|
|
Property(x => x.Machine, map => { map.Unique(true); map.NotNullable(true); });
|
|
Property(x => x.Location, map => map.NotNullable(true));
|
|
}
|
|
}
|
|
}
|