I want to pass a column name and value to a function that will update a table using LINQ.
I have the code below but don't know how to implement the string variable column name
private static void update(string key, string value)
{
AccessToken accessToken = new AccessToken();
accessToken.<key variable should go here> = value;
QBAccessTokensDataContext db = new QBAccessTokensDataContext();
db.AccessTokens.InsertOnSubmit(accessToken);
db.SubmitChanges();
}