Skip to content

Instantly share code, notes, and snippets.

@BillStrait
Created January 24, 2013 11:08
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 BillStrait/4620112 to your computer and use it in GitHub Desktop.
Save BillStrait/4620112 to your computer and use it in GitHub Desktop.
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