https://github.com/tanbirhossain/copyobject
CopyObject is a object-to-object mapping dotnet library that can be used to map objects belonging to dissimilar types
https://github.com/tanbirhossain/copyobject
csharp dotnet mapper nuget-package
Last synced: 10 months ago
JSON representation
CopyObject is a object-to-object mapping dotnet library that can be used to map objects belonging to dissimilar types
- Host: GitHub
- URL: https://github.com/tanbirhossain/copyobject
- Owner: tanbirhossain
- License: mit
- Created: 2020-01-17T02:02:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T01:08:20.000Z (over 6 years ago)
- Last Synced: 2025-03-24T02:22:30.388Z (over 1 year ago)
- Topics: csharp, dotnet, mapper, nuget-package
- Language: C#
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CopyObject
CopyObject is a object-to-object mapping dotnet library that can be used to map objects belonging to dissimilar types
## Build Status
Appveyor
:-:
[![Build status][ai]][al]
[ai]: https://ci.appveyor.com/api/projects/status/efju4g16n15iwgq1?svg=true
[al]: https://ci.appveyor.com/project/tanbirhossain/copyobject
## NuGet Package
[](https://www.nuget.org/packages/CopyObject)
## Getting Started
### Packing a source NuGet package
Using NuGet tool to install [CopyObject](https://www.nuget.org/packages/CopyObject/) to your project
```
PM> Install-Package CopyObject
```
Or
```
dotnet add package CopyObject
```
## How to use ?
```
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);
}
}
}
```