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

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

    #region Data Properties

    /// <summary>Gets or sets the intSecurityReportListID. </summary>
    [Key]
    [DataMember]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    [Column("intSecurityReportListID")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intSecurityReportListID", AutoGenerateField=true)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMSecurityReportList_intSecurityReportListID")]
    public int intSecurityReportListID {
      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="tblSMSecurityReportList_intSecurityModuleListID")]
    public int intSecurityModuleListID {
      get; set;
    }

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

    
    #endregion Data Properties

    #region Navigation properties

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSecurityReportListID = "intSecurityReportListID";
      public const String intSecurityModuleListID = "intSecurityModuleListID";
      public const String strReportName = "strReportName";
      public const String strDescription = "strDescription";
      
      public const String tblSMSecurityModuleList = "tblSMSecurityModuleList";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSecurityReportList class
}
