/// <summary> /// Executes the given function. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="exec">The exec.</param> /// <param name="evaluateResult">The evaluate result.</param> /// <param name="onFailure">The on failure.</param> public void ExecFuncEnumerable <T>(Func <C, ObjectResult <T> > exec, Action <IEnumerable <T> > onSuccess) { DbContextHelper.ExecFuncEnumerable <C, T>(GetContext(), exec, onSuccess, null); }
/// <summary> /// Gets the exchange data context. /// </summary> /// <returns>Data context instance.</returns> public C GetContext() { return(DbContextHelper.GetDataContextInstance <C>( DbContextHelper.GetEFConnectionString(EF_EXCHANGE_CONN_STRING, DB_CONN_STRING, _getConnectionString()), _createInstance)); }