是否有任何快速的数据库原型工具不需要我声明数据库模式,而是基于我使用我的实体的方式创建它。Adaptive Database
例如,假设一个空数据库(伪代码):
user1 = new User() // Creates the user table with a single id column
user1.firstName = "Allain" // alters the table to have a firstName column as varchar(255)
user2 = new User() // Reuses the table
user2.firstName = "Bob"
user2.lastName = "Loblaw" // Alters the table to have a last name column
既然有可以在动态创建的模式进行逻辑假设,你总是可以使用您的数据库工具替代它的选择稍后再调整它。
此外,你可以通过这种方式进行单元测试来生成你的模式。
显然这只适用于原型设计。
有没有这样的东西呢?
哦,对于原型设计,请使用内存中的SQLite数据库引擎! (ADO.NET提供者在这里 ) –
2008-09-09 14:58:59