narsil/Tanshu.Accounts.Contracts/Data Contracts/FoodTableBO.cs

33 lines
1.1 KiB
C#
Raw Normal View History

using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
using System;
namespace Tanshu.Accounts.Entities
2011-01-09 23:36:24 +00:00
{
public class FoodTable
2011-01-09 23:36:24 +00:00
{
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);
}
2011-01-09 23:36:24 +00:00
}
}