Created
July 2, 2018 16:11
-
-
Save carloscds/5231b7e3e0a0c761f532c14db673adfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
namespace LazyLoading | |
{ | |
public class Customers | |
{ | |
[Key] | |
public string CustomerID {get; set;} | |
public string CompanyName {get; set;} | |
public string ContactName {get; set;} | |
public virtual ICollection<Orders> Orders {get; set;} | |
public Customers() | |
{ | |
Orders = new List<Orders>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment