PI06 i PI06-1. Docker definitions for MSSQL and Postgres. Data seeder/generator for countries and people. Entity Framework example with variants for Postgres and MSSQL

This commit is contained in:
Boris Milašinović
2026-04-19 16:49:07 +02:00
parent 44a663e170
commit 6f56d107a2
89 changed files with 7305 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
namespace Using;
class C : IDisposable
{
public string Id { get; set; }
public void Dispose()
{
Console.WriteLine("** {0} : Dispose **", Id);
}
public C(string id)
{
Id = id;
Console.WriteLine("----> {0} : Ctor", Id);
}
}

View File

@@ -0,0 +1,20 @@
using Using;
try
{
C a1 = new C("A1");
using (C b2 = new C("B2"))
using (C d4 = new C("D4"))
{
C c3 = new C("C3");
throw new Exception("It is time for an exception");
}
a1.Dispose();
}
catch (Exception exc)
{
Console.WriteLine("Exc: " + exc.Message);
//throw exc;
//throw;
}

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>