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.
26 lines
815 B
C#
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));
|
|
}
|
|
}
|
|
}
|