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

29 lines
832 B
C#

using System;
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using Tanshu.Accounts.Entities.Auth;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities
{
public class Kot
{
public virtual int KotID { get; set; }
public virtual Voucher Voucher { get; set; }
public virtual string Code { get; set; }
public virtual string TableID { get; set; }
public virtual bool Printed { get; set; }
public virtual DateTime Date { get; set; }
[NotNull]
public virtual User User { get; set; }
[Cascade]
public virtual IList<Inventory> Inventories { get; set; }
public Kot()
{
Inventories = new List<Inventory>();
Printed = false;
}
}
}