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

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

    #region Data Properties

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

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

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

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

    /// <summary>Gets or sets the ysnShowDescription. </summary>
    [DataMember]
    [Column("ysnShowDescription")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="ysnShowDescription", AutoGenerateField=true)]
    public System.Nullable<bool> ysnShowDescription {
      get; set;
    }

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

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

    
    #endregion Data Properties

    #region Navigation properties
    #endregion Navigation properties

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intPreferenceID = "intPreferenceID";
      public const String intParentID = "intParentID";
      public const String strPreferenceName = "strPreferenceName";
      public const String strDescription = "strDescription";
      public const String strAssembly = "strAssembly";
      public const String ysnShowDescription = "ysnShowDescription";
      public const String intSort = "intSort";
      public const String strType = "strType";
      
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMMenuPreference class
}
