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

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

    #region Data Properties

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

    /// <summary>Gets or sets the intSearchID. </summary>
    [DataMember]
    [Column("intSearchID")]
    [Bindable(true, BindingDirection.TwoWay)]
    [Editable(true)]
    [Display(Name="intSearchID", AutoGenerateField=true)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMSearchDefaultField_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="tblSMSearchDefaultField_intSearchDetailID")]
    public int intSearchDetailID {
      get; set;
    }
    #endregion Data Properties

    #region Navigation properties

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intDefaultFieldID = "intDefaultFieldID";
      public const String intSearchID = "intSearchID";
      public const String intSearchDetailID = "intSearchDetailID";
      public const String tblSMSearch = "tblSMSearch";
      public const String tblSMSearchDetail = "tblSMSearchDetail";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMSearchDefaultField class
}
