public static List <EntryPoint> GetYieldCurveEntryPoint(long?idYc, DateTime?settlementDate) { #if _LINQXML_ return(DataHelperLinqXml.GetYieldCurveEntryData(idYc, settlementDate)); #elif _SQLITE_ using (var ctx = new ConnectionContextSQLite()) { return(DataHelperSQLite.GetYieldCurveEntryPoint(ctx, idYc, settlementDate)); } #else // _MYSQL_ using (var ctx = new ConnectionContextMySQL()) { return(DataHelper.GetYieldCurveEntryData(ctx, idYc, settlementDate)); } #endif }
public static List <YieldCurveData> GetYieldCurveData(long?idYc) { #if _LINQXML_ return(DataHelperLinqXml.GetYieldCurveData(idYc)); #elif _SQLITE_ using (var ctx = new ConnectionContextSQLite()) { return(DataHelperSQLite.GetYieldCurveData(ctx, idYc)); } #else // _MYSQL_ using (var ctx = new ConnectionContextMySQL()) { return(DataHelper.GetYieldCurveData(ctx, idYc)); } #endif }
public static List <YieldCurveFamily> GetYieldCurveFamily(long?idYcFamily, long?idCurrency) { #if _LINQXML_ return(DataHelperLinqXml.GetYieldCurveFamily(idYcFamily, idCurrency)); #elif _SQLITE_ using (var ctx = new ConnectionContextSQLite()) { return(DataHelperSQLite.GetYieldCurveFamily(ctx, idYcFamily, idCurrency)); } #else // _MYSQL using (var ctx = new ConnectionContextMySQL()) { return(DataHelper.GetYieldCurveFamily(ctx, idYcFamily, idCurrency)); } #endif }
public static List <ExchangeRate> GetExchangeRates() { #if _LINQXML_ return(DataHelperLinqXml.GetXRates(null)); #elif _SQLITE_ using (var ctx = new ConnectionContextSQLite()) { return(DataHelperSQLite.GetXRates(ctx, null)); } #else // _MYSQL_ using (var ctx = new ConnectionContextMySQL()) { return(DataHelper.GetXRates(ctx, null)); } #endif }
/* * public static DayCounter GetDayCounter(string className) * { #if _LINQXML_ * return DataHelperLinqXml.GetDayCounter(null, className)[0]; #else * using (var ctx = new ConnectionContext()) * { * return DataHelper.GetDayCounter(ctx, className); * } #endif * } */ public static List <Calendar> GetCalendars() { #if _LINQXML_ return(DataHelperLinqXml.GetCalendars()); #elif _SQLITE_ using (var ctx = new ConnectionContextSQLite()) { return(DataHelperSQLite.GetCalendars(ctx)); } #else // _MYSQL_ using (var ctx = new ConnectionContextMySQL()) { return(DataHelper.GetCalendars(ctx)); } #endif }
public static List <DayCounter> GetDayCounters() { #if _LINQXML_ return(DataHelperLinqXml.GetDayCounter(null, null)); #elif _SQLITE_ using (var ctx = new ConnectionContextSQLite()) { return(DataHelperSQLite.GetDayCounter(ctx, null, null)); } #else // _MYSQL_ using (var ctx = new ConnectionContextMySQL()) { return(DataHelper.GetDayCounter(ctx, null, null)); } #endif }