在将这些 SPROC 替换为在数据库外部实现的 DAL 后,如何复制 SPROC 表依赖关系图?
我需要一个适用于拥有数百个应用程序和 SQL 数据库的企业环境的解决方案。当前的体系结构标准要求所有应用程序都使用 SPROC 实现 DAL。原因之一是,当对数据库执行持续迁移、废弃或修改时,这些存储过程和数据库对象之间的依赖关系图(包括对链接服务器上的对象的依赖关系)指示哪些应用程序将受到迁移或删除数据库的影响。
如果要更改架构标准以允许 ORM(例如 LLBLGen、实体框架 v4 等),则不再可能以这种方式生成依赖关系图。
关于如何在 .NET 中实现的 DAL 和 DB 对象之间生成依赖关系图,有什么想法吗?该解决方案需要静态工作(即在运行时不得依赖“监控”数据库访问)。
我可以想象该解决方案可能是特定于产品/技术的,在这种情况下,假设 LLBLGen 用于 DAL,SQL Server 用于数据库。
I need a solution for an enterprise environment with 100s of applications and SQL databases. A current architecture standard requires that all applications implement DALs using SPROCs. One reason for this is that, when performing ongoing migration, obsolescing or modifications to databases, dependency graphs between these SPROCs and database objects (including dependencies to objects on linked servers) indicate what applications will be impacted by migrating or removing a database.
If one were to change the architectural standard to allow ORMs (e.g. LLBLGen, Entity Framework v4, ...), producing dependency graphs this way would not be possible anymore.
Any ideas on how we can produce dependency graphs between DALs implemented in .NET and DB objects? The solution needs to work statically (i.e. mustn't rely on 'mionitoring' db access during runtime).
I can imagine that the solution might be product/technology specific in which case assume LLBLGen for the DAL and SQL Server for the database.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从 ORM 元数据生成占位符 SPROC,其中包括该特定应用程序使用的所有表/视图/SPROC/函数,然后使用当前工具来分析依赖关系。
You could generate a placeholder SPROC from the ORM metadata that includes all the tables/views/SPROCs/functions used by that particular application and then use the current tools to analyze dependencies.
我从 LLBLGen 得到了答案:
I got an answer from LLBLGen: