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

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

    #region Data Properties

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

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

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

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

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

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

    /// <summary>Gets or sets the intCurrencyID. </summary>
    [DataMember]
    //[ForeignKey("tblSMCurrency")]
    [Column("intCurrencyID")]
    [Bindable(false)]
    [Editable(true)]
    [Display(Name="intCurrencyID", AutoGenerateField=false)]
    [IbVal.RequiredValueVerifier( ErrorMessageResourceName="tblSMCurrencyDetail_intCurrencyID")]
    public int intCurrencyID {
      get; set;
    }
    #endregion Data Properties

    #region Navigation properties

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intCurrencyDetailID = "intCurrencyDetailID";
      public const String dtmDate = "dtmDate";
      public const String dblExchangeRate = "dblExchangeRate";
      public const String dblBuy = "dblBuy";
      public const String dblSell = "dblSell";
      
      public const String strMemo = "strMemo";
      public const String intCurrencyID = "intCurrencyID";
      public const String tblSMCurrency = "tblSMCurrency";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMCurrencyDetail class
}
