First connection with entity object UI to Object

This commit is contained in:
2025-08-19 07:39:54 +02:00
parent 0d46bd3ade
commit 44419a880d
7 changed files with 124 additions and 32 deletions

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,44 @@
namespace AdventureWorks.EntityLayer.EntityClasses
{
public class User
{
public User()
{
LoginId = string.Empty;
FirstName = string.Empty;
LastName = string.Empty;
Email = string.Empty;
Password = string.Empty;
Phone = string.Empty;
PhoneType = string.Empty;
//IsFullTime = true;
//IsEnrolledIn401k = true;
//IsEnrolledInFlexTime = true;
//IsEnrolledInHealthCare = true;
//IsEnrolledInHSA = false;
//IsActive = true;
//BirthDate = "10-03-1975";
StartTime = new TimeSpan(6, 0, 0);
}
public int UserId { get; set; }
public string LoginId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public string Phone { get; set; }
public string PhoneType { get; set; }
public bool IsFullTime { get; set; }
public bool IsEnrolledIn401k { get; set; }
public bool IsEnrolledInFlexTime { get; set; }
public bool IsEnrolledInHealthCare { get; set; }
public bool IsEnrolledInHSA { get; set; }
public bool IsActive { get; set; }
public DateTime BirthDate { get; set; }
public TimeSpan StartTime { get; set; }
}
}