@@ -130,33 +130,35 @@ private static void SetupSQLite(Cfg.Configuration cfg)
130
130
131
131
private static void SetupOracle ( Cfg . Configuration cfg )
132
132
{
133
- var connStr =
134
- cfg . Properties [ Cfg . Environment . ConnectionString ]
135
- . Replace ( "User ID=nhibernate" , "User ID=SYSTEM" )
136
- . Replace ( "Password=nhibernate" , "Password=password" ) ;
137
-
138
- cfg . DataBaseIntegration ( db =>
139
- {
140
- db . ConnectionString = connStr ;
141
- db . Dialect < NHibernate . Dialect . Oracle10gDialect > ( ) ;
142
- db . KeywordsAutoImport = Hbm2DDLKeyWords . None ;
143
- } ) ;
144
-
145
- using ( var sf = cfg . BuildSessionFactory ( ) )
146
- {
147
- try
148
- {
149
- using ( var s = sf . OpenSession ( ) )
150
- s . CreateSQLQuery ( "drop user nhibernate cascade" ) . ExecuteUpdate ( ) ;
151
- }
152
- catch { }
153
-
154
- using ( var s = sf . OpenSession ( ) )
155
- {
156
- s . CreateSQLQuery ( "create user nhibernate identified by nhibernate" ) . ExecuteUpdate ( ) ;
157
- s . CreateSQLQuery ( "grant dba to nhibernate with admin option" ) . ExecuteUpdate ( ) ;
158
- }
159
- }
133
+ // disabled until system password is set on TeamCity
134
+
135
+ //var connStr =
136
+ // cfg.Properties[Cfg.Environment.ConnectionString]
137
+ // .Replace("User ID=nhibernate", "User ID=SYSTEM")
138
+ // .Replace("Password=nhibernate", "Password=password");
139
+
140
+ //cfg.DataBaseIntegration(db =>
141
+ // {
142
+ // db.ConnectionString = connStr;
143
+ // db.Dialect<NHibernate.Dialect.Oracle10gDialect>();
144
+ // db.KeywordsAutoImport = Hbm2DDLKeyWords.None;
145
+ // });
146
+
147
+ //using (var sf = cfg.BuildSessionFactory())
148
+ //{
149
+ // try
150
+ // {
151
+ // using(var s = sf.OpenSession())
152
+ // s.CreateSQLQuery("drop user nhibernate cascade").ExecuteUpdate();
153
+ // }
154
+ // catch {}
155
+
156
+ // using (var s = sf.OpenSession())
157
+ // {
158
+ // s.CreateSQLQuery("create user nhibernate identified by nhibernate").ExecuteUpdate();
159
+ // s.CreateSQLQuery("grant dba to nhibernate with admin option").ExecuteUpdate();
160
+ // }
161
+ //}
160
162
}
161
163
}
162
164
}
0 commit comments