Initial
This commit is contained in:
15
StandManager.Domain/Entita/Base/EntitaBase.cs
Normal file
15
StandManager.Domain/Entita/Base/EntitaBase.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using OAService.Domain.Entita;
|
||||
|
||||
namespace StandManager.Domain.Entita.Base;
|
||||
|
||||
public class EntitaBase : BaseEntity
|
||||
{
|
||||
[ForeignKey(nameof(UtenteCreazione))]
|
||||
public override Guid? IdUtenteCreazione { get; set; }
|
||||
public virtual Utente? UtenteCreazione { get; set; }
|
||||
|
||||
[ForeignKey(nameof(UtenteModifica))]
|
||||
public override Guid? IdUtenteModifica { get; set; }
|
||||
public virtual Utente? UtenteModifica { get; set; }
|
||||
}
|
||||
16
StandManager.Domain/Entita/Utente.cs
Normal file
16
StandManager.Domain/Entita/Utente.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
public class Utente : EntitaBase
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Nome { get; set; }
|
||||
public string Cognome { get; set; }
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{Nome} {Cognome}";
|
||||
}
|
||||
}
|
||||
29
StandManager.Domain/StandManager.Domain.csproj
Normal file
29
StandManager.Domain/StandManager.Domain.csproj
Normal file
@ -0,0 +1,29 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<SupportedPlatform Include="browser"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.21"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_ContentIncludedByDefault Remove="wwwroot\background.png" />
|
||||
<_ContentIncludedByDefault Remove="wwwroot\exampleJsInterop.js" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="OAService.Domain">
|
||||
<HintPath>..\Libs\OAService.Domain.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user