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

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

    #region Data Properties

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

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

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

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

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

    #region Navigation properties
    #endregion Navigation properties

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intPreferenceCompanyID = "intPreferenceCompanyID";
      public const String strFieldName = "strFieldName";
      public const String strFieldCaption = "strFieldCaption";
      public const String strFieldType = "strFieldType";
      public const String strFieldValue = "strFieldValue";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMPreferencesCompany class
}
