incubator-stonehenge-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bende...@apache.org
Subject svn commit: r888844 - /incubator/stonehenge/trunk/stocktrader/dotnet/business_service/BusinessServiceImplementation/TradeService.cs
Date Wed, 09 Dec 2009 15:40:42 GMT
Author: bendewey
Date: Wed Dec  9 15:40:42 2009
New Revision: 888844

URL: http://svn.apache.org/viewvc?rev=888844&view=rev
Log:
JIRA: STONEHENGE-110, part2
Updated Hard-coded DALFactory values for DALFactory.Order.Create and DALFactory.MarketSummary.Create,
as well

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=888844&r1=888843&r2=888844&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:40:42 2009
@@ -748,7 +748,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.
-                dalMarketSummary = Trade.DALFactory.MarketSummary.Create("Trade.DALSQLServer");
+                dalMarketSummary = Trade.DALFactory.MarketSummary.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName));
 
                 var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName,
bsConfig.DBPort);
                 dalMarketSummary.Open(connectionString); ;
@@ -784,7 +784,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.
-                dalMarketSummary = Trade.DALFactory.MarketSummary.Create("Trade.DALSQLServer");
+                dalMarketSummary = Trade.DALFactory.MarketSummary.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName));
 
                 var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName,
bsConfig.DBPort);
                 dalMarketSummary.Open(connectionString); ;
@@ -893,7 +893,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.
-                dalOrder = Trade.DALFactory.Order.Create("Trade.DALSQLServer");
+                dalOrder = Trade.DALFactory.Order.Create(SQLHelper.GetAssemblyNameFromDBName(bsConfig.DBName));
                 var connectionString = SQLHelper.GenerateSqlServerConnectionString(bsConfig.DBHostName,
bsConfig.DBPort);
 
 



Mime
View raw message