big day behind me
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-05-19 04:33:53 +02:00
parent 4d4455679c
commit 8347b10401
36 changed files with 2291 additions and 284 deletions

View File

@ -0,0 +1,19 @@
using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HanyadikHetVan.Profiles
{
public class PauseProfile : Profile
{
public PauseProfile()
{
CreateMap<Pause, PauseDTO>();
CreateMap<PauseDTO, Pause>().ForMember(x => x.Id, options => options.Ignore()).ForMember(x => x.WeeklyTimeSpanId, options => options.Ignore());
}
}
}

View File

@ -0,0 +1,15 @@
using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
namespace HanyadikHetVan.Profiles
{
public class PurseProfile : Profile
{
public PurseProfile()
{
CreateMap<Purse, PurseDTO>();
CreateMap<PurseDTO, Purse>().ForMember(x => x.User, options => options.Ignore()).ForMember(x => x.UserId, options => options.Ignore()).ForMember(x => x.Id, options => options.Ignore());
}
}
}

View File

@ -0,0 +1,19 @@
using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HanyadikHetVan.Profiles
{
public class WeeklyTimeSpanProfile : Profile
{
public WeeklyTimeSpanProfile()
{
CreateMap<WeeklyTimeSpan, WeeklyTimeSpanDTO>();
CreateMap<WeeklyTimeSpanDTO, WeeklyTimeSpan>().ForMember(x => x.Id, options => options.Ignore()).ForMember(x => x.Owner, options => options.Ignore()).ForMember(x => x.OwnerId, options => options.Ignore());
}
}
}