685 questions with Entity Framework Core tags

Sort by: Updated
1 answer

Inject EntityFramework DbContext in a .NET 6 Azure Function

Where do I have to put the DbContext in a .NET 6 Azure Function? builder.Services.AddDbContext

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,075 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,481 questions
asked 2023-01-21T13:03:51.93+00:00
Bernhard Sumser 111 Reputation points
commented 2024-03-18T13:24:34.16+00:00
JV 0 Reputation points
1 answer

Working of HasComputedColumnSql() method in EF Core

I have configured the updatedAt property as shown below. I expected that the updatedAt value of the corresponding row alone will change when inserting or updating. But when tried this it is updating entire column i.e all the rows of the UpdatedAt are…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Entity Framework Core Training
Entity Framework Core Training
Entity Framework Core: A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.Training: Instruction to develop new skills.
2 questions
asked 2024-03-09T09:52:48.4266667+00:00
net 6 newbie 121 Reputation points
commented 2024-03-17T15:00:16.96+00:00
AgaveJoe 25,841 Reputation points
2 answers

How can I address Entity Framework context disposal issues within IIS Application Pool on an Azure VM hosting an MVC application?

I am encountering an issue with the automatic disposal of the Entity Framework context within the IIS App Pool on my Azure Virtual Machine that is hosting an MVC application. The problem manifests as errors occurring on nearly all pages after a certain…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,929 questions
asked 2024-03-13T21:39:56.05+00:00
Enzo Gomes 0 Reputation points
edited an answer 2024-03-16T15:24:05.7333333+00:00
Bruce (SqlWork.com) 53,251 Reputation points
1 answer

EF Core Tracking

Most of the articles on EF Core suggest don't enable tracking in EF Core. But if tracking is disabled in EF Core. How to add Audit Logs using EF Core Interceptors? I have tried this but looks like more re work is required for many cases where tracking…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-13T18:06:23.0033333+00:00
net 6 newbie 121 Reputation points
edited an answer 2024-03-13T20:21:00.3+00:00
AgaveJoe 25,841 Reputation points
1 answer

Migration problem with immutable complex type entity for Entity Framework Core 8

I am using EF Core 8 in my project. I am trying to use an immutable complex-type entity. Here is my code: [ComplexType] public class Address(string line1, string? line2, string city, string country, string postCode) { [MaxLength(250)] …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
asked 2024-03-07T10:47:59.4566667+00:00
Nasir Uddin 41 Reputation points
commented 2024-03-13T14:50:53.97+00:00
Jiale Xue - MSFT 21,046 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to fix error occurred during the pre-login handshake after upgrading SqlClinet

I upgraded project from .NET 6 to .NET 8, along with the packages. Sql Client is upgraded from 2.1.4 to 5.1.1 version contained in EF Core 8.0.1 package. We are using Azure DB, and there is no error in .NET 6 version with older SqlClinet. I'm aware of…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Azure SQL Database
asked 2024-03-06T15:31:33.9566667+00:00
Zoran Gladoic 25 Reputation points
accepted 2024-03-08T09:20:44.5166667+00:00
Zoran Gladoic 25 Reputation points
0 answers

Niranjan Hiranandani | What are some popular plugins or extensions available for extending the capabilities of Framework?

Hello everyone, I'm Niranjan Hiranandani, I'm interested in learning more about the popular plugins or extensions available for extending the capabilities of Framework. If anyone has experience with any useful plugins or extensions, I would greatly…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
asked 2024-03-07T07:05:44.19+00:00
Niranjan Hiranandani 0 Reputation points
commented 2024-03-07T07:55:30.8633333+00:00
Jiale Xue - MSFT 21,046 Reputation points Microsoft Vendor
0 answers

.Net 8.0 Unable to install EntityFrameworkCore.Tools 8.0.2 from Nuget package manager

I have installed Visual Studio 2022 community edition, created a .Net Core Web API project and installed below 2 packages from Nuget package manager successfully. EntityFrameworkCore.SqlServer 8.0.2 EntityFrameworkCore 8.0.2 But, when I try to install…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
285 questions
asked 2024-03-04T14:00:18.5966667+00:00
Rajesh Erukulla 0 Reputation points
commented 2024-03-05T06:44:49.6066667+00:00
Ruikai Feng - MSFT 2,511 Reputation points Microsoft Vendor
2 answers

Call new function based on returned value from database

Is there a way to call a function based on the output from the table? Meaning, I'm calling my table and there are at times the column may have a string in it like this { MM;Jan:Q1,Q2,Q3;Feb:Q1,Q2,A3;March;Apr;May.... }, this string can contain { MM, MMM,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,054 questions
asked 2024-02-21T19:34:58.5966667+00:00
Cloud Developer 1 Reputation point
commented 2024-02-23T08:46:07.5866667+00:00
Jiale Xue - MSFT 21,046 Reputation points Microsoft Vendor
1 answer

Entity Framework bulk functionalities (bulk insert,bulk delete)

I'm currently working on an enterprise project that requires some logic for bulk functionalities using Entity Framework. We found a couple of options but both are under licence: EF. Core.BulkExtensions…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
asked 2024-02-19T21:21:00.5366667+00:00
Greivin Chaves 0 Reputation points
answered 2024-02-22T07:48:38.92+00:00
Karen Payne MVP 34,936 Reputation points
0 answers

Asp.net core 6.0 with MVC application - Unable to launch razor view which is having partial view after deploying in IIS 10 version on windows server 2016.

I have developed MVC web application with .net core 6.0 and I am using these technologies... Web API (Hosted on same server in IIS) Entity Framework SQL Server Razor views, JavaScript, JQuery & Bootstrap. Apexcharts Issue : After deploying in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,054 questions
asked 2024-02-15T17:36:03.7933333+00:00
Prasad 20 Reputation points
edited a comment 2024-02-15T19:05:08.2433333+00:00
AgaveJoe 25,841 Reputation points
0 answers

How to refactor this LINQ query for a reports dashboard in Blazor Server Application?

I am building a reports dashboard on my Blazor Server Application that displays the count of the last 3 years of "Completed" and "Continues" orders. The business rules are: Completed order means OrderDetails CompletionDateTime is…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,054 questions
asked 2024-02-08T07:25:08.1933333+00:00
Cenk 951 Reputation points
commented 2024-02-15T02:54:13.7766667+00:00
Wenbin Geng 711 Reputation points Microsoft Vendor
0 answers

Generating dynamic controllers with T4 templates in .NET

Hi Team, How can I create dynamic models and controllers using T4 templates in .NET? For instance, if I have tables in my SQL database like Employee, Salary, and Department, how can I use T4 templates to generate models and controllers based on those…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-02-13T14:30:17.64+00:00
Diwakar Devangam 55 Reputation points
edited a comment 2024-02-14T03:25:58.4733333+00:00
JasonPan - MSFT 3,946 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

ADO entity data model is missing Visual studio 2022

I have installed entityframeworkcore 7.0.3 but ADO.net data model not show in data template

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
asked 2023-03-10T19:31:29.7+00:00
Hari Om Singh 20 Reputation points
commented 2024-02-08T13:05:20.72+00:00
Loften Pierce 0 Reputation points
0 answers

Azure publish error install dotnet-ef

I am trying to publish a website to Azure, but I am running into an error: I do not know how to solve it. I tried to install it, but I get more errors: I also tried cmd but still no luck. command prompt At this point I have no idea what to do now. How…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,481 questions
asked 2024-01-02T20:46:56.6966667+00:00
Athenixz 0 Reputation points
commented 2024-02-05T02:09:30.7133333+00:00
brtrach-MSFT 14,241 Reputation points Microsoft Employee
3 answers

Error: 'Package restore failed rolling back package change for' while running Scaffold-Dbcontext in Entity Framework Core 7.0.14

Hello, I'm working on a project using .NET Core 7 and encountering an issue when running Scaffold-DbContext with Entity Framework 7.0.14. The error message I'm getting is "there was an error running the selected code generator package restore failed…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2023-12-19T20:12:20.84+00:00
UMUT CAN 5 Reputation points
edited a comment 2024-02-04T12:56:06.41+00:00
Hoang Nguyen 0 Reputation points
1 answer One of the answers was accepted by the question author.

How can I add Microsoft EF Core to a .Net Maui solution?

What is the proper way to add Entity Framework Core to a .Net Maui solution? I did try to use .Net console project, but that didn't seem to work. I also tried to use a .Net Maui class project but that also didn't work. Sorry if it is a pretty basic…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2023-08-15T21:27:56.8733333+00:00
Bob Hanson 46 Reputation points
commented 2024-02-03T06:00:03.97+00:00
Hưng Chíp 0 Reputation points
0 answers

Get the status of the publish/install WPF apps in known machines.

I have a WPF app with MVVM pattern and having entity framework is built. If the app is installed in different known machines then need to know the status(means each machine is running the WPF app or not) for every 5 minutes.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,638 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,481 questions
asked 2024-01-31T05:07:44.85+00:00
SANTHOSH B 20 Reputation points
commented 2024-01-31T08:45:39.2833333+00:00
Hui Liu-MSFT 27,831 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

To get the status of the known machines(IP) in which WPF app is installed for every 5 minutes

We have WPF MVVM entity app with Oracle database is build and fine running. after publish this in Visual Studio 2022 and installed in different known machines(ip address). Then need to know whether the app is running in which machine/IP for every 5…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,638 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,481 questions
asked 2024-01-24T05:51:08.62+00:00
SANTHOSH B 20 Reputation points
accepted 2024-01-30T04:45:15.5633333+00:00
SANTHOSH B 20 Reputation points
1 answer

Microsoft.EntityFrameworkCore.SQLServer 8.0.1 (latest version) has High vulnerabilities on its transitive dependencies. When will we have another patch released with no vulnerabilities on its transitive dependencies?

Microsoft.EntityFrameworkCore.SQLServer 8.0.1 (latest version) has High vulnerabilities due to transitive dependencies on Azure.Identity 1.7.0 and Microsoft.Data.SQLClient5.1.1. Both these dependent packages have a non vulnerable latest version. …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
asked 2024-01-24T18:30:07.4066667+00:00
seshan 0 Reputation points
commented 2024-01-29T18:19:34.5266667+00:00
Bruce (SqlWork.com) 53,251 Reputation points