Skip to content

.NET tech blog by Jukka

Month: April 2016

Posted on April 9, 2016August 19, 2017

Transform object to another type in a LINQ query

I had the following problem: let’s say I have a class called “Song”. I want to load it from the database and transform it to a data transfer object class called “SongDto” which includes only a subset of the original Song class’s properties.

Continue reading “Transform object to another type in a LINQ query”

Recent Posts

  • Using value types and aliases for IDs
  • Types of automated testing
  • Null object pattern and nullable reference types
  • What makes a senior developer?
  • To ORM or not to ORM

Recent Comments

  • What makes a senior developer? – .NET tech blog by Jukka on Pair programming

Archives

  • March 2025
  • July 2024
  • January 2024
  • November 2023
  • September 2023
  • October 2022
  • August 2021
  • January 2020
  • October 2016
  • April 2016
  • March 2016
  • December 2015

Categories

  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress