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

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

    #region Data Properties

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

    /// <summary>Gets or sets the strUserGroup. </summary>
    [DataMember]
    [Column("strUserGroup")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="strUserGroup", AutoGenerateField=true)]
    [IbVal.StringLengthVerifier(MaxValue=100, IsRequired=true, ErrorMessageResourceName="tblSMSecurityUserGroup_strUserGroup")]
    public string strUserGroup {
      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=1000, IsRequired=false, ErrorMessageResourceName="tblSMSecurityUserGroup_strDescription")]
    public string strDescription {
      get; set;
    }

    
    #endregion Data Properties

    #region Navigation properties

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

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

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

    /// <summary>Gets the tblSMSecurityUserGroupForms. </summary>
    [DataMember]
    [InverseProperty("tblSMSecurityUserGroup")]
    [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 intSecurityUserGroupID = "intSecurityUserGroupID";
      public const String strUserGroup = "strUserGroup";
      public const String strDescription = "strDescription";
      
      public const String tblSMSecurityUsers = "tblSMSecurityUsers";
      public const String tblSMSecurityUserGroupControls = "tblSMSecurityUserGroupControls";
      public const String tblSMSecurityUserGroupMenus = "tblSMSecurityUserGroupMenus";
      public const String tblSMSecurityUserGroupForms = "tblSMSecurityUserGroupForms";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityUserGroup class
}
