using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using CnasSynchronusIDAL; using CnasSynchrousModel; namespace CnasSynchronusDAL { public class SqliteDBService : ISqliteService { public Dictionary GetInstrumentData(SqliteOpenParams t) { SQLiteDAL.SetConnectionString(t.StrPath, t.StrPwd); return SQLiteDAL.ReadSQLiteTables(); } public DataTable GetInstrumentDataByDate(SqliteOpenParams t, ConditionParams u) { SQLiteDAL.SetConnectionString(t.StrPath, t.StrPwd); return SQLiteDAL.ReadSQLiteTablesByDate( t.autoSql.SqliteViewName, t.autoSql.SqliteViewSql, u.TableName, u.DateColumn, u.DateValue ); } public DataTable GetInstrumentDataStruct(SqliteOpenParams t, ConditionParams u) { SQLiteDAL.SetConnectionString(t.StrPath, t.StrPwd); return SQLiteDAL.ReadSQLiteTableStruct( t.autoSql.SqliteViewName, t.autoSql.SqliteViewSql, u.TableName ); } } }