I have an existing function like this
public int sFunc(string sCol , int iId) { string sSqlQuery = \" select \" + sCol + \" from TableName where ID = \
You can do this:
var entity = _dbContext.Find(YourEntity, entityKey); // Finds column to select or update PropertyInfo propertyInfo = entity.GetType().GetProperty("TheColumnVariable");