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

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

    #region Data Properties

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

   
    #endregion Data Properties

    #region Navigation properties

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

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

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

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

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intCompanySetupID = "intCompanySetupID";
      public const String strCompanyName = "strCompanyName";
      public const String strContactName = "strContactName";
      public const String strAddress = "strAddress";
      public const String intCityID = "intCityID";
      public const String intStateID = "intStateID";
      public const String intZipCodeID = "intZipCodeID";
      public const String intCountryID = "intCountryID";
      public const String strPhone = "strPhone";
      public const String strFax = "strFax";
      public const String memWebSite = "memWebSite";
      public const String strEmail = "strEmail";
      public const String strFederalTaxID = "strFederalTaxID";
      public const String strStateTaxID = "strStateTaxID";
      public const String strBusinessType = "strBusinessType";
      public const String strUPCCode = "strUPCCode";
      public const String strIndustryID = "strIndustryID";
      public const String strNote = "strNote";
      
      public const String tblSMCity = "tblSMCity";
      public const String tblSMCountry = "tblSMCountry";
      public const String tblSMState = "tblSMState";
      public const String tblSMZipCode = "tblSMZipCode";
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMCompanySetup class
}
