[Quantproject-developers] QuantDownloader/Downloader/Validate QuotesToBeValidated.cs,NONE,1.1
Brought to you by:
glauco_1
|
From: <gla...@us...> - 2003-12-09 22:20:14
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/Validate
In directory sc8-pr-cvs1:/tmp/cvs-serv2034/Downloader/Validate
Added Files:
QuotesToBeValidated.cs
Log Message:
DataTable used to fetch all the quotes rows
to be validated against several different rules.
--- NEW FILE: QuotesToBeValidated.cs ---
using System;
using System.Data;
using System.Data.OleDb;
namespace QuantProject.Applications.Downloader.Validate
{
/// <summary>
/// Summary description for QuotesToBeValidated.
/// </summary>
public class QuotesToBeValidated : DataTable
{
private string selectStatement;
private OleDbDataAdapter oleDbDataAdapter;
public QuotesToBeValidated( string tickerIsLike )
{
// this.selectStatement =
// "select * from quotes where quTicker like '" + tickerIsLike + "'";
this.selectStatement =
"select * from quotes where quTicker = '" + tickerIsLike + "'";
this.oleDbDataAdapter = new OleDbDataAdapter( selectStatement , AdoNetTools.OleDbConnection );
try
{
this.oleDbDataAdapter.Fill( this );
}
catch (Exception exception)
{
Console.WriteLine( exception.ToString() );
}
}
}
}
|