For example, I insert a new client like the below using the entity framework.
And If I could use the same code to update the client as well, I would not have to write double the code.
If there is one way to code for both the insert and update, I would love to know how as this method above just inserts a new record.
** UPDATE ** The problem I run into with this solution is I have a one to many relationship.
I have another table ClientPayment that is one to many. So when I need to update the ClientPayment how do I reference this table for the update?
For the insert I would normaly do:
Any Help Will Be Appreciate!