{"id":15003332,"url":"https://github.com/damienbod/aspnetcoremultipleproject","last_synced_at":"2025-04-09T16:12:02.274Z","repository":{"id":47492055,"uuid":"49133844","full_name":"damienbod/AspNetCoreMultipleProject","owner":"damienbod","description":"ASP.NET Core API EF Core and Swagger","archived":false,"fork":false,"pushed_at":"2022-12-08T14:54:45.000Z","size":481,"stargazers_count":225,"open_issues_count":3,"forks_count":84,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-04-09T16:10:46.502Z","etag":null,"topics":["asp-net-core","aspnetcore","ef-core","ms-sql-server","mysql","postgresql","sqlite"],"latest_commit_sha":null,"homepage":"http://damienbod.com/2016/01/07/experiments-with-entity-framework-7-and-asp-net-5-mvc-6/","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/damienbod.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}},"created_at":"2016-01-06T12:28:31.000Z","updated_at":"2025-02-12T06:37:11.000Z","dependencies_parsed_at":"2023-01-25T10:16:19.006Z","dependency_job_id":null,"html_url":"https://github.com/damienbod/AspNetCoreMultipleProject","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FAspNetCoreMultipleProject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FAspNetCoreMultipleProject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FAspNetCoreMultipleProject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FAspNetCoreMultipleProject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damienbod","download_url":"https://codeload.github.com/damienbod/AspNetCoreMultipleProject/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065283,"owners_count":21041872,"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":["asp-net-core","aspnetcore","ef-core","ms-sql-server","mysql","postgresql","sqlite"],"created_at":"2024-09-24T18:58:00.689Z","updated_at":"2025-04-09T16:12:02.254Z","avatar_url":"https://github.com/damienbod.png","language":"C#","readme":"# ASP.NET Core API with Entity Framework Core and Swagger\n\n[![.NET](https://github.com/damienbod/AspNetCoreMultipleProject/actions/workflows/dotnet.yml/badge.svg)](https://github.com/damienbod/AspNetCoreMultipleProject/actions/workflows/dotnet.yml)\n\n\u003cstrong\u003ePosts in this series:\u003c/strong\u003e\n\u003cul\u003e\t\n    \u003cli\u003e\u003ca href=\"https://damienbod.com/2016/01/07/experiments-with-entity-framework-7-and-asp-net-5-mvc-6/\"\u003eExperiments with Entity Framework Core and an ASP.NET Core API\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href=\"https://damienbod.com/2016/01/11/asp-net-5-with-postgresql-and-entity-framework-7/\"\u003eASP.NET Core with PostgreSQL and Entity Framework Core\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href=\"https://damienbod.com/2016/08/26/asp-net-core-1-0-with-mysql-and-entity-framework-core/\"\u003eASP.NET Core with MySQL and Entity Framework Core\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\n## History\n\n2021-08-29 Updated to .NET Core 5.0\n\n2020-11-08 Updated nuget packages\n\n2020-10-10 Updated nuget packages\n\n2020-01-10 Updated to .NET Core 3.1\n\n2019-03-03 Updated NuGet packages\n\n2018-12-04 Updated to .NET Core 2.2\n\n2018-11-28 Updated to .NET Core 2.2 preview\n\n2018-11-25 Updated NuGet packages, async everything, added swagger\n\n2018-06-16 Updated to .NET Core 2.1\n\n## Setup\n\n### MS SQL Server\n\ndotnet restore\n\ndotnet ef migrations add microsoftSql --context DomainModelMsSqlServerContext\n\ndotnet ef database update --context DomainModelMsSqlServerContext\n\n-or-\n\nAdd-Migration \"microsoftSql\" -c DomainModelMsSqlServerContext  \n\nUpdate-Database -c DomainModelMsSqlServerContext\n\n### SQLite \n\ndotnet restore\n\ndotnet ef migrations add sqliteMigration --context DomainModelSqliteContext\n\ndotnet ef database update --context DomainModelSqliteContext\n\n-or-\n\nAdd-Migration \"sqliteMigration\" -c DomainModelSqliteContext  \n\nUpdate-Database -c DomainModelSqliteContext\n\n### PostGreSQL \n\ndotnet restore\n\ndotnet ef migrations add postgresqlMigration --context DomainModelPostgreSqlContext\n\ndotnet ef database update --context DomainModelPostgreSqlContext\n\n-or-\n\nAdd-Migration \"postgresqlMigration\" -c DomainModelPostgreSqlContext  \n\nUpdate-Database -c DomainModelPostgreSqlContext\n\n### MySQL \n\ndotnet restore\n\ndotnet ef migrations add mySqlMigration --context DomainModelMySqlContext\n\ndotnet ef database update --context DomainModelMySqlContext\n\n-or-\n\nAdd-Migration \"mySqlMigration\" -c DomainModelMySqlContext  \n\nUpdate-Database -c DomainModelMySqlContext\n\n## Testing\n\nhttps://localhost:44388/api/dataeventrecords\nContext-Type: application/json\n\n```csharp\n{\n  \"DataEventRecordId\":0,\n  \"Name\":\"Funny data more\",\n  \"Description\":\"no\",\n  \"Timestamp\":\"2015-12-27T08:31:35Z\",\n  \"SourceInfo\":\n  { \n    \"SourceInfoId\":0,\n    \"Name\":\"Beauty\",\n    \"Description\":\"first Source\",\n    \"Timestamp\":\"2015-12-23T08:31:35+01:00\",\n  }, \n  \"SourceInfoId\": 0\n}\n```\n\nor if a SourceInfo exists\n\n```csharp\n{\n  \"DataEventRecordId\":0,\n  \"Name\":\"Funny data more\",\n  \"Description\":\"no\",\n  \"Timestamp\":\"2015-12-27T08:31:35Z\",\n  \"SourceInfoId\": 1\n}\n```\n\n\n### GET\n\nhttp://localhost:44388/api/dataeventrecords\n\nhttp://localhost:44388/api/SourceInfos\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienbod%2Faspnetcoremultipleproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamienbod%2Faspnetcoremultipleproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienbod%2Faspnetcoremultipleproject/lists"}