//------------------------------------------------------------------------------
// <auto-generated>
//    This code was generated from a template.
//
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ERD
{
    using System;
    using System.Collections.Generic;
    
    public partial class TblSalesCommEarnerType
    {
        public TblSalesCommEarnerType()
        {
            this.TblSalesCommAmountScales = new HashSet<TblSalesCommAmountScale>();
            this.TblSalesCommCountScales = new HashSet<TblSalesCommCountScale>();
            this.TblSalesCommFixedAmounts = new HashSet<TblSalesCommFixedAmount>();
            this.TblSalesCommSkippedCommissions = new HashSet<TblSalesCommSkippedCommission>();
            this.TblSalesCommStatements = new HashSet<TblSalesCommStatement>();
        }
    
        public System.Guid Oid { get; set; }
        public Nullable<int> Type { get; set; }
        public string Name { get; set; }
        public Nullable<int> SalesRegion { get; set; }
        public Nullable<int> SpecificPersonnel { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
    
        public virtual ICollection<TblSalesCommAmountScale> TblSalesCommAmountScales { get; set; }
        public virtual ICollection<TblSalesCommCountScale> TblSalesCommCountScales { get; set; }
        public virtual ICollection<TblSalesCommFixedAmount> TblSalesCommFixedAmounts { get; set; }
        public virtual ICollection<TblSalesCommSkippedCommission> TblSalesCommSkippedCommissions { get; set; }
        public virtual ICollection<TblSalesCommStatement> TblSalesCommStatements { get; set; }
        public virtual TblPersonnel TblPersonnel { get; set; }
    }
}
