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

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

    #region Data Properties

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

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

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

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

    
    #endregion Data Properties

    #region Navigation properties

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSecurityUserGroupFormID = "intSecurityUserGroupFormID";
      public const String intSecurityUserGroupID = "intSecurityUserGroupID";
      public const String intFormID = "intFormID";
      public const String strPermission = "strPermission";
      
      public const String tblSMSecurityFormList = "tblSMSecurityFormList";
      public const String tblSMSecurityUserGroup = "tblSMSecurityUserGroup";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityUserGroupForm class
}
