diff --git a/MarketData/MarketDataLib/DataAccess/StopLimitDA.cs b/MarketData/MarketDataLib/DataAccess/StopLimitDA.cs index 325ecf4..b210b61 100644 --- a/MarketData/MarketDataLib/DataAccess/StopLimitDA.cs +++ b/MarketData/MarketDataLib/DataAccess/StopLimitDA.cs @@ -87,47 +87,6 @@ namespace MarketData.DataAccess if (null != sqlConnection) sqlConnection.Close(); } } - - // [Obsolete("This method is obsolete. Use GetSopLimits(String symbol) instead.", false)] - // public static StopLimit GetStopLimit(String symbol) - // { - // MySqlConnection sqlConnection = null; - // MySqlDataReader sqlDataReader = null; - // MySqlCommand sqlCommand = null; - // String strQuery = null; - - // try - // { - // StringBuilder sb = new StringBuilder(); - // if (null == symbol) return null; - // sqlConnection = SqlUtils.CreateMySqlConnection(MainDataSource.Instance.LocateDataSource("portfolio_data")); - // sb.Append("select symbol,stop_limit,shares,stop_type from stoplimits "); - // sb.Append("where symbol='").Append(symbol).Append("'"); - // strQuery = sb.ToString(); - // sqlCommand = new MySqlCommand(strQuery, sqlConnection); - // sqlCommand.CommandTimeout = SqlUtils.COMMAND_TIMEOUT; - // sqlDataReader = sqlCommand.ExecuteReader(); - // if (!sqlDataReader.Read()) return null; - // StopLimit stopLimit = new StopLimit(); - // stopLimit.Symbol = sqlDataReader.GetString(0); - // stopLimit.StopPrice = sqlDataReader.GetDouble(1); - // stopLimit.Shares = sqlDataReader.GetDouble(2); - // stopLimit.StopType = sqlDataReader.GetString(3); - // return stopLimit; - // } - // catch (Exception exception) - // { - // MDTrace.WriteLine(LogLevel.DEBUG, exception); - // return null; - // } - // finally - // { - // if (null != sqlCommand) sqlCommand.Dispose(); - // if (null != sqlDataReader) { sqlDataReader.Close(); sqlDataReader.Dispose(); } - // if (null != sqlConnection) sqlConnection.Close(); - // } - // } - public static StopLimit GetStopLimit(String symbol,double shares) {