public static void ChangeColumnName <T>(this IDbConnection dbConn, Expression <Func <T, object> > field, string oldColumnName) { var modelDef = ModelDefinition <T> .Definition; var fieldDef = modelDef.GetFieldDefinition <T>(field); dbConn.ChangeColumnName(typeof(T), fieldDef, oldColumnName); }