W3C 或任何标准机构是否正在制定实体属性 ORM 定义的单一标准?
实际上有几十个基于 XML、YAML、JSON 和嵌套数组(整个约定优于配置)的标准来描述:数据库表、类、表和类之间的映射、约束、用户界面描述、实体和用户界面之间的映射、用户界面规则等。每种主要语言都有一个系统和竞争标准。 [http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software]
像 Active-Record 这样的一些“模式”正在 PHP、Python、Ruby、Java 等中实现。但是没有单一的共识 XML 或嵌套数组之类的东西德杜尔。与此同时,回到雷德蒙德,微软正在为一切制定 XML 标准,现在通过实体框架,他们又拥有了另一个 ORM 标准。
实体框架 + WPF (Windows Presentation Foundation) + WCF (Windows Communication Foundation) + WF (Windows Workflow Foundation) + LINQ(语言集成查询)= ???
我记得 Mozilla 的 XUL 是一个很漂亮的东西,但它不包括 ORM。看起来微软正在创建一套大量的 XML 标准,可用于定义整个应用程序类别,从 Web、移动、瘦客户端桌面到传统的重型桌面应用程序......所有这些,令人难以置信......一套标准。
所以……总结一下……W3C 有 XForms……但是(我们)需要一个 ORM 标准来推动事物发展,可以用 PHP、Python、Ruby、Java、Objective C、Perl、Javascript、C++ 实现,哦,还有 C#。如果它是活动记录...好吧...很好...但我认为这个问题比活动记录本身可以处理的要大得多。
There are literally dozens of XML, YAML, JSON, and nested array based (that whole convention over configuration thang) standards for describing : Database tables, Classes, Maps between Tables and Classes, Constraints, User Interface descriptions, Maps between Entities and User Interfaces, Rules for user Interfaces, etc. Every major language has a system and competing standards. [http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software]
Some "patterns" like Active-Record are getting implemented in PHP, Python, Ruby, Java etc. But there is no single consensus XML or the nested array thingy de-dur. mean while back in Redmond, Microsoft is crafting XML standards for, well, everything and now with the Entity Framework they have yet another ORM standard.
Entity Framework + WPF (Windows Presentation Foundation) + WCF (Windows Communication Foundation) + WF (Windows Workflow Foundation) + LINQ (language-integrated query) = ???
I recall Mozilla's XUL was a nifty thing, but it did not include ORM. Seems like Microsoft is creating a massive set of standards, in XML, that can be used to define entire classes of applications from web, to mobile, to thin client desktop, to traditional heavy desktop app...all, incredibly...with a single set of standards.
So ... to conclude ... W3C has XForms ... but (we) need an ORM standard to move things along, something that can be implemented in PHP, Python, Ruby, Java, Objective C, Perl, Javascript, C++, and oh ya C#. If it's active record...ok...fine...but I some how think that the problem is much bigger than Active Record can handle all by itself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答这个问题:没有;据我所知。
话虽这么说,XForms 与 ORM 没有太大关系。使用 XRX,它可以被视为 ORM 的对立面,目标是避免映射及其产生的复杂性。如果您使用相同的数据结构(XRX 中的 XML)来保存从 UI 到您调用的服务再到数据库的整个过程中的数据,您就可以避免数据转换和映射,从而降低系统的复杂性。
To answer the question: no; not that I am aware of.
This being said, XForms doesn't much to do with ORM. With XRX, it can be seen as the opposite of ORM, the goal being to avoid mapping, and the complexity it creates. If you use the same data structure (XML in the case of XRX) to hold data all the way, from your UI, to the services you call, to your database, you avoid data transformation and mapping, reducing the complexity of your system.