Created
August 28, 2015 05:39
-
-
Save debugmodedotnet/20ed860b6ddd4877c2b1 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
static void Main(string[] args) | |
{ | |
CreateStudent(); | |
Console.WriteLine("Student Created"); | |
Context c = new Context(); | |
var result = from r in c.Students.Include("StudentAddresses") select r; | |
foreach (var r in result) | |
{ | |
Console.WriteLine(r.Name); | |
foreach(var a in r.StudentAddresses) | |
{ | |
Console.WriteLine(a.Address); | |
} | |
} | |
Console.ReadKey(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment