© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
6 replies
ogie1985

Entityframework .Select vs Mapping method [Answered]

Is the following the same or has it performance difference?

var myList = await _dbContext.SomeList.Select(x => new myDTO{...}.ToListAsync();
var myList = await _dbContext.SomeList.Select(x => new myDTO{...}.ToListAsync();


var myData = await _dbContext.SomeList.ToListAsync();
var myList = MapToMyDTO(myData);
var myData = await _dbContext.SomeList.ToListAsync();
var myList = MapToMyDTO(myData);
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

interface vs extension method vs method in class
C#CC# / help
3y ago