I have an class that I fill from database:
// original data
var dbData = this.GetOriginalData(ID);
Then I want to create a new instance of the same object in which I can modify properties but keeping the original one as it is.
If I do:
var newData = dbData;
newData.Text = "Sample";
Then dbData.Text is also being altered.
How can I create an instance of dbData without creating a new class and passing property by property or without using AutoMapper for example.