You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/test/DistEvents/DistDemoApp/TodoItemObjectMapper.cs

24 lines
655 B

using Volo.Abp.DependencyInjection;
using Volo.Abp.ObjectMapping;
namespace DistDemoApp
{
public class TodoItemObjectMapper : IObjectMapper<TodoItem, TodoItemEto>, ISingletonDependency
{
public TodoItemEto Map(TodoItem source)
{
return new TodoItemEto
{
Text = source.Text,
CreationTime = source.CreationTime
};
}
public TodoItemEto Map(TodoItem source, TodoItemEto destination)
{
destination.Text = source.Text;
destination.CreationTime = source.CreationTime;
return destination;
}
}
}