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

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

    #region Data Properties

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

    /// <summary>Gets or sets the intSearchID. </summary>
    [DataMember]
    //[ForeignKey("tblSMSearch")]
    [Column("intSearchID")]
    [Bindable(false)]
    [Editable(true)]
    [Display(Name="intSearchID", AutoGenerateField=false)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMSearchDetail_intSearchID")]
    public int intSearchID {
      get; set;
    }

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

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

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

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

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

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

    #region Navigation properties

    /// <summary>Gets or sets the tblSMSearch. </summary>
    [DataMember]
    [InverseProperty("tblSMSearchDetails")]
    [Bindable(false)]
    [Display(Name="tblSMSearch", AutoGenerateField=false)]
    public tblSMSearch tblSMSearch {
      get; set;
    }

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

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

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

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

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSearchDetailID = "intSearchDetailID";
      public const String intSearchID = "intSearchID";
      public const String strColumnName = "strColumnName";
      public const String strColumnCaption = "strColumnCaption";
      public const String ysnColumnVisible = "ysnColumnVisible";
      public const String intWidth = "intWidth";
      public const String intSort = "intSort";
      public const String strDataType = "strDataType";
      
      public const String tblSMSearch = "tblSMSearch";
      public const String tblSMSearchDefaultFields = "tblSMSearchDefaultFields";
      public const String tblSMSearchDefaultFilters = "tblSMSearchDefaultFilters";
      public const String tblSMSearchDefaultGroups = "tblSMSearchDefaultGroups";
      public const String tblSMSearchLockedFields = "tblSMSearchLockedFields";
      public const String tblSMSearchMatchings = "tblSMSearchMatchings";
      public const String tblSMSearchSortings = "tblSMSearchSortings";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSearchDetail class
}
