开发者

If EntityB inherits from EntityA, must I also make a CDEntityB class that inherits from CDEntityA? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by fact开发者_Go百科s, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I mean... is that a good idea?


No. Classes and entities are two completely different things. They do not need to mirror each other and in many cases it is a very bad idea.

Entity to class mapping is also not one-to-one so you can have one class that is being used by multiple entities if you so choose.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜