2024-10-21 22:57:01 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Demo.Domain.Models
|
|
|
|
|
{
|
|
|
|
|
public class User
|
|
|
|
|
{
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
public string FullName { get; set; } = string.Empty;
|
|
|
|
|
public ClassGroup ClassGroup { get; set; } = new ClassGroup();
|
|
|
|
|
public int ClassId { get; set; }
|
2024-10-23 09:52:43 +00:00
|
|
|
|
public Guid UserId { get; internal set; }
|
2024-10-21 22:57:01 +00:00
|
|
|
|
|
|
|
|
|
public static explicit operator User(Data.LocalData.Entity.LocalUser v)
|
|
|
|
|
{
|
|
|
|
|
return new User
|
|
|
|
|
{
|
|
|
|
|
Id = Guid.NewGuid(),
|
|
|
|
|
FullName = v.FIO,
|
|
|
|
|
ClassGroup = v.ClassGroup,
|
|
|
|
|
ClassId = v.GroupID
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|