
 using System.Data.Entity; 

namespace LHDN.CRM.Models.Models
{
    public partial class CRMContext : DbContext
    {
        public CRMContext() : base("name=LHDN.CRM") { }

        public virtual DbSet<AuditDetail> AuditDetails { get; set; }
        public virtual DbSet<AuditMaster> AuditMasters { get; set; }
        public virtual DbSet<AuditEvent> AuditEvents { get; set; }
        public virtual DbSet<ErrorLog> ErrorLogs { get; set; }
        public virtual DbSet<PerfLog> PerfLogs { get; set; }
        public virtual DbSet<TaxPayer> TaxPayers { get; set; }
        public virtual DbSet<Activity> Activity { get; set; }
        public virtual DbSet<Case> Case { get; set; }
        public virtual DbSet<TindakanSusulan> TindakanSusulan { get; set; }
        public virtual DbSet<StatusLevel1> StatusLevel1 { get; set; }
        public virtual DbSet<StatusLevel2> StatusLevel2 { get; set; }
        public virtual DbSet<StatusLevel3> StatusLevel3 { get; set; }
        public virtual DbSet<MainKategori> MainKategori { get; set; }
        public virtual DbSet<SubKategori> SubKategori { get; set; }
        public virtual DbSet<InnerSubKategori> InnerSubKategori { get; set; }
        public virtual DbSet<JenisKempen> JenisKempen { get; set; }
        public virtual DbSet<LookupParam> LookupParam { get; set; }
        public virtual DbSet<ActivityChannel> ActivityChannel { get; set; }
        public virtual DbSet<Sumber> Sumber { get; set; }
        public virtual DbSet<DocList> DocList { get; set; }
        public virtual DbSet<DocListDetail> DocListDetail { get; set; }
        public virtual DbSet<TP_ChangeHistory> TP_ChangeHistorys { get; set; }
        //public virtual DbSet<Operators> Operators { get; set; }
        //public virtual DbSet<FieldDataType> FieldDataType { get; set; }
        //public virtual DbSet<TPFieldMapping> TPFieldMapping { get; set; }
        //public virtual DbSet<CaseFieldMapping> CaseFieldMapping { get; set; }
        //public virtual DbSet<ActFieldMapping> ActFieldMapping { get; set; }
        public virtual DbSet<LookupParamSys> LookupParamSys { get; set; }
        public virtual DbSet<ParameterSettings> ParameterSettings { get; set; }
        public virtual DbSet<KodSelesai> KodSelesai { get; set; }

        public virtual DbSet<FunctionalRoleTask> FunctionalRoleTask { get; set; }
        public virtual DbSet<FunctionalRole> FunctionalRole { get; set; }
        public virtual DbSet<FunctionalRoleMember> FunctionalRoleMember { get; set; }
        public virtual DbSet<UserProfile> UserProfile { get; set; }
        public virtual DbSet<Unit> Unit { get; set; }
        public virtual DbSet<TPFileType> TPFileType { get; set; }
        public virtual DbSet<TPFileTypePrefixCls> TPFileTypePrefix { get; set; }
        public virtual DbSet<ActSession> ActSession { get; set; }
        //public virtual DbSet<TempAttachment> TempAttachment { get; set; }
        public virtual DbSet<Template> Template { get; set; }
        public virtual DbSet<CCTemplate> CCTemplate { get; set; }
        public virtual DbSet<OutboundCampaign> OutboundCampaign { get; set; } 
        public virtual DbSet<TPSpouse> TPSpouse { get; set; } 
        public virtual DbSet<TPShareholder> TPShareholder { get; set; }
        public virtual DbSet<TaxAgent> TaxAgent { get; set; }
        public virtual DbSet<TPMajikan> TPMajikan { get; set; }
        public virtual DbSet<JenisCawangan> JenisCawangan { get; set; }
        public virtual DbSet<UnitType> UnitType { get; set; }
        public virtual DbSet<Months> Months { get; set; }
        public virtual DbSet<ChartAction> ChartAction { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //    Database.SetInitializer<CRMContext>(null);
            modelBuilder.Entity<PerfLog>().Property(o => o.Duration).HasPrecision(9, 2);

            base.OnModelCreating(modelBuilder);
        }
    }
}
