.
This commit is contained in:
22
PartSource.Data/AutoMapper/PartSourceProfile.cs
Normal file
22
PartSource.Data/AutoMapper/PartSourceProfile.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using AutoMapper;
|
||||
using PartSource.Data.Dtos;
|
||||
using PartSource.Data.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.AutoMapper
|
||||
{
|
||||
public class PartSourceProfile : Profile
|
||||
{
|
||||
public PartSourceProfile()
|
||||
{
|
||||
CreateMap<Vehicle, MakeDto>();
|
||||
CreateMap<Vehicle, ModelDto>();
|
||||
CreateMap<Vehicle, SubmodelDto>();
|
||||
CreateMap<Vehicle, BaseVehicleDto>();
|
||||
CreateMap<Vehicle, EngineDto>();
|
||||
CreateMap<Vehicle, VehicleDto>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user