一句话:提出统一可扩展框架 ORMorpher,实现异构 ORM 间的代码结构转换与资源感知的框架选型优化。
应用需求的频繁变化不仅要求数据库模式与查询的适配,还要求对象-关系映射(ORM)代码的迁移与优化。已有研究主要关注数据库与查询迁移,而跨 ORM 框架的应用层翻译长期被忽视。本文提出 ORMorpher,一个统一且可扩展的框架,用于在异构 ORM 之间进行翻译与优化。与现有方案不同,ORMorpher 同时支持结构性代码变换,以及在用户定义约束下进行资源感知的框架选择。作者在 Microsoft SQL Server 上对三种广泛使用的 .NET 框架(Entity Framework Core、NHibernate 与 Dapper)进行了演示,证明了该框架在实际性能驱动迁移中的有效性。源码与演示视频已公开。
Frequent changes in application requirements demand not only schema and query adaptation but also migration and optimization of the object-relational mapping (ORM) code. While database and query migration are well-studied, application-level translation across ORM frameworks remains largely overlooked. We present ORMorpher, a unified and extensible framework for translating and optimizing across heterogeneous ORMs. Unlike existing solutions, ORMorpher supports both structural code transformation and resource-aware frame-work selection under user-defined constraints. Although broadly applicable, we demonstrate its effectiveness on three widely-used .NET frameworks: Entity Framework Core, NHibernate, and Dapper over Microsoft SQL Server, enabling practical, performance-driven migration. The source code is available at: https://github.com/milan252525/orm-convertor. A demonstration video is available at: https://youtu.be/zwGGdqXtrzM.
DOI 原文 ·
@inproceedings{paperbot9490,
title = {ORMorpher: An Interactive Framework for ORM Translation and Optimization},
author = {Milan Abrahám and Pavel Koupil},
booktitle = {ASE},
year = {2025},
doi = {10.1109/ase63991.2025.00369}
}