jeudi 16 mars 2017

How do I update a column by parameter in Entity Framework

I'm working with EntityFramework and I need to update a record. My update function has 3 parameters: PK (the identifier), name the name of the column and newValue the new value.

Now what I want to be able to do is pass the column which value has to change to the method and change it.

Example:
If I pass 1, "Description", "NewValue" to the update function I want the row with Id 1 to have its Description value change to NewValue





Aucun commentaire:

Enregistrer un commentaire