Suppose I have these tables:
Fruits
- FruitID INT PK
- FruitName NVARCHAR(30)
- FruitStatusID INT FK: Statuses
Statuses
- StatusID INT PK
- StatusName NVARCHAR(30)
How do I update both the Fruit's name and its status in the database in these situations?:
- Update a piece of Fruit that came from a previous L2E call
- given an integer corresponding to the FruitID (that is, I don't have a full Fruit object in hand to start with)
VB or C# is fine, thanks!