These are the classes :Order and Customer
SQL
//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ namespace Northwind { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; public partial class Order { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public Order() { this.Order_Details = new HashSetOrder_Detail>(); } public int OrderID { get; set; } public string CustomerID { get; set; } public Nullableint> EmployeeID { get; set; } public Nullable.DateTime> OrderDate { get; set; } public Nullable.DateTime> RequiredDate { get; set; } public Nullable.DateTime> ShippedDate { get; set; } public Nullableint> ShipVia { get; set; } public Nullabledecimal> Freight { get; set; } public string ShipName { get; set; } public string ShipAddress { get; set; } public string ShipCity { get; set; } public string ShipRegion { get; set; } public string ShipPostalCode { get; set; } public string ShipCountry { get; set; } public virtual Customer Customer { get; set; } public virtual Employee Employee { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollectionOrder_Detail> Order_Details { get; set; } public virtual Shipper Shipper { get; set; } } }SQL
//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ namespace Northwind { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public partial class Customer { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public Customer() { this.Orders = new HashSetOrder>(); this.CustomerDemographics = new HashSetCustomerDemographic>(); } public string CustomerID { get; set; } public string CompanyName { get; set; } public string ContactName { get; set; } public string ContactTitle { get; set; } public string Address { get; set; } public string City { get; set; } // [StringLength(15, MinimumLength = 3, ErrorMessage = "Invalid")] // [MaxLength(15), MinLength(5)] // public virtual Shipper Shipper { get; set; } public string Region { get; set; } public string PostalCode { get; set; } public string Country { get; set; } public string Phone { get; set; } public string Fax { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollectionOrder> Orders { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollectionCustomerDemographic> CustomerDemographics { get; set; } // [NotMapped] // public virtual Region Regionn { get; set; } public virtual Region Regionn { get; set; } public Nullableint> RegionVia { get; set; } // public string Region { get; set; } // [NotMapped] // public List RegionList { get; set; } //public Region Regionn { get; set; } // Navigation Property //[NotMapped] // public string RegionID { get; set; } // [NotMapped] // public List RegionList { get; set; } // public int RegionID { get; set; } } }Thank u so.

Ramesh PalanivelRank #372 · 6.8K reputationPosted Apr 28, 2017, 2:07 AM EDT
d gj60 reputationPosted Apr 28, 2017, 3:20 AM EDT