public Task <ContactCollectionResult> GetAllAsync() => DataInvoker.Current.InvokeAsync(this, async() => { ContactCollectionResult __result = new ContactCollectionResult(); var __dataArgs = EfDbArgs.Create(_mapper); __result.Result = _ef.Query <Contact, EfModel.Contact>(__dataArgs, q => _getAllOnQuery?.Invoke(q, __dataArgs) ?? q).SelectQuery <ContactCollection>(); return(await Task.FromResult(__result).ConfigureAwait(false)); });
public Task <ContactCollectionResult> GetAllAsync() { return(DataInvoker.Current.InvokeAsync(this, async() => { ContactCollectionResult __result = new ContactCollectionResult(); var __dataArgs = EfMapper.Default.CreateArgs(); __result.Result = _ef.Query(__dataArgs, q => _getAllOnQuery?.Invoke(q, __dataArgs) ?? q).SelectQuery <ContactCollection>(); return await Task.FromResult(__result).ConfigureAwait(false); })); }
public Task <ContactCollectionResult> GetAllAsync() { return(DataInvoker.Default.InvokeAsync(this, async() => { ContactCollectionResult __result = new ContactCollectionResult(); var __dataArgs = EfMapper.Default.CreateArgs(); if (_getAllOnBeforeAsync != null) { await _getAllOnBeforeAsync(__dataArgs).ConfigureAwait(false); } __result.Result = EfDb.Default.Query(__dataArgs, q => _getAllOnQuery == null ? q : _getAllOnQuery(q, __dataArgs)).SelectQuery <ContactCollection>(); if (_getAllOnAfterAsync != null) { await _getAllOnAfterAsync(__result).ConfigureAwait(false); } return __result; }, new BusinessInvokerArgs { ExceptionHandler = _getAllOnException })); }