Skip to content

Instantly share code, notes, and snippets.

@PilotBob
Created April 6, 2012 17:00
Show Gist options
  • Save PilotBob/2321336 to your computer and use it in GitHub Desktop.
Save PilotBob/2321336 to your computer and use it in GitHub Desktop.
GLEntity
KeyGuid Guid
EntityID String
ConsolHeader
KeyGUID Guid
TableID string
ConsolEntity FK to GLEntity.KeyGUID
ConsolDetail
KeyGUID Guid
ConsolHeader FK to ConsolHeader.KeyGUIT
Entity FK to GLEntity.KeyGUID (this would be a child)
Pct float
The relationship is
GLEntity 1 - to - 1 ConsolHeader 1 - to * ConsolDetail
I want to be able to access to ConsolDetails as a navigation property on GLEntity so I don't need to do...
GLEntity.ConsolHeader.Single().ConsolDeatail etc.
For some reason I thing in our EF model GLEntity is 1 to * with ConsolHeader but it shouldn't be.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment