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

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

    #region Data Properties

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

    /// <summary>Gets or sets the intControlID. </summary>
    [DataMember]
    //[ForeignKey("tblSMSecurityControlList")]
    [Column("intControlID")]
    [Bindable(false)]
    [Editable(true)]
    [Display(Name="intControlID", AutoGenerateField=false)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMSecurityUserDefault_intControlID")]
    public int intControlID {
      get; set;
    }

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

    

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

    #region Navigation properties

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSecurityUserDefaultID = "intSecurityUserDefaultID";
      public const String intControlID = "intControlID";
      public const String strDefaultValue = "strDefaultValue";
      
      public const String intUserID = "intUserID";
      public const String tblSMSecurityControlList = "tblSMSecurityControlList";
      public const String tblSMSecurityUser = "tblSMSecurityUser";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityUserDefault class
}
