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

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

    #region Data Properties

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

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

    /// <summary>Gets or sets the intParentID. </summary>
    [DataMember]
    //[ForeignKey("tblSMSecurityMenuUserDetail2")]
    [Column("intParentID")]
    [Bindable(false)]
    [Editable(true)]
    [Display(Name="intParentID", AutoGenerateField=false)]
    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=50, IsRequired=false, ErrorMessageResourceName="tblSMSecurityMenuUserDetail_strType")]
    public string strType {
      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 strCaption. </summary>
    [DataMember]
    [Column("strCaption")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="strCaption", AutoGenerateField=true)]
    [IbVal.StringLengthVerifier(MaxValue=50, IsRequired=false, ErrorMessageResourceName="tblSMSecurityMenuUserDetail_strCaption")]
    public string strCaption {
      get; set;
    }

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

    /// <summary>Gets or sets the imgIcon. </summary>
    [DataMember]
    [Column("imgIcon")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="imgIcon", AutoGenerateField=true)]
    public byte[] imgIcon {
      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 ysnExpanded. </summary>
    [DataMember]
    [Column("ysnExpanded")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="ysnExpanded", AutoGenerateField=true)]
    public System.Nullable<bool> ysnExpanded {
      get; set;
    }
    #endregion Data Properties

    #region Navigation properties

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

    /// <summary>Gets or sets the tblSMSecurityMenuUser. </summary>
    [DataMember]
    [InverseProperty("tblSMSecurityMenuUserDetails")]
    [Bindable(false)]
    [Display(Name="tblSMSecurityMenuUser", AutoGenerateField=false)]
    public tblSMSecurityMenuUser tblSMSecurityMenuUser {
      get; set;
    }

    /// <summary>Gets the tblSMSecurityMenuUserDetail1. </summary>
    [DataMember]
    [InverseProperty("tblSMSecurityMenuUserDetail2")]
    [Bindable(false)]
    [Display(Name="tblSMSecurityMenuUserDetail1", AutoGenerateField=false)]
    public IbEm.RelatedEntityList<tblSMSecurityMenuUserDetail> tblSMSecurityMenuUserDetail1 {
      get; set;
    }

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSecurityMenuUserDetailID = "intSecurityMenuUserDetailID";
      public const String intSecurityMenuUserID = "intSecurityMenuUserID";
      public const String intParentID = "intParentID";
      public const String strType = "strType";
      public const String intMenuID = "intMenuID";
      public const String strCaption = "strCaption";
      public const String strShortcutKey = "strShortcutKey";
      public const String imgIcon = "imgIcon";
      public const String intSort = "intSort";
      public const String ysnExpanded = "ysnExpanded";
      
      public const String tblSMSecurityMenuList = "tblSMSecurityMenuList";
      public const String tblSMSecurityMenuUser = "tblSMSecurityMenuUser";
      public const String tblSMSecurityMenuUserDetail1 = "tblSMSecurityMenuUserDetail1";
      public const String tblSMSecurityMenuUserDetail2 = "tblSMSecurityMenuUserDetail2";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityMenuUserDetail class
}
