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
|
2020-12-21 13:20:29 +03:00
|
|
|
|
{
|
2021-12-08 20:58:21 +03:00
|
|
|
|
[MapFrom(typeof(UserViewModel))]
|
|
|
|
|
public partial struct User
|
2020-12-21 13:20:29 +03:00
|
|
|
|
{
|
|
|
|
|
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; }
|
2020-12-21 13:20:29 +03:00
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-21 13:20:29 +03:00
|
|
|
|
}
|
|
|
|
|
}
|