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.
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using NHibernate.Mapping.ByCode;
|
|
using NHibernate.Mapping.ByCode.Conformist;
|
|
using System;
|
|
namespace Tanshu.Accounts.Entities
|
|
{
|
|
public class FoodTable
|
|
{
|
|
public virtual Guid FoodTableID { get; set; }
|
|
public virtual string Name { get; set; }
|
|
public virtual bool IsActive { get; set; }
|
|
public virtual string Location { get; set; }
|
|
public virtual string Status { get; set; }
|
|
public virtual int SortOrder { get; set; }
|
|
public virtual Guid? VoucherID { get; set; }
|
|
}
|
|
public class FoodTableMap : ClassMapping<FoodTable>
|
|
{
|
|
public FoodTableMap()
|
|
{
|
|
Table("FoodTables");
|
|
Schema("dbo");
|
|
Lazy(true);
|
|
Id(x => x.FoodTableID, map => map.Generator(Generators.GuidComb));
|
|
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
|
|
Property(x => x.IsActive);
|
|
Property(x => x.Location);
|
|
Property(x => x.Status);
|
|
Property(x => x.VoucherID);
|
|
Property(x => x.SortOrder);
|
|
}
|
|
}
|
|
}
|