I have a strange question...
lets stay i have a table called Media (it holds the various media a store holds)
Media has MediaName (string), MediaTypeid(int, FK), LicenseTypeid(int, FK)...
so., to "correctly" make it work
i would do a Dim Media as new MediaEntity
and because the MediaTypeid is a fk to the MediaType Table: ID, MediaName (1: CD, 2: Tape.....)., i would just do a Media.MediaTypeid = 1 (or 2 if it was a tape)... same applies to licensetypeid..
my question is... i can see that i actually have access to
Media.MediaType (because of the relationship?)
what happens if i do Media.MediaType.MediaName = "ABC" would that cause an error... OR
if i did a Media.Save.... would that create a NEW entry into MediaType as 3:ABC and then in my Media table... add the value 3 ?
im sure i could try it out,. but i just wanted to be sure... i dont have access to the db yet