https://github.com/suzu-devworks/examples-dotnet-database
A workspace for learning and experimenting with database programming using .NET and C#.
https://github.com/suzu-devworks/examples-dotnet-database
database devcontainers dotnet
Last synced: 5 months ago
JSON representation
A workspace for learning and experimenting with database programming using .NET and C#.
- Host: GitHub
- URL: https://github.com/suzu-devworks/examples-dotnet-database
- Owner: suzu-devworks
- License: mit
- Created: 2025-11-18T12:45:31.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-03T05:53:34.000Z (7 months ago)
- Last Synced: 2025-12-06T06:05:45.856Z (7 months ago)
- Topics: database, devcontainers, dotnet
- Language: C#
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# examples-dotnet-database

[](https://github.com/suzu-devworks/examples-dotnet-database/actions/workflows/dotnet-build.yml)
[](https://github.com/suzu-devworks/examples-dotnet-database/actions/workflows/codeql.yml)
## What is the purpose of this repository?
This repository serves as my personal sandbox for learning and experimenting with database programming using .NET and C#.
The content here may be useful for other developers who are facing similar challenges.
However, please note that the code presented here is based solely on my personal opinions and may contain errors or inaccuracies.
## Create `db_password.txt`
First, make sure you have the password for your database instance ready.
For example:
```shell
cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9!@#\$%&/:;\^()_+\-=<>?' | fold -w 24 | head -n 1 > .db_password.txt
```
## Multiple database environments
This repository uses multiple DevContainers configurations to switch between different databases.
As of now, it is as follows:
- [*default*](./.devcontainer/): EntityFrameworkCore.InMemory database and SQLite
- [`mssql`](./.devcontainer/mssql/): SQL server 2022 express edition
- [`pgsql`](./.devcontainer/pgsql/): PostgreSQL 18
To switch between containers, please use the `Dev Containers: Switch Container` command from the Command Palette (F1).