1.修改Wildfish.config.xml进行配置数据源
Copy一个DataAccessProvider
修改对应的属性










这个是对应ISeries的










这个是对应MsSqlServer的。
(1)name 是用来给外部调用的时候指定名字的。
dataaccess namespace是用来指定使用哪种数据访问器。MsSqlServer就用Wildfish.DataAccess.Base.MsSql
ISeries 就用Wildfish.DataAccess.Base.ISeries
值范围:MsSql ISeries Oracle
(2)datasource 用来指定数据库服务器。MsSqlServer用于指定一个DbServer 的IP or Name. ISeries用于指定一个DbServer的IP or Name .Oracle用于指定一个DbServer的服务的名字。--Oracle不是很了解,所以概念上可能会有误差。
(3)Category 用于指定生产环境的数据库的名字--MSSqlServer 或者用于指定生产环境的库列表--ISeries
对于Oracle没有用处。
(4)UserID Password不用说了
(5)TestingCategory用于指定测试环境的数据库的名字--MSSqlServer 或者用于指定测试环境的库列表--ISeries
对于Oracle用于指定测试环境DbServer的服务名字。
(6)IsTesting 用于指定是否属于测试环境,值范围{true,false}
对于默认的数据源我们可以设定DataAccessSection 的Default对应的名字。
2。修改ConfigurationTool的App.config文件
修改Catelog设置默认的DataAccessProvider名字
修改NameSpace用于输出代码的默认命名空间,如果=Chateau ,那么Data的代码命名空间=Wildfish.Data.Chateau 以此类推,Rule层的=Wildfish.BusinessRule.Chateau
3。编译Wildfish的Solution,生成可执行的ConfigurationTool.exe和Wildfish.dll
...........................
今天好累,明天有体力了再写。