narsil/Tanshu.Accounts.Contracts/Data Contracts/SettingBO.cs
tanshu caf9b3106c Feature: Added Machine Locations so that setting the location in the config file is not needed.
Feature: Settings database table added to store string based settings.
         It is right now used to store bill header and footer.
         Hard Coded header/footer removed from file.
Feature: Tax Analysis form created to easily show the tax calculation.
Feature: Management form uses background workers.  Dont' know if it is functional though.
Chore: Reorder Table form moved to masters from sales folder.
Refactor: ManagementBI and SalesAnalysisBI
2016-01-04 10:52:01 +05:30

30 lines
856 B
C#

using System;
using System.Runtime.Serialization;
using Tanshu.Accounts.Contracts;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Setting
{
public virtual Guid SettingID { get; set; }
public virtual string Name { get; set; }
public virtual string Details { get; set; }
}
public class SettingMap : ClassMapping<Setting>
{
public SettingMap()
{
Table("Settings");
Schema("dbo");
Lazy(false);
Id(x => x.SettingID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Property(x => x.Details, map => map.NotNullable(true));
}
}
}