4place
EggBlox ReSharper Plugins All the ideas and discussions
0 votes Vote

Update a class from another one (eg an EF entity from a dto)

as well as converting from one class instance to another, which seems to work well even if they arent the same class type (but have same properties), it would be great if it could support the following pattern:

class MyDto {
string Prop1 {get;set;}

public void UpdateEntityFromDto(MyEntity entity)
{
entity.Prop1 = Prop1;
etc
}

its a very useful pattern when working with EF and dtos

fpdave100, 12.12.2018, 12:12
Idea status: under consideration

Comments

Leave a comment