{"id":14965048,"url":"https://github.com/c3n9/avalonia-samples","last_synced_at":"2026-04-01T21:49:05.865Z","repository":{"id":219794012,"uuid":"749925222","full_name":"c3n9/Avalonia-Samples","owner":"c3n9","description":"These projects were developed as part of the learning process for Avalonia and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2024-04-04T09:36:16.000Z","size":66631,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T07:03:07.655Z","etag":null,"topics":["avalonia","livecharts2","postgresql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c3n9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-29T17:03:25.000Z","updated_at":"2024-11-07T15:25:48.000Z","dependencies_parsed_at":"2024-04-04T10:47:38.234Z","dependency_job_id":null,"html_url":"https://github.com/c3n9/Avalonia-Samples","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"f1fe30141579735fa7d2ba4bd7d1382a5462cb5c"},"previous_names":["c3n9/avalonia-directory"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c3n9%2FAvalonia-Samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c3n9%2FAvalonia-Samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c3n9%2FAvalonia-Samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c3n9%2FAvalonia-Samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c3n9","download_url":"https://codeload.github.com/c3n9/Avalonia-Samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238128490,"owners_count":19421044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avalonia","livecharts2","postgresql"],"created_at":"2024-09-24T13:34:08.857Z","updated_at":"2025-10-25T11:30:45.761Z","avatar_url":"https://github.com/c3n9.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![avalonia-white-purple](https://github.com/c3n9/Avalonia-Samples/assets/108518693/ca9608fa-12f0-4260-ab52-5463b32ab82d) Avalonia projects and test different functions.\n\n**These projects were developed as part of the learning process for Avalonia and PostgreSQL.**\n\n## Projects\n\n\n- [CRUD](https://github.com/c3n9/Avalonia-Samples/tree/CRUD): This project focuses on basic CRUD (Create, Read, Update, Delete) operations using Avalonia and PostgreSQL.\n- [ChitChat](https://github.com/c3n9/Avalonia-Samples/tree/ChitChat): ChitChat is a project showcasing chat functionality developed with Avalonia and PostgreSQL. This system is designed to support the transmission of messages between individual employees and\ngroups of employees.\n- [Hospital](https://github.com/c3n9/Avalonia-Samples/tree/Hospital): Hospital provides a comprehensive view of hospital wards, allowing you to efficiently manage patient occupancy. With our intuitive drag-and-drop feature, you can seamlessly move patients between words (drag\u0026drop).\n- [Statistic](https://github.com/c3n9/Avalonia-Samples/tree/Statistic): This project aims to implement various charts using Live Charts 2, a powerful charting library for .NET applications.\n- [TestApi](https://github.com/c3n9/Avalonia-Samples/tree/TestApi): This API is designed for CRUD operations. Data transmission occurs via the request body.\n- [Usb device driver](https://github.com/c3n9/Avalonia-Samples/tree/UsbDeviceDriver): using System.IO.Ports in Avalonia.\n**Feel free to explore each project for more details and contributions.**\n\n\n## To connect our PostgreSQL database to an Avalonia project\n\n\nWe need to install the following packages in the Avalonia project:\n\n\u003cdetails\u003e\n\u003csummary\u003eMicrosoft.EntityFrameworkCore.Design\u003c/summary\u003e\n  \nTo install Microsoft.EntityFrameworkCore.Design package using **.NET CLI**, run the following command:\n\n```bash\ndotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.0-preview.2.24128.4\n```\n\nTo install Microsoft.EntityFrameworkCore.Design package using **Package Manager**, run the following command:\n\n```bash\nNuGet\\Install-Package Microsoft.EntityFrameworkCore.Design -Version 9.0.0-preview.2.24128.4\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eNpgsql.EntityFrameworkCore.PostgreSQL\u003c/summary\u003e\n  \nTo install Npgsql.EntityFrameworkCore.PostgreSQL package using **.NET CLI**, run the following command:\n\n```bash\ndotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 9.0.0-preview.1\n```\n\nTo install Npgsql.EntityFrameworkCore.PostgreSQL package using **Package Manager**, run the following command:\n\n```bash\nNuGet\\Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 9.0.0-preview.1\n```\n\n\u003c/details\u003e\n\nThis command is used for reverse engineering PostgreSQL databases and automatically generating model classes based on the existing database schema.\n\n```powershell\ndotnet ef dbcontext scaffold \"Host=0.0.0.0;Username=postgres;Password=password;Database=DataBaseName\" Npgsql.EntityFrameworkCore.PostgreSQL --output-dir \u003cFolder where you want to generate classes\u003e\n```\nTo overwrite existing classes, use the --force option.\n\n```powershell\ndotnet ef dbcontext scaffold \"Host=0.0.0.0;Username=postgres;Password=password;Database=DataBaseName\" Npgsql.EntityFrameworkCore.PostgreSQL --output-dir \u003cFolder where you want to generate classes\u003e --force\n```\n```powershell\ndotnet tool install --global dotnet-ef --version 7.*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc3n9%2Favalonia-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc3n9%2Favalonia-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc3n9%2Favalonia-samples/lists"}