GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dotnet/efcore: EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

BranchesTags
Open more actions menu

Latest commit

 

History

19,072 Commits
19,072 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills
.agents/skills
 
 
.azuredevops
.azuredevops
 
 
.claude
.claude
 
 
.config
.config
 
 
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.vscode
.vscode
 
 
benchmark
benchmark
 
 
docs
docs
 
 
eng
eng
 
 
logo
logo
 
 
rulesets
rulesets
 
 
src
src
 
 
test
test
 
 
tools
tools
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
Directory.Build.props
Directory.Build.props
 
 
Directory.Build.targets
Directory.Build.targets
 
 
Directory.Packages.props
Directory.Packages.props
 
 
EFCore.Cosmos.slnf
EFCore.Cosmos.slnf
 
 
EFCore.Relational.slnf
EFCore.Relational.slnf
 
 
EFCore.Runtime.slnf
EFCore.Runtime.slnf
 
 
EFCore.Sqlite.slnf
EFCore.Sqlite.slnf
 
 
EFCore.Tools.slnf
EFCore.Tools.slnf
 
 
EFCore.slnx
EFCore.slnx
 
 
EFCore.slnx.DotSettings
EFCore.slnx.DotSettings
 
 
LICENSE.txt
LICENSE.txt
 
 
Microsoft.Data.Sqlite.slnf
Microsoft.Data.Sqlite.slnf
 
 
NuGet.config
NuGet.config
 
 
README.md
README.md
 
 
activate.ps1
activate.ps1
 
 
activate.sh
activate.sh
 
 
azure-pipelines-internal-tests.yml
azure-pipelines-internal-tests.yml
 
 
azure-pipelines-public.yml
azure-pipelines-public.yml
 
 
azure-pipelines.yml
azure-pipelines.yml
 
 
build.cmd
build.cmd
 
 
build.sh
build.sh
 
 
es-metadata.yml
es-metadata.yml
 
 
github-merge-flow.jsonc
github-merge-flow.jsonc
 
 
global.json
global.json
 
 
helix.cmd
helix.cmd
 
 
helix.sh
helix.sh
 
 
restore.cmd
restore.cmd
 
 
restore.sh
restore.sh
 
 
startvs.cmd
startvs.cmd
 
 
stylecop.json
stylecop.json
 
 
test.cmd
test.cmd
 
 
test.sh
test.sh
 
 

Repository files navigation

Repository

build status test results

This repository is home to the following .NET Foundation projects. These projects are maintained by Microsoft and licensed under the MIT License.

  • Entity Framework Core
  • Microsoft.Data.Sqlite

EF Entity Framework Core

latest version preview version downloads

EF 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.

Installation

EF Core is available on NuGet. Install the provider package corresponding to your target database. See the list of providers in the docs for additional databases.

dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Microsoft.EntityFrameworkCore.Cosmos

Use the --version option to specify a preview version to install.

Daily builds

We recommend using the daily builds 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.

Basic usage

The 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 in the docs.

using var db = new BloggingContext();

// Inserting data into the database
db.Add(new Blog { Url = "http://blogs.msdn.com/adonet" });
db.SaveChanges();

// Querying
var blog = db.Blogs
    .OrderBy(b => b.BlogId)
    .First();

// Updating
blog.Url = "https://devblogs.microsoft.com/dotnet";
blog.Posts.Add(
    new Post
    {
        Title = "Hello World",
        Content = "I wrote an app using EF Core!"
    });
db.SaveChanges();

// Deleting
db.Remove(blog);
db.SaveChanges();

Build from source

Most people use EF Core by installing pre-built NuGet packages, as shown above. Alternatively, the code can be built and packages can be created directly on your development machine.

Contributing

We welcome community pull requests for bug fixes, enhancements, and documentation. See How to contribute for more information.

Getting support

If you have a specific question about using these projects, we encourage you to ask it on Stack Overflow. If you encounter a bug or would like to request a feature, submit an issue. For more details, see getting support.

Microsoft.Data.Sqlite

latest version preview version downloads

Microsoft.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.

Installation

The latest stable version is available on NuGet.

dotnet add package Microsoft.Data.Sqlite

Use the --version option to specify a preview version to install.

Daily builds

We recommend using the daily builds to get the latest code and provide feedback on Microsoft.Data.Sqlite. These builds contain the latest features and bug fixes; previews and official releases lag significantly behind.

Basic usage

This library implements the common ADO.NET abstractions for connections, commands, data readers, and so on. For more information, see Microsoft.Data.Sqlite on Microsoft Docs.

using var connection = new SqliteConnection("Data Source=Blogs.db");
connection.Open();

using var command = connection.CreateCommand();
command.CommandText = "SELECT Url FROM Blogs";

using var reader = command.ExecuteReader();
while (reader.Read())
{
    var url = reader.GetString(0);
}

Build from source

Most people use Microsoft.Data.Sqlite by installing pre-built NuGet packages, as shown above. Alternatively, the code can be built and packages can be created directly on your development machine.

Contributing

We welcome community pull requests for bug fixes, enhancements, and documentation. See How to contribute for more information.

Getting support

If you have a specific question about using these projects, we encourage you to ask it on Stack Overflow. If you encounter a bug or would like to request a feature, submit an issue. For more details, see getting support.

See also

  • Documentation
  • Roadmap
  • Weekly status updates
  • Release planning process
  • How to write an EF Core provider
  • Security
  • Code of conduct

About

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

learn.microsoft.com/ef/

Topics

aspnet-productc-sharpdatabasedotnet-coredotnet-frameworkdotnet-standardentity-frameworkhacktoberfestorm

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

14.8k stars

Watchers

851 watching

Forks

3.4k forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.