2014-10-12 09:41:45 +00:00
|
|
|
|
using NHibernate.Mapping.ByCode.Conformist;
|
|
|
|
|
using NHibernate.Mapping.ByCode;
|
|
|
|
|
using System;
|
|
|
|
|
namespace Tanshu.Accounts.Entities
|
2011-01-09 23:36:24 +00:00
|
|
|
|
{
|
2011-01-30 07:14:05 +00:00
|
|
|
|
public class FoodTable
|
2011-01-09 23:36:24 +00:00
|
|
|
|
{
|
2014-10-12 09:41:45 +00:00
|
|
|
|
public virtual Guid FoodTableID { get; set; }
|
2011-01-17 14:55:43 +00:00
|
|
|
|
public virtual string Name { get; set; }
|
2014-10-16 11:11:55 +00:00
|
|
|
|
public virtual bool IsActive { get; set; }
|
2011-01-30 07:14:05 +00:00
|
|
|
|
public virtual string Location { get; set; }
|
2011-02-18 16:54:48 +00:00
|
|
|
|
public virtual string Status { get; set; }
|
2014-10-12 09:41:45 +00:00
|
|
|
|
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); });
|
2014-10-16 11:11:55 +00:00
|
|
|
|
Property(x => x.IsActive);
|
2014-10-12 09:41:45 +00:00
|
|
|
|
Property(x => x.Location);
|
|
|
|
|
Property(x => x.Status);
|
|
|
|
|
Property(x => x.VoucherID);
|
|
|
|
|
Property(x => x.SortOrder);
|
|
|
|
|
}
|
2011-01-09 23:36:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|