// ------------------------------------------------------------------------------
// 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 tblSMMenuRecent class

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

    #region Data Properties

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

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

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

    /// <summary>Gets or sets the intParentID. </summary>
    [DataMember]
    [Column("intParentID")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intParentID", AutoGenerateField=true)]
    public System.Nullable<int> intParentID {
      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=15, IsRequired=true, ErrorMessageResourceName="tblSMMenuRecent_strType")]
    public string strType {
      get; set;
    }

    /// <summary>Gets or sets the strName. </summary>
    [DataMember]
    [Column("strName")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="strName", AutoGenerateField=true)]
    [IbVal.StringLengthVerifier(MaxValue=50, IsRequired=false, ErrorMessageResourceName="tblSMMenuRecent_strName")]
    public string strName {
      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;
    }
    #endregion Data Properties

    #region Navigation properties

    /// <summary>Gets or sets the tblSMSecurityMenuList. </summary>
    [DataMember]
    [InverseProperty("tblSMMenuRecents")]
    [Bindable(false)]
    [Display(Name="tblSMSecurityMenuList", AutoGenerateField=false)]
    public tblSMSecurityMenuList tblSMSecurityMenuList {
      get; set;
    }
    #endregion Navigation properties

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intMenuRecentID = "intMenuRecentID";
      public const String intUserID = "intUserID";
      public const String intMenuID = "intMenuID";
      public const String intParentID = "intParentID";
      public const String strType = "strType";
      public const String strName = "strName";
      public const String intSort = "intSort";
      
      public const String tblSMSecurityMenuList = "tblSMSecurityMenuList";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMMenuRecent class
}
