Files
narsil/Tanshu.Accounts.Contracts/Data Contracts/MachineLocationBO.cs
tanshu 49faa9786d Moved to a new printer name format in PrintLocation
If printing from windows, then the printer name should be prefixed with smb.
If printing from linux, then the printer name should be prefixed with cups.
If printing directly, then the printer name should be prefixed with pdl.
2018-05-17 15:52:27 +05:30

26 lines
815 B
C#

using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
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));
}
}
}