Files
narsil/Tanshu.Accounts.Contracts/Data Contracts/ProductGroupModifierBO.cs
tanshu 49faa9786d Moved to a new printer name format in PrintLocation
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.
2018-05-17 15:52:27 +05:30

35 lines
1.1 KiB
C#

using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
namespace Tanshu.Accounts.Entities
{
public class ProductGroupModifier
{
public virtual Guid ProductGroupModifierID { get; set; }
public virtual ProductGroup ProductGroup { get; set; }
public virtual Modifier Modifier { get; set; }
public virtual bool ShowAutomatically { get; set; }
}
public class ProductGroupModifierMap : ClassMapping<ProductGroupModifier>
{
public ProductGroupModifierMap()
{
Table("ProductGroupModifiers");
Schema("dbo");
Lazy(true);
Id(x => x.ProductGroupModifierID, map => map.Generator(Generators.GuidComb));
Property(x => x.ShowAutomatically, map => map.NotNullable(true));
ManyToOne(x => x.ProductGroup, map =>
{
map.Column("ProductGroupID");
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Modifier, map => { map.Column("ModifierID"); map.Cascade(Cascade.None); });
}
}
}