caf9b3106c
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
30 lines
856 B
C#
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));
|
|
}
|
|
}
|
|
}
|