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

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

    #region Data Properties

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

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

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

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

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

    
    #endregion Data Properties

    #region Navigation properties
    #endregion Navigation properties

    #region EntityPropertyNames
    public partial class EntityPropertyNames  {
      public const String intShipViaID = "intShipViaID";
      public const String strShipVia = "strShipVia";
      public const String strService = "strService";
      public const String ysnCOD = "ysnCOD";
      public const String intSort = "intSort";
      
    }
    #endregion EntityPropertyNames
  }
  #endregion tblSMShipVia class
}
