In my case, I used the file in listing 4 to seed the database before running my component tests and then used the same file to indicate which data to delete from the database upon test completion.
在本文的例子中,将在运行组件测试前使用清单4中的文件在数据库中播种,然后使用相同的文件指示测试完成时从数据库中删除哪些数据。
This release also includes a new feature for adding seed data to a project database with a simple rake db: seed command.
这个版本也包括了一个新特性,能够通过一个简单的rakedb:seed命令将seed数据添加到项目数据库。
Prior to the seed file, no convention existed for initialization, and many developers put code in migrations, clouding the differentiation between creating the database and populating it.
在Seed文件之前,不存在初始化的惯例,许多开发人员把代码放入迁移中,这样容易混淆创建数据库和填充数据库之间的不同之处。
For example, to unit test an object that USES a database, it may be burdensome to install, configure, and seed a local copy of the database, run your tests, then tear the local database down again.
例如,要单元测试一个使用数据库的对象,安装、配置和发送本地数据库副本、运行测试然后再卸装本地数据库可能很麻烦。
A file containing the data needed to seed the database.
一个文件,包含需要放到数据库中的数据。
Of course, if you are redesigning a Web site, there will probably be enough real data to migrate from the old site to seed the Drupal database.
当然,如果您是在对Web站点进行重新设计,就可能有足够的真实数据,可以从旧站点迁移到Drupal数据库中。
However, Code First does have support to detect model and database differences, as well as seed the database with data using database initializers.
不过,第一个程序码不会有支援,以侦测到模型与资料库的差异,以及使用资料库初始设定式的资料植入资料库。
It is a effective way to normalize the seed market radically that establish the DNA fingerprint database of crop varieties and the relevant variety identification standard.
建立作物品种DNA指纹库并制定相关的鉴定标准,是一条从根本上规范我国种业市场的有效途径。
METHODS: Congenital heart disease-related susceptibility genes recorded in NCBI OMIM database were considered as "seed genes" and extracted.
方法:通过OM IM数据库获取已知的先天性心脏病相关易感基因。
METHODS: Congenital heart disease-related susceptibility genes recorded in NCBI OMIM database were considered as "seed genes" and extracted.
方法:通过OM IM数据库获取已知的先天性心脏病相关易感基因。
应用推荐