Created
January 24, 2013 11:08
-
-
Save BillStrait/4620112 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
public class Foo | |
{ | |
[Key] | |
public Int32 FooId { get; set; } | |
public String Drr { get; set; } | |
public ICollection<Bar> Bars { get; set; } | |
} | |
public class Bar | |
{ | |
[Key] | |
public Int32 BarId { get; set; } | |
public string Herp { get; set; } | |
public Int32 FooId { get; set; } | |
[ForeignKey("FooId")] | |
public Foo Foo { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment