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

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

    #region Data Properties

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

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

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

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

    #endregion Data Properties

    #region Navigation properties

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

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

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSecurityFormListID = "intSecurityFormListID";
      public const String intSecurityModuleListID = "intSecurityModuleListID";
      public const String strFormName = "strFormName";
      public const String strDisplayName = "strDisplayName";
      
      public const String tblSMSecurityControlLists = "tblSMSecurityControlLists";
      public const String tblSMSecurityModuleList = "tblSMSecurityModuleList";
      public const String tblSMSecurityUserForms = "tblSMSecurityUserForms";
      public const String tblSMSecurityUserGroupForms = "tblSMSecurityUserGroupForms";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityFormList class
}
