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

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

    #region Data Properties

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

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

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

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

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

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

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

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

    #endregion Data Properties

    #region Navigation properties

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intCountryID = "intCountryID";
      public const String strCountry = "strCountry";
      public const String strCountryCode = "strCountryCode";
      public const String intCityAreaDigit = "intCityAreaDigit";
      public const String strCityAreaMask = "strCityAreaMask";
      public const String intLocalDigit = "intLocalDigit";
      public const String strLocalNumberMask = "strLocalNumberMask";
      public const String ysnDisplayCountryCode = "ysnDisplayCountryCode";
      
      public const String tblSMCompanySetups = "tblSMCompanySetups";
      public const String tblSMZipCodes = "tblSMZipCodes";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMCountry class
}
