This commit is contained in:
2025-12-01 09:56:00 +01:00
commit b1bd4f01b6
2237 changed files with 2624728 additions and 0 deletions

View File

@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore;
using OAService.Infrastructure.DAL.Context;
using StandManager.Domain.Entita;
namespace StandManager.Infrastructure.DAL.Context;
public class StandManagerDbContext : OAServiceContext
{
public StandManagerDbContext() : base() { }
public StandManagerDbContext(DbContextOptions options) : base(options) { }
public DbSet<Utente> Utente { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
if (!optionsBuilder.IsConfigured)
{
optionsBuilder.UseSqlServer("Data Source=192.168.0.233\\SQL2019;Initial Catalog=DAC_StandManager;Persist Security Info=True;User ID=dac_user;Password=KZ4ZrUPzJV;TrustServerCertificate=True");
}
}
}

View File

@ -0,0 +1,43 @@
<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"/>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.11" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.11">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.11" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.11">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="wwwroot\background.png" />
<_ContentIncludedByDefault Remove="wwwroot\exampleJsInterop.js" />
</ItemGroup>
<ItemGroup>
<Reference Include="OAService.Infrastructure">
<HintPath>..\Libs\OAService.Infrastructure.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StandManager.Domain\StandManager.Domain.csproj" />
</ItemGroup>
</Project>