{"id":20215298,"url":"https://github.com/janluksoft/wpfcore5efsql","last_synced_at":"2025-08-22T05:34:20.401Z","repository":{"id":216181012,"uuid":"562222630","full_name":"janluksoft/WPFCore5EFSql","owner":"janluksoft","description":"WPF Core .NET5: Entity Framework application for CRUD operations on Microsoft SQL Server","archived":false,"fork":false,"pushed_at":"2022-11-05T17:17:04.000Z","size":516,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T11:18:01.481Z","etag":null,"topics":["c-sharp","code-first","core","dotnet","ef-core","entity-framework","mvvm","net5","net50","tests","visual-studio","wpf","wpf-application"],"latest_commit_sha":null,"homepage":"","language":"C#","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/janluksoft.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}},"created_at":"2022-11-05T17:16:59.000Z","updated_at":"2025-02-17T17:09:48.000Z","dependencies_parsed_at":"2024-01-08T21:35:43.543Z","dependency_job_id":"b44b30d1-5c84-4801-be6e-0ea566b1a81f","html_url":"https://github.com/janluksoft/WPFCore5EFSql","commit_stats":null,"previous_names":["janluksoft/wpfcore5efsql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janluksoft/WPFCore5EFSql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FWPFCore5EFSql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FWPFCore5EFSql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FWPFCore5EFSql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FWPFCore5EFSql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janluksoft","download_url":"https://codeload.github.com/janluksoft/WPFCore5EFSql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FWPFCore5EFSql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271590998,"owners_count":24786347,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c-sharp","code-first","core","dotnet","ef-core","entity-framework","mvvm","net5","net50","tests","visual-studio","wpf","wpf-application"],"created_at":"2024-11-14T06:21:11.533Z","updated_at":"2025-08-22T05:34:20.335Z","avatar_url":"https://github.com/janluksoft.png","language":"C#","readme":"# WPF Core: Entity Framework with SqlServer and MVVM\n\nThe application demonstrates the use of Entity Framework to perform CRUD operations on a Microsoft SQL Server database.  \nApplication uses the MVVM pattern.\nApplication uses my \"nice\" WPF windows (see: https://github.com/janluksoft/WPFCoreNiceWin).\n\nThe structure of the table is defined by the POCO (CPerson) class. The class (PeopleDBContext) creates a context (dbPersons) that represents a table (Sprinters) in the form of an object. Operations on this object are automatically transferred to the table (Sprinters) in the database.\n\n![](/Jpg/WPF_Window_nice_EF_MVVM.png)\n\n## Details\n\n- Environment: VS2019\n- Target: .NET5 (.NET Core)\n- Window: WPF\n- Pattern: MVVM\n- Tests: unit and integration\n\n## Using the application\n\n- On the (Login) tab, enter the login information from SQL Server\n- Check the connection with the button 2 (Check Connection)\n- For valid data, a message will be shown: (Connection Good)\n\n![](/Jpg/Entity-Framework_e_SQL-Server_Login-parameters.png)\n\n- In the (Proposal) tab, press the (4) button. The application should automatically create a table (Sprinters) on SQL Server\n![](Jpg/Entity-Framework_f_SQL-Server_Use_examples.png)\n\n- In the (DataBase) tab you can: (5) read the table from the SQL server, (6) add rows, (7) delete rows. \n![](/Jpg/Entity-Framework_g_SQL-Server_Created-table.png)\n\n## Tests in application\n\nThe application also includes two test projects: 1) unit test (TestProject) 2) integration test (TestProjectIntegration). \nThey both perform an action on the database using the Entity Framework. The integration test additionally uses transaction \nclasses for the database to reverse test operations.\n\nBelow are the test results:\n\n![](/Jpg/Test_unit.png)\n\n![](/Jpg/Test_integration.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanluksoft%2Fwpfcore5efsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanluksoft%2Fwpfcore5efsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanluksoft%2Fwpfcore5efsql/lists"}