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

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

    #region Data Properties

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

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

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

    
    #endregion Data Properties

    #region Navigation properties

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSecurityPolicyGroupID = "intSecurityPolicyGroupID";
      public const String strPolicyGroupName = "strPolicyGroupName";
      public const String strPolicyGroupDescription = "strPolicyGroupDescription";
      
      public const String tblSMSecurityPolicies = "tblSMSecurityPolicies";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityPolicyGroup class
}
