An open API service indexing awesome lists of open source software.

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

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://img.shields.io/nuget/v/CopyObject.svg)](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);
}
}
}
```