Author: bendewey Date: Wed Dec 9 15:36:51 2009 New Revision: 888841 URL: http://svn.apache.org/viewvc?rev=888841&view=rev Log: JIRA: STONEHENGE-110
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs Modified: incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs?rev=888841&r1=888840&r2=888841&view=diff ============================================================================== --- incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs (original) +++ incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs Wed Dec 9 15:36:51 2009 @@ -204,7 +204,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); ; @@ -248,7 +248,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); ; @@ -289,7 +289,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); ; @@ -378,7 +378,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); ; @@ -417,7 +417,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); @@ -456,7 +456,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); ; @@ -496,7 +496,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); ; @@ -536,7 +536,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString); ; @@ -577,7 +577,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); @@ -712,7 +712,7 @@ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, bsRequest.BSName)); //Create instance of a DAL, which could be designed for any type of DB backend. - dalCustomer = Trade.DALFactory.Customer.Create("Trade.DALSQLServer"); + dalCustomer = Trade.DALFactory.Customer.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName)); var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName, bsConfig.DBPort); dalCustomer.Open(connectionString);