slarny4/Demo1/Domain/Models/User.cs
Class_Student aa3336ca1b init
2024-10-23 12:52:43 +03:00

25 lines
653 B
C#

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; }
public Guid UserId { get; internal set; }
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
};
}
}
}