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

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

    #region Data Properties

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

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

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

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

    /// <summary>Gets or sets the intSecurityUserGroupID. </summary>
    [DataMember]
    //[ForeignKey("tblSMSecurityUserGroup")]
    [Column("intSecurityUserGroupID")]
    [Bindable(false)]
    [Editable(true)]
    [Display(Name="intSecurityUserGroupID", AutoGenerateField=false)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMSecurityUser_intSecurityUserGroupID")]
    public int intSecurityUserGroupID {
      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 strEmail. </summary>
    [DataMember]
    [Column("strEmail")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="strEmail", AutoGenerateField=true)]
    [IbVal.StringLengthVerifier(MaxValue=100, IsRequired=false, ErrorMessageResourceName="tblSMSecurityUser_strEmail")]
    public string strEmail {
      get; set;
    }

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

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

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

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

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

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

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

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

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


    [DataMember]
    [Column("strFieldKoToh")]
    public string strFieldKoToh
    {
        get;
        set;
    }

    #endregion Data Properties

    #region Navigation properties

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

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

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

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

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

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

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

    /// <summary>Gets the tblSMSecurityUserMenus. </summary>
    [DataMember]
    [InverseProperty("tblSMSecurityUser")]
    [Bindable(false)]
    [Display(Name="tblSMSecurityUserMenus", AutoGenerateField=false)]
    public IbEm.RelatedEntityList<tblSMSecurityUserMenu> tblSMSecurityUserMenus {
      get; set;
    }
    #endregion Navigation properties

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intUserID = "intUserID";
      public const String strUserID = "strUserID";
      public const String strPassword = "strPassword";
      public const String strOverridePassword = "strOverridePassword";
      public const String intSecurityUserGroupID = "intSecurityUserGroupID";
      public const String intSecurityMenuUserID = "intSecurityMenuUserID";
      public const String strEmail = "strEmail";
      public const String strManagerName = "strManagerName";
      public const String strAssistantName = "strAssistantName";
      public const String strOffice = "strOffice";
      public const String strDepartment = "strDepartment";
      public const String ysnMustChange = "ysnMustChange";
      public const String ysnCantChange = "ysnCantChange";
      public const String ysnDisabled = "ysnDisabled";
      public const String ysnRememberUserName = "ysnRememberUserName";
      public const String strGlobalLogin = "strGlobalLogin";
      
      public const String tblSMPreferencesUsers = "tblSMPreferencesUsers";
      public const String tblSMSecurityMenuUser = "tblSMSecurityMenuUser";
      public const String tblSMSecurityUserGroup = "tblSMSecurityUserGroup";
      public const String tblSMSecurityUserDefaults = "tblSMSecurityUserDefaults";
      public const String tblSMSecurityUserRequireds = "tblSMSecurityUserRequireds";
      public const String tblSMSecurityUserControls = "tblSMSecurityUserControls";
      public const String tblSMSecurityUserForms = "tblSMSecurityUserForms";
      public const String tblSMSecurityUserMenus = "tblSMSecurityUserMenus";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityUser class
}
