All Projects → JonPSmith → Efcoreinaction Secondedition

JonPSmith / Efcoreinaction Secondedition

Licence: mit
Supporting repo to go with book "Entity Framework Core in Action", second edition

Projects that are alternatives of or similar to Efcoreinaction Secondedition

Filecontextcore
FileContextCore is a "Database"-Provider for Entity Framework Core and adds the ability to store information in files instead of being limited to databases.
Stars: ✭ 91 (-5.21%)
Mutual labels:  entity-framework, database, netcore
Frapper
ASP.NET Core 3.1 Beginners project template with complete Custom User Management and lot's of other useful Features Which Helps you for Rapid Application Development.
Stars: ✭ 129 (+34.38%)
Mutual labels:  entity-framework, database, asp-net-core
SignalR-Core-SqlTableDependency
Shows how the new SignalR Core works with hubs and sockets, also how it can integrate with SqlTableDependency API.
Stars: ✭ 36 (-62.5%)
Mutual labels:  entity-framework, netcore, asp-net-core
Efcore.pg
Entity Framework Core provider for PostgreSQL
Stars: ✭ 838 (+772.92%)
Mutual labels:  entity-framework, database
Entityframework Reverse Poco Code First Generator
EntityFramework Reverse POCO Code First Generator - Beautifully generated code that is fully customisable. This generator creates code as if you reverse engineered a database and lovingly created the code by hand. It is free to academics (you need a .edu or a .ac email address), not free for commercial use. Obtain your licence from
Stars: ✭ 562 (+485.42%)
Mutual labels:  entity-framework, database
Nopcommerce
The most popular open-source eCommerce shopping cart solution based on ASP.NET Core
Stars: ✭ 6,827 (+7011.46%)
Mutual labels:  entity-framework, asp-net-core
Sapphiredb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core
Stars: ✭ 326 (+239.58%)
Mutual labels:  entity-framework, database
Entityworker.core
EntityWorker is an object-relation mapper(ORM) that enable .NET developers to work with relations data using objects. EntityWorker is an alternative to entityframwork. is more flexible and much faster than entity framework.
Stars: ✭ 91 (-5.21%)
Mutual labels:  entity-framework, database
Entity Framework Code First Succinctly
This is the companion repo for Entity Framework Code First Succinctly by Ricardo Peres. Published by Syncfusion.
Stars: ✭ 18 (-81.25%)
Mutual labels:  entity-framework, database
Restfulsense
A RESTFul operations client that serializes responses and throws meaningful exceptions for >= 400 status codes.
Stars: ✭ 28 (-70.83%)
Mutual labels:  asp-net-core, netcore
Opentelemetry Dotnet
The OpenTelemetry .NET Client
Stars: ✭ 1,037 (+980.21%)
Mutual labels:  asp-net-core, netcore
Netcorebbs
ASP.NET Core Light forum NETCoreBBS
Stars: ✭ 483 (+403.13%)
Mutual labels:  asp-net-core, netcore
Model
Ruby persistence framework with entities and repositories
Stars: ✭ 399 (+315.63%)
Mutual labels:  entity-framework, database
Dbreeze
C# .NET MONO NOSQL ( key value store embedded ) ACID multi-paradigm database management system.
Stars: ✭ 383 (+298.96%)
Mutual labels:  database, netcore
Efcore.demo
Projetos com os novos recursos do Entity Framework Core
Stars: ✭ 50 (-47.92%)
Mutual labels:  entity-framework, netcore
Dnczeus
DncZeus 是一个基于ASP.NET Core 3 + Vue.js(iview-admin) 的前后端分离的通用后台权限(页面访问、操作按钮控制)管理系统框架。后端使用.NET Core 3 + Entity Framework Core构建,UI则是目前流行的基于Vue.js的iView(iview-admin)。项目实现了前后端的动态权限管理和控制以及基于JWT的用户令牌认证机制,让前后端的交互更流畅。码云镜像:https://gitee.com/rector/DncZeus 。演示地址(demo):
Stars: ✭ 1,104 (+1050%)
Mutual labels:  entity-framework, netcore
Signalrsample
Real-time Charts with ASP.NET Core SignalR and Chart.js.
Stars: ✭ 23 (-76.04%)
Mutual labels:  asp-net-core, netcore
Ef6
This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore.
Stars: ✭ 1,218 (+1168.75%)
Mutual labels:  entity-framework, database
Simplcommerce
A simple, cross platform, modularized ecommerce system built on .NET Core
Stars: ✭ 3,474 (+3518.75%)
Mutual labels:  asp-net-core, netcore
Blog.identityserver
🥗 打造一个功能强大的通用型Ids4用户认证授权服务中心,配合之前的所有开源项目
Stars: ✭ 315 (+228.13%)
Mutual labels:  asp-net-core, netcore

EfCoreInAction SecondEdition - part1 (master branch)

Welcome to the Git repo that is associated with the first six chapters in the book Entity Framework Core in Action (second edition). This book details how to use Entity Framework Core (EF Core) to develop database access code in .NET 5 applications.

The current release of this code is running on:

  • EF Core 5.1
  • ASP.NET Core 5.0 (You MUST have NET 5.0 installed)

Other branches are:

  • Part2, which covers part 2 of the book - chapters 7 to 11.
  • Part3, which covers part 3 of the book - chapters 12 to 17.

What you need to install to run the example applications

To run any of the code you need to.

  1. Install a development tool, either Visual Studio or Visual Studio Code (VS Code for short). If you are new to .NET Core development, then I recommend Visual Studio - here is a link on how to install Visual Studio.
  2. You need to install the NET 5 or above SDK. You can find this a Microsoft NET download - select the Build apps - SDK version.
    NOTE: If you installed the latest version of Visual Studio it should have installed NET 5 SDK for you. Use the console command dotnet --list-sdks to check what NET versions are installed.
  3. You need to install a SQL Server to run any applications and some of the unit tests. A SQL Server called localdb is installed when you install Visual Studio on Windows by choosing the "Data storage and processing" feature (VS Code and Visual Studio on Mac needs more work).
  4. Clone this repo to your local computer. See Visual Studio tutorial called Open a project from a repo.

What can you run in this branch?

I have placed all the code relating to part 1 of the book, which covers the first six chapters. The main projects you can run are:

  • MyFirstEfCoreApp, which is the console application found in chapter 1
  • BookApp, which is the ASP.NET Core application that I cover in chapters 2 to 6. Best to mark that project as your Startup Project

Once you have installed your chosen development tool, then you can run either of these applications - both are designed to create and seed any database that they use.

How to find and run the unit tests

Every chapter has a set of unit tests to check that what I say in the book is correct. These unit tests are also useful to you the reader as sometimes seeing the actual code is a quicker way to see how something works.

How to find the unit tests

The unit tests are all in the Test project and uses xUnit. The unit tests are all in the UnitTests directory split into directories based on what they are testing - for instance, the UnitTests/TestDataLayer directory have all the tests that work directly with the database.

How to run the unit tests

If you are using Visual Studio, then its Test feature via the Test button found on the top toolbar - see Microsoft's VS unit test docs.

If you are using , then you use it Test feature, via the tests icon (looks like a scientific flask). VS Code needs some setting up to work with C#, but once thats done then this repo has the necessary .vscode files set up to run the unit tests - see VS Code C# docs for more on using VS Code C#.

Many of the tests use SQLite in-memory databases which just work. But some tests use SQL Server. If you are using Visual Studio on Windows you should install the the "Data storage and processing" feature. This should give you a SQL Server called localdb, which the standard unit tests use. If you need to change the SQL Server name etc. then you should change the connection string called UnitTestConnection in the appsettings.json file in the Test project.

If you are using Visual Studio on Mac, or VS Code on Mac or linux, then you need to install a SQL Server to allow the unit tests that need that type of database.

If you have problems with the code

If you are having problems with the application then please post an issue on the EfCoreInAction-SecondEdition issues page, with the stack trace or compile error and I will have a look and get back to you.

If you find an error in the book

If you find an error in the book, then please add a comment via Manning's LiveBook version of the book. Please make sure you say what section it is in as it's sometimes hard for me to link your comment to the section of the book.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].