{"id":13431263,"url":"https://github.com/dotnet/efcore","last_synced_at":"2025-12-16T16:41:23.860Z","repository":{"id":13467819,"uuid":"16157746","full_name":"dotnet/efcore","owner":"dotnet","description":"EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.","archived":false,"fork":false,"pushed_at":"2025-05-05T21:44:10.000Z","size":206020,"stargazers_count":14094,"open_issues_count":2395,"forks_count":3254,"subscribers_count":895,"default_branch":"main","last_synced_at":"2025-05-05T23:07:35.979Z","etag":null,"topics":["aspnet-product","c-sharp","database","dotnet-core","dotnet-framework","dotnet-standard","entity-framework","hacktoberfest","orm"],"latest_commit_sha":null,"homepage":"https://learn.microsoft.com/ef/","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/dotnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-01-23T00:52:01.000Z","updated_at":"2025-05-05T21:44:15.000Z","dependencies_parsed_at":"2024-01-01T14:29:51.889Z","dependency_job_id":"80bdfe9e-92f7-4863-983b-1e784bda1206","html_url":"https://github.com/dotnet/efcore","commit_stats":{"total_commits":13118,"total_committers":425,"mean_commits":"30.865882352941178","dds":0.8592773288611069,"last_synced_commit":"884e8a96865671b8d39acedb4b224a6eaf447c5e"},"previous_names":["aspnet/entityframework","aspnet/entityframeworkcore"],"tags_count":275,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fefcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fefcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fefcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet%2Fefcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotnet","download_url":"https://codeload.github.com/dotnet/efcore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590609,"owners_count":21772937,"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":["aspnet-product","c-sharp","database","dotnet-core","dotnet-framework","dotnet-standard","entity-framework","hacktoberfest","orm"],"created_at":"2024-07-31T02:01:01.770Z","updated_at":"2025-12-16T16:41:23.792Z","avatar_url":"https://github.com/dotnet.png","language":"C#","readme":"# Repository\n\n[![build status](https://img.shields.io/azure-devops/build/dnceng-public/public/17/main)](https://dev.azure.com/dnceng-public/public/_build?definitionId=17) [![test results](https://img.shields.io/azure-devops/tests/dnceng-public/public/17/main)](https://dev.azure.com/dnceng-public/public/_build?definitionId=17)\n\nThis repository is home to the following [.NET Foundation](https://dotnetfoundation.org/) projects. These projects are maintained by [Microsoft](https://github.com/microsoft) and licensed under the [MIT License](LICENSE.txt).\n\n* [Entity Framework Core](#entity-framework-core)\n* [Microsoft.Data.Sqlite](#microsoftdatasqlite)\n\n## \u003cimg alt=\"EF\" src=\"./logo/ef-logo.png\" width=\"32\"/\u003e Entity Framework Core\n\n[![latest version](https://img.shields.io/nuget/v/Microsoft.EntityFrameworkCore)](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore) [![preview version](https://img.shields.io/nuget/vpre/Microsoft.EntityFrameworkCore)](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/absoluteLatest) [![downloads](https://img.shields.io/nuget/dt/Microsoft.EntityFrameworkCore)](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore)\n\nEF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. EF Core works with SQL Server, Azure SQL Database, SQLite, Azure Cosmos DB, MariaDB, MySQL, PostgreSQL, and other databases through a provider plugin API.\n\n### Installation\n\nEF Core is available on [NuGet](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore). Install the provider package corresponding to your target database. See the [list of providers](https://docs.microsoft.com/ef/core/providers/) in the docs for additional databases.\n\n```sh\ndotnet add package Microsoft.EntityFrameworkCore.SqlServer\ndotnet add package Microsoft.EntityFrameworkCore.Sqlite\ndotnet add package Microsoft.EntityFrameworkCore.Cosmos\n```\n\nUse the `--version` option to specify a [preview version](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/absoluteLatest) to install.\n\n### Daily builds\n\nWe recommend using the [daily builds](docs/DailyBuilds.md) to get the latest code and provide feedback on EF Core. These builds contain latest features and bug fixes; previews and official releases lag significantly behind.\n\n### Basic usage\n\nThe following code demonstrates basic usage of EF Core. For a full tutorial configuring the `DbContext`, defining the model, and creating the database, see [getting started](https://docs.microsoft.com/ef/core/get-started/) in the docs.\n\n```cs\nusing var db = new BloggingContext();\n\n// Inserting data into the database\ndb.Add(new Blog { Url = \"http://blogs.msdn.com/adonet\" });\ndb.SaveChanges();\n\n// Querying\nvar blog = db.Blogs\n    .OrderBy(b =\u003e b.BlogId)\n    .First();\n\n// Updating\nblog.Url = \"https://devblogs.microsoft.com/dotnet\";\nblog.Posts.Add(\n    new Post\n    {\n        Title = \"Hello World\",\n        Content = \"I wrote an app using EF Core!\"\n    });\ndb.SaveChanges();\n\n// Deleting\ndb.Remove(blog);\ndb.SaveChanges();\n```\n\n### Build from source\n\nMost people use EF Core by installing pre-build NuGet packages, as shown above. Alternately, [the code can be built and packages can be created directly on your development machine](./docs/getting-and-building-the-code.md).\n\n### Contributing\n\nWe welcome community pull requests for bug fixes, enhancements, and documentation. See [How to contribute](./.github/CONTRIBUTING.md) for more information.\n\n### Getting support\n\nIf you have a specific question about using these projects, we encourage you to [ask it on Stack Overflow](https://stackoverflow.com/questions/tagged/entity-framework-core*?tab=Votes). If you encounter a bug or would like to request a feature, [submit an issue](https://github.com/dotnet/efcore/issues/new/choose). For more details, see [getting support](.github/SUPPORT.md).\n\n## Microsoft.Data.Sqlite\n\n[![latest version](https://img.shields.io/nuget/v/Microsoft.Data.Sqlite)](https://www.nuget.org/packages/Microsoft.Data.Sqlite) [![preview version](https://img.shields.io/nuget/vpre/Microsoft.Data.Sqlite)](https://www.nuget.org/packages/Microsoft.Data.Sqlite/absoluteLatest) [![downloads](https://img.shields.io/nuget/dt/Microsoft.Data.Sqlite.Core)](https://www.nuget.org/packages/Microsoft.Data.Sqlite)\n\nMicrosoft.Data.Sqlite is a lightweight ADO.NET provider for SQLite. The EF Core provider for SQLite is built on top of this library. However, it can also be used independently or with other data access libraries.\n\n### Installation\n\nThe latest stable version is available on [NuGet](https://www.nuget.org/packages/Microsoft.Data.Sqlite).\n\n```sh\ndotnet add package Microsoft.Data.Sqlite\n```\n\nUse the `--version` option to specify a [preview version](https://www.nuget.org/packages/Microsoft.Data.Sqlite/absoluteLatest) to install.\n\n### Daily builds\n\nWe recommend using the [daily builds](docs/DailyBuilds.md) to get the latest code and provide feedback on Microsoft.Data.Sqlite. These builds contain latest features and bug fixes; previews and official releases lag significantly behind.\n\n### Basic usage\n\nThis library implements the common [ADO.NET](https://docs.microsoft.com/dotnet/framework/data/adonet/) abstractions for connections, commands, data readers, and so on. For more information, see [Microsoft.Data.Sqlite](https://docs.microsoft.com/dotnet/standard/data/sqlite/) on Microsoft Docs.\n\n```cs\nusing var connection = new SqliteConnection(\"Data Source=Blogs.db\");\nconnection.Open();\n\nusing var command = connection.CreateCommand();\ncommand.CommandText = \"SELECT Url FROM Blogs\";\n\nusing var reader = command.ExecuteReader();\nwhile (reader.Read())\n{\n    var url = reader.GetString(0);\n}\n```\n\n### Build from source\n\nMost people use Microsoft.Data.Sqlite by installing pre-build NuGet packages, as shown above. Alternately, [the code can be built and packages can be created directly on your development machine](./docs/getting-and-building-the-code.md).\n\n### Contributing\n\nWe welcome community pull requests for bug fixes, enhancements, and documentation. See [How to contribute](./.github/CONTRIBUTING.md) for more information.\n\n### Getting support\n\nIf you have a specific question about using these projects, we encourage you to [ask it on Stack Overflow](https://stackoverflow.com/questions/tagged/microsoft.data.sqlite). If you encounter a bug or would like to request a feature, [submit an issue](https://github.com/dotnet/efcore/issues/new/choose). For more details, see [getting support](.github/SUPPORT.md).\n\n## See also\n\n* [Documentation](https://docs.microsoft.com/ef/core/)\n* [Roadmap](https://docs.microsoft.com/ef/core/what-is-new/roadmap)\n* [Weekly status updates](https://github.com/dotnet/efcore/issues/23884)\n* [Release planning process](https://docs.microsoft.com/ef/core/what-is-new/release-planning)\n* [How to write an EF Core provider](https://docs.microsoft.com/ef/core/providers/writing-a-provider)\n* [Security](./docs/security.md)\n* [Code of conduct](.github/CODE_OF_CONDUCT.md)\n","funding_links":[],"categories":["Frameworks, Libraries and Tools","C\\#","Data Access","C# #","C#","Libraries, Frameworks and Tools","数据库管理系统","Libraries","hacktoberfest","ORM"],"sub_categories":["ORM","Database","网络服务_其他","ORM and Micro-ORM","GUI - other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet%2Fefcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotnet%2Fefcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet%2Fefcore/lists"}