// ------------------------------------------------------------------------------
// This is autogenerated code from the CodeFirst template.  This file will be
// automatically re-generated from the EDMX when it is saved or the .tt is run.
// You will usually want to first generate your CodeFirst classes from your model
// and then make all subsequent modifications manually.  To avoid losing your
// changes, rename and move this code file so that it will not be re-generated.
// 
//    Generated at: 9/4/2012 7:04:45 PM
//    DevForce version: 6.1.7.1
//    Template version: 2.1.4
// ------------------------------------------------------------------------------
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using IbEm   = IdeaBlade.EntityModel;
using IbCore = IdeaBlade.Core;
using IbVal  = IdeaBlade.Validation;
using IbAop  = IdeaBlade.Aop;

namespace iRely.Model { 

  #region tblSMTerm class

  /// <summary>The auto-generated tblSMTerm class. </summary>
  
  
  [Table("tblSMTerm", Schema="dbo")]
  public partial class tblSMTerm : iRely.BaseModel.iRelyEntity {

    #region Data Properties

    /// <summary>Gets or sets the intTermID. </summary>
    [Key]
    [DataMember]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    [Column("intTermID")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intTermID", AutoGenerateField=true)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMTerm_intTermID")]
    public int intTermID {
      get; set;
    }

    /// <summary>Gets or sets the strTerm. </summary>
    [DataMember]
    [Column("strTerm")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="strTerm", AutoGenerateField=true)]
    [IbVal.StringLengthVerifier(MaxValue=25, IsRequired=false, ErrorMessageResourceName="tblSMTerm_strTerm")]
    public string strTerm {
      get; set;
    }

    /// <summary>Gets or sets the dblDiscount. </summary>
    [DataMember]
    [Column("dblDiscount")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="dblDiscount", AutoGenerateField=true)]
    public System.Nullable<decimal> dblDiscount {
      get; set;
    }

    /// <summary>Gets or sets the intDay. </summary>
    [DataMember]
    [Column("intDay")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intDay", AutoGenerateField=true)]
    public System.Nullable<int> intDay {
      get; set;
    }

    /// <summary>Gets or sets the intDaysDue. </summary>
    [DataMember]
    [Column("intDaysDue")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intDaysDue", AutoGenerateField=true)]
    public System.Nullable<int> intDaysDue {
      get; set;
    }

    /// <summary>Gets or sets the dblInterest. </summary>
    [DataMember]
    [Column("dblInterest")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="dblInterest", AutoGenerateField=true)]
    public System.Nullable<decimal> dblInterest {
      get; set;
    }

    /// <summary>Gets or sets the ysnShowOnRetail. </summary>
    [DataMember]
    [Column("ysnShowOnRetail")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="ysnShowOnRetail", AutoGenerateField=true)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMTerm_ysnShowOnRetail")]
    public bool ysnShowOnRetail {
      get; set;
    }

    /// <summary>Gets or sets the ysnShowOnWhsle. </summary>
    [DataMember]
    [Column("ysnShowOnWhsle")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="ysnShowOnWhsle", AutoGenerateField=true)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMTerm_ysnShowOnWhsle")]
    public bool ysnShowOnWhsle {
      get; set;
    }

    /// <summary>Gets or sets the intSort. </summary>
    [DataMember]
    [Column("intSort")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intSort", AutoGenerateField=true)]
    public System.Nullable<int> intSort {
      get; set;
    }

    /// <summary>Gets or sets the strType. </summary>
    [DataMember]
    [Column("strType")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="strType", AutoGenerateField=true)]
    [IbVal.StringLengthVerifier(MaxValue=11, IsRequired=false, ErrorMessageResourceName="tblSMTerm_strType")]
    public string strType {
      get; set;
    }

    /// <summary>Gets or sets the dblDayOfMonth. </summary>
    [DataMember]
    [Column("dblDayOfMonth")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="dblDayOfMonth", AutoGenerateField=true)]
    public System.Nullable<decimal> dblDayOfMonth {
      get; set;
    }

    /// <summary>Gets or sets the dblDiscountDay. </summary>
    [DataMember]
    [Column("dblDiscountDay")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="dblDiscountDay", AutoGenerateField=true)]
    public System.Nullable<decimal> dblDiscountDay {
      get; set;
    }

    /// <summary>Gets or sets the intMinDay. </summary>
    [DataMember]
    [Column("intMinDay")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intMinDay", AutoGenerateField=true)]
    public System.Nullable<int> intMinDay {
      get; set;
    }

    /// <summary>Gets or sets the ysnActive. </summary>
    [DataMember]
    [Column("ysnActive")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="ysnActive", AutoGenerateField=true)]
    public System.Nullable<bool> ysnActive {
      get; set;
    }

    

    /// <summary>Gets or sets the strDescription. </summary>
    [DataMember]
    [Column("strDescription")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="strDescription", AutoGenerateField=true)]
    [IbVal.StringLengthVerifier(MaxValue=50, IsRequired=false, ErrorMessageResourceName="tblSMTerm_strDescription")]
    public string strDescription {
      get; set;
    }
    #endregion Data Properties

    #region Navigation properties
    #endregion Navigation properties

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intTermID = "intTermID";
      public const String strTerm = "strTerm";
      public const String dblDiscount = "dblDiscount";
      public const String intDay = "intDay";
      public const String intDaysDue = "intDaysDue";
      public const String dblInterest = "dblInterest";
      public const String ysnShowOnRetail = "ysnShowOnRetail";
      public const String ysnShowOnWhsle = "ysnShowOnWhsle";
      public const String intSort = "intSort";
      public const String strType = "strType";
      public const String dblDayOfMonth = "dblDayOfMonth";
      public const String dblDiscountDay = "dblDiscountDay";
      public const String intMinDay = "intMinDay";
      public const String ysnActive = "ysnActive";
      
      public const String strDescription = "strDescription";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMTerm class
}
