Skip to content

Instantly share code, notes, and snippets.

@carloscds
Created July 2, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carloscds/0d29a804aaef7f42e44825d66ad5dcd7 to your computer and use it in GitHub Desktop.
Save carloscds/0d29a804aaef7f42e44825d66ad5dcd7 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace LazyLoading
{
public class Orders
{
[Key]
public int OrderID {get; set;}
public string CustomerID {get; set;}
public virtual Customers Customers {get; set;}
public DateTime OrderDate {get; set;}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment