系统类图和ORM类图澄清 [英] System class diagram and ORM class diagram clarification

查看:90
本文介绍了系统类图和ORM类图澄清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为公司开发软件时,我遇到了一个问题。我想我需要对此进行一些澄清。所以我写了这个,如果有人有这样的问题,那么这篇文章将对你有帮助。



好​​吧让我们开始我的问题,



我将从我的问题开始解释,



绘制用例图后,我开始绘制系统的类图,然后为我的系统制作ER图。



毕竟我试图在我的VS IDE中实现这个系统。我根据我已经绘制的My ER图创建了SQL表结构。之后我为sql创建了Object关系映射。 />


然后我的问题出现了。我的类图和ORM类图都是相似的。(不是100%)。所以我在想我是否重复了类图?。因为ORM类为我完成了大部分工作所以为什么要实现其他类图?(这是我的类图当我开始设计软件时)



我相信我已经错过了某个地方的概念,如果你觉得你可以帮助我高度欣赏。



谢谢。

When I develop a software for the company I came across a problem.I think I need to have some clarification on that.So I wrote this and if someone has this kind of question then this post will help you.

Ok let''s start my question,

I will explain from the beginning of my question,

After I draw the Use case diagram then I start to draw the class diagram of my system, after that make the ER diagram for my system.

after all I tried to implement this system in my VS IDE.I create the SQL table structure according with My ER diagram which I already drew.after that I make Object relational mapping for sql.

Then my problem arose.My class diagram and the ORM class diagram both are alike.(not 100%).So I am thinking that "am I do the class diagram repeated?".because ORM class done most of the things for me so why do I implement other class diagrams ?(which is my class diagram when I start of design the software)

I am sure I have miss concept something somewhere and if you feel that you can help me highly appreciate.

thank you.

推荐答案

您的系统模型是您的域模型,它由您的业务模型中的类组成。 />


ORM模型或应用程序模型是包含应用程序实体的POCO(普通旧CLR对象)类的集合。



我觉得,一般来说,它们应该相似(或相同)。



从架构的角度来看,你的系统类图应该足够解释业务实体。如果它们与您的ORM entitis相同,您可以选择不再制作相同的图表。
Your system model is your domain model, which consists of classes from your business model.

The ORM model or the application model is the set of POCO (Plain old CLR objects) classes which holds the application entities.

I feel, in general, they should be similar (or same).

From the architectural point of view your system class diagram should be enough to explain the business entities. ANd if they are same as your ORM entitis, you may choose not to make the same diagram again.


这篇关于系统类图和ORM类图澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆