Click here to Skip to main content
14,176,439 members

Design and Architecture

 
GeneralRe: Send Purchase Order and Verify Email Pin
phil.o14-May-19 8:30
mvephil.o14-May-19 8:30 
GeneralRe: Send Purchase Order and Verify Email Pin
Kevin Marois14-May-19 9:06
professionalKevin Marois14-May-19 9:06 
GeneralRe: Send Purchase Order and Verify Email Pin
jschell18-May-19 6:59
memberjschell18-May-19 6:59 
GeneralRe: Send Purchase Order and Verify Email Pin
phil.o18-May-19 7:19
mvephil.o18-May-19 7:19 
Questionn-Tier Architecture and Async Pin
Kevin Marois10-May-19 6:07
professionalKevin Marois10-May-19 6:07 
AnswerRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 6:46
mveRichard Deeming10-May-19 6:46 
GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 7:18
professionalKevin Marois10-May-19 7:18 
GeneralRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 9:02
mveRichard Deeming10-May-19 9:02 
You're still using Task.Factory.StartNew to push synchronous work onto a background thread; it's just in the DAL now.

Assuming you're using Entity Framework, try something like:
public class DAL
{
    public async Task<List<EmployeeEntity>> GetAllEmployeesAsync()
    {
        using (var dc = SomeDataContext())
        {
            return await dc.Employees.Where(...).ToListAsync();
        }
    }
}

QueryableExtensions.ToListAsync Method (System.Data.Entity) | Microsoft Docs[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 9:10
professionalKevin Marois10-May-19 9:10 
GeneralRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 9:50
mveRichard Deeming10-May-19 9:50 
GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 10:08
professionalKevin Marois10-May-19 10:08 
GeneralRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 11:05
mveRichard Deeming10-May-19 11:05 
GeneralRe: n-Tier Architecture and Async Pin
Nathan Minier10-May-19 7:32
professionalNathan Minier10-May-19 7:32 
GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 7:36
professionalKevin Marois10-May-19 7:36 
QuestionLookup Editor Design Question Pin
Kevin Marois27-Apr-19 7:28
professionalKevin Marois27-Apr-19 7:28 
AnswerRe: Lookup Editor Design Question Pin
Mycroft Holmes27-Apr-19 13:29
memberMycroft Holmes27-Apr-19 13:29 
GeneralRe: Lookup Editor Design Question Pin
Kevin Marois27-Apr-19 13:44
professionalKevin Marois27-Apr-19 13:44 
GeneralRe: Lookup Editor Design Question Pin
Mycroft Holmes27-Apr-19 13:49
memberMycroft Holmes27-Apr-19 13:49 
GeneralRe: Lookup Editor Design Question Pin
Kevin Marois27-Apr-19 13:57
professionalKevin Marois27-Apr-19 13:57 
GeneralRe: Lookup Editor Design Question Pin
Eddy Vluggen28-Apr-19 1:09
mveEddy Vluggen28-Apr-19 1:09 
QuestionJ2EE or the other stuff. Pin
abmv22-Apr-19 7:35
professionalabmv22-Apr-19 7:35 
AnswerRe: J2EE or the other stuff. Pin
Eddy Vluggen22-Apr-19 8:00
mveEddy Vluggen22-Apr-19 8:00 
AnswerRe: J2EE or the other stuff. Pin
Gerry Schmitz22-Apr-19 8:30
mveGerry Schmitz22-Apr-19 8:30 
AnswerRe: J2EE or the other stuff. Pin
jschell27-Apr-19 7:54
memberjschell27-Apr-19 7:54 
QuestionDropBox Style App Pin
Kevin Marois17-Apr-19 11:07
professionalKevin Marois17-Apr-19 11:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190525.1 | Last Updated 18 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid