{"id":28763801,"url":"https://github.com/cockroachdb/example-app-dotnet-efcore","last_synced_at":"2025-06-17T09:10:31.830Z","repository":{"id":220382143,"uuid":"751410629","full_name":"cockroachdb/example-app-dotnet-efcore","owner":"cockroachdb","description":"Simple CRUD application in dotnet using Entity Framework Core","archived":false,"fork":false,"pushed_at":"2024-02-01T18:23:40.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":50,"default_branch":"main","last_synced_at":"2025-06-13T14:02:32.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cockroachdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-01T15:01:55.000Z","updated_at":"2024-09-02T00:17:27.000Z","dependencies_parsed_at":"2024-02-01T19:59:47.315Z","dependency_job_id":null,"html_url":"https://github.com/cockroachdb/example-app-dotnet-efcore","commit_stats":null,"previous_names":["cockroachdb/example-app-dotnet-efcore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cockroachdb/example-app-dotnet-efcore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fexample-app-dotnet-efcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fexample-app-dotnet-efcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fexample-app-dotnet-efcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fexample-app-dotnet-efcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cockroachdb","download_url":"https://codeload.github.com/cockroachdb/example-app-dotnet-efcore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fexample-app-dotnet-efcore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260326793,"owners_count":22992388,"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":[],"created_at":"2025-06-17T09:10:30.471Z","updated_at":"2025-06-17T09:10:31.816Z","avatar_url":"https://github.com/cockroachdb.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-app-dotnet-efcore\n\nA simple example of using CockroachDB with EntityFramework Core and the Npgsql driver.\n\n### Preparation\n\nAdd the database URL to the environment variable\n\n``` sh\n# For a local, insecure database:\nexport DATABASE_URL=\"Host=localhost;Port=26257;Database=defaultdb;Username=root\"\n\n# For a remote, secure database:\nexport DATABASE_URL=\"Server=HOST;Port=26257;Database=defaultdb;Userid=USER;Password=PASSWORD;SslMode=Require;\"\n```\n\nRun migrations\n\n``` sh\ndotnet tool install --global dotnet-ef\ndotnet add package Microsoft.EntityFrameworkCore.Design\ndotnet ef migrations add InitialCreate\ndotnet ef database update\n```\n\nRun app\n\n``` sh\ndotnet run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcockroachdb%2Fexample-app-dotnet-efcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcockroachdb%2Fexample-app-dotnet-efcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcockroachdb%2Fexample-app-dotnet-efcore/lists"}