MapTo/test/TestConsoleApp/Data/Models/User.cs

29 lines
731 B
C#
Raw Normal View History

2021-02-07 13:51:49 +03:00
using System;
2021-12-08 20:58:21 +03:00
using TestConsoleApp.ViewModels;
using MapTo;
using System.Collections.Generic;
2021-02-07 13:51:49 +03:00
namespace TestConsoleApp.Data.Models
{
2021-12-08 20:58:21 +03:00
[MapFrom(typeof(UserViewModel))]
public partial struct User
{
public int Id { get; set; }
2021-12-08 20:58:21 +03:00
public List<List<string>> ListOfListOfString {get; }
public List<string> StringList { get; }
2021-02-07 13:51:49 +03:00
public DateTimeOffset RegisteredAt { get; set; }
2021-12-08 20:58:21 +03:00
public User( int id, List<List<string>> listOfListOfString, List<string> stringList, DateTimeOffset registeredAt)
{
this.StringList = stringList;
this.Id = id;
ListOfListOfString = listOfListOfString;
RegisteredAt = registeredAt;
}
}
}