When working with legacy data where the data being loaded into SQL server tables contains trailing spaces, the trailing spaces will remain in the fields regardless of whether the fields are varchar This poses problems when doing compares or extracting data to files as you may not get the results you are looking for. One […]
Entity Framework cloning
July 12, 2015 by 21 Comments
On a recent project, I had come across the need to copy an existing EF Entity. Upon my research, I found several ways to accomplish this task. One way is to create a new object and manually assign the property values using the existing object values. You can also use some kind of mapping utility if it […]