Hey
I want to copy data from one entity to another.
I have something like this :
MyEntity newEntity = new Entity()
newEntity.Property1 = oldEntity.Property1 ....
Is there easier way to do this? I have many properties and I would like to write something like newEntity = oldEntity, but this is impossible because of primary key duplication
you can use code like this:
Hope it helps 🙂