亚音速和 DB4O
我最近阅读了 Rob Conery 关于 DB4O 的文章非常有趣。我的问题实际上与 Subsonic 和 DB4O 的类生成和未来使用有关。
当 Subsonic 查看数据库然后生成类时,这对于 DB4O 来说如何工作。是否必须手动编写类,然后 DB4O 将存储类定义的对象,或者是否存在像 Subsonic 这样的类生成器可以使用的某种数据库设计过程?
Subsonic 是否会将 DB4O 作为其在未来版本中使用的数据库之一?
I was recently reading Rob Conery's post about DB4O and it was very interesting. My question is really concerned with class generation and future use of Subsonic and DB4O.
As Subsonic looks at the database and then generates classes how would this work for DB4O. Would the classes have to be written by hand and then DB4O would store the objects as defined by the class or would there be some database design procedure that a class generator like Subsonic could use?
Will Subsonic include DB4O as one of the databases it works against in future builds?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 SubSonic 或 DB4O,您可以手动编写类。事实上,这是一种很正常的做事方式。一旦您手动创建了类,SubSonic 就可以生成关系数据库表。 DB4O 不需要关系数据库表,因此此时 SubSonic 没有任何价值。
这没有道理。 DB4O 是一个面向对象的数据库。不需要关系映射。 SubSonic 是一个对象关系映射工具,因此它仅与关系数据库相关。
SubSonic 在 DB4O 世界中没有用处。
With either SubSonic or DB4O, you can write your classes by hand. In fact, this is a pretty normal way to do things. Once you've created your classes by hand, SubSonic can generate relational database tables. DB4O doesn't need relational database tables, so there is no value add to SubSonic at that point.
That doesn't make sense. DB4O is an object-oriented database. There is no relational mapping needed. SubSonic is an object-relational mapping tool and therefore it's only relevant for relational databases.
SubSonic has no use in the DB4O world.
在这个技术堆栈中,我能看到 Subsonic 的唯一地方是使用 Subsonic 来复制(而不是/除了 NHibernate)一个 db4o 数据库到一些 RDBMS。
请参阅:http://www.db4o.com/about/productinformation/drs/
使用
db4o
锁定Subsonic
来进行 RDBMS 持久性比Subonic
使用db4o
更有意义code> 生成/重用类。db4o
文件不包含完全限定的域架构。因此,db4o
域可能具有一些非持久类型,这些类型永远无法被Subsonic
等工具发现,因为从未将该类型的对象写入到该域中。数据库。The only place i can see for
Subsonic
in this technology stack would be to useSubsonic
to replicate (instead of/in addition to NHibernate) adb4o
database to some RDBMS.See: http://www.db4o.com/about/productinformation/drs/
It makes more sense for
db4o
to latch on toSubsonic
to do RDBMS persistance then it is forSubonic
to usedb4o
to generate/re-use classes. Adb4o
file does not contain a fully qualified domain schema. It could thus be possible that adb4o
domain has some unpersisted types that can never be discovered by a tool such asSubsonic
because no object of that type has ever been written to the database.