.net 3.5 - How do I update an object's foreign key value with LINQ to Entities? -


Suppose i have these tables:

  fruit - fruitid INT pk - of fruit Name NVRARA (30) - Footstattus INT FK: Status Status - StatusInt PK - SATSAM NVARCHAR (30)  

In these situations, both the name of the database and its position in the database How can I update?

  1. Update a piece of fruit coming from the previous L2E call
  2. An integer related to the Fried ID is given (i.e., a full fruit in my hand

Well, thank you!

< P> But that is not what I was expecting:

  int positionID = 4; // some id fruits.freed IDRference.INTTK = new entity ("MyTyTTsStatus", "StatusId", S TetusID) Definitely a cleaner way to do this, which is not a difficult one-the encoding string (which presents the typo exceptions if I do a typo). 


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -