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

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

    #region Data Properties

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

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

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

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

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

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

    #region Navigation properties

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intSearchDefaultFilterID = "intSearchDefaultFilterID";
      public const String intSearchID = "intSearchID";
      public const String intSearchDetailID = "intSearchDetailID";
      public const String strCondition = "strCondition";
      public const String strCriteria = "strCriteria";
      public const String strCriteriaBetween = "strCriteriaBetween";
      public const String strJoin = "strJoin";
      
      public const String tblSMSearch = "tblSMSearch";
      public const String tblSMSearchDetail = "tblSMSearchDetail";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSearchDefaultFilter class
}
