.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?
- Update a piece of fruit coming from the previous L2E call
- 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
Post a Comment