narsil/Tanshu.Accounts.Contracts/Data Contracts/MachineLocationBO.cs
tanshu caf9b3106c Feature: Added Machine Locations so that setting the location in the config file is not needed.
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
2016-01-04 10:52:01 +05:30

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));
}
}
}