CopyObject is a object-to-object mapping dotnet library that can be used to map objects belonging to dissimilar types
CopyObject is a object-to-object mapping dotnet library that can be used to map objects belonging to dissimilar types
Using NuGet tool to install CopyObject to your project
PM> Install-Package CopyObject
Or
dotnet add package CopyObject
using System;
namespace Test
{
class Program
{
static void Main(string[] args)
{
User userEntity = new User() { Id = 1, Name = "Ovi", DOB = DateTime.UtcNow };
UserVM userVM = new UserVM();
userVM.CopyObjectFrom(userEntity);
}
}
}