AGENTS

AGENTS.md

Personal BSc.CSIT (6th sem, TU Nepal, Batch 2080, studied 2083 BS) study-repo by Adarasha Gaihre (aakku106). It is an Obsidian vault of course notes (syllabi + past exam papers) mixed with practice C#/.NET code for the .NET-centric computing subject. It is a knowledge base and learning scratch space, not a shipped application — treat DOTNET code as teaching snippets, not production.

The repo may not hold every note for every subject; the exam-analysis notes are the "what to read" pointers for each course (see below). Course content/syllabus may change over time and notes are not guaranteed up to date. The owner holds no rights to any third-party content included (old question papers, syllabus sources, reference PDFs).

Repo layout

.NET projects (each is its own csproj, net10.0 target)

Run dotnet build inside each project directory; do not expect a single solution to build them all. .claude/settings.local.json already whitelists dotnet build.

Project Type Notes
DOTNET/Day1, Day2 console app (Exe) simple language demos
DOTNET/API/learnAPI ASP.NET Core Web API has Swagger; DI example (AddScoped<INotificationService, SmsNotificationService>)
DOTNET/MVC/learnMVC ASP.NET Core MVC web Razor views; uses Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (views compile at runtime) + WebApplication.MapStaticAssets
DOTNET/DB/LearnDB EF Core console + PostgreSQL requires a running Postgres

Additional DOTNET content under DOTNET/:

DB project quirk

LearnDB/Program.cs reads the connection string from the POSTGRES_CONNECTION_STRING env var, defaulting to Host=localhost;Port=5432;Database=postgres;Username=$USER. It uses EnsureCreatedAsync (no migrations) and calls CanConnectAsync to validate. Expect a "PostgreSQL connection failed" unless a local Postgres is running — falling back safely is intended, not a bug.

Toolchain

Git