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

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

    #region Data Properties

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

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

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

    
    #endregion Data Properties

    #region Navigation properties

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

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSecurityPermissionGroupID = "intSecurityPermissionGroupID";
      public const String strPermissionGroup = "strPermissionGroup";
      public const String strDescription = "strDescription";
      
      public const String tblSMSecurityPermissionGroupControls = "tblSMSecurityPermissionGroupControls";
      public const String tblSMSecurityPermissionGroupForms = "tblSMSecurityPermissionGroupForms";
      public const String tblSMSecurityPermissionGroupMenus = "tblSMSecurityPermissionGroupMenus";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityPermissionGroup class
}
