696 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.
696 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,307 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,630 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.
696 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.
3 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 26,141 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.
696 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,171 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) 56,846 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.
696 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 33,751 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.
696 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.
696 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 33,751 Reputation points Microsoft Vendor
1 answer

.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.
696 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 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.
301 questions
asked 2024-03-04T14:00:18.5966667+00:00
Rajesh Erukulla 0 Reputation points
answered 2024-03-05T06:44:49.6066667+00:00
Ruikai Feng - MSFT 2,526 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.
696 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,292 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 33,751 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.
696 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 35,196 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.
696 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,199 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 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,292 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 26,141 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.
696 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,292 questions
asked 2024-02-08T07:25:08.1933333+00:00
Cenk 956 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.
696 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 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 4,371 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.
696 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
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.
696 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,909 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.
696 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,678 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,630 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 40,661 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.
696 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 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,678 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,630 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

How can I exclude a property when using UpdateRange in Blazor Server application?

I am working on a Blazor Server application and want to know if there is a way to exclude a property when using the UpdateRange method. Below is the code I am using: public async Task UpdateReportAsync(List<OrderDetail> reports) { await using…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,400 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,292 questions
asked 2024-01-27T13:30:02.3666667+00:00
Cenk 956 Reputation points
commented 2024-01-27T21:45:48.9266667+00:00
Bruce (SqlWork.com) 56,846 Reputation points
2 answers

ArgumentNullException on add-migration com.

Hello, I'm still on my app dev which is a Blazor Wasm with it's API (developped with .Net core 7.0) and I try to create an EF Core migration, but I've got an issue. N.B.: I use environment variables to set my connection string (to change it…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
asked 2023-09-28T13:07:03.4866667+00:00
Laurent Guigon 276 Reputation points
commented 2024-01-27T17:57:53.38+00:00
Atilla Rüstəmli 0 Reputation points
1 answer One of the answers was accepted by the question author.

what is the best and efficient way to show mixed tables in c# winform?

Hi every body. I work in database first projects and I make store procedure to show relational tables.mix 10-11 tables together and fetch it from the database with ado.net datareader and put it in a datatable and put this datatable in data source of a…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,776 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,292 questions
asked 2024-01-24T13:16:07.1966667+00:00
Farshad Valizade 381 Reputation points
accepted 2024-01-27T03:10:14.87+00:00
Farshad Valizade 381 Reputation points
1 answer

How to Fix Unhandled exception. System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Storage.IRelationalValueBufferFactoryFactory' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=8.0.0.0, Culture=neutral, PublicKey

I have upgraded my application from dotnet version 3 to 8.while i tried to run my application, i am facing this issue Unhandled exception. System.TypeLoadException: Could not load type…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,676 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 questions
asked 2024-01-05T06:18:23.4433333+00:00
Mani 0 Reputation points
commented 2024-01-25T07:37:06.4133333+00:00
Wenbin Geng 711 Reputation points Microsoft Vendor