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