725 questions with Entity Framework Core tags

Sort by: Updated
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.
725 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,561 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) 61,266 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.
725 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 42,816 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.
725 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.
725 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 42,816 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.
725 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 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.
317 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,551 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.
725 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,629 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 42,816 Reputation points Microsoft Vendor
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.
725 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,385 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,411 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,629 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 27,656 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.
725 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,629 questions
asked 2024-02-08T07:25:08.1933333+00:00
Cenk 991 Reputation points
commented 2024-02-15T02:54:13.7766667+00:00
Wenbin Geng 716 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.
725 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 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,811 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.
725 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.
725 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,206 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.
725 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,710 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,873 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 47,336 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.
725 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,625 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,710 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,873 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.
725 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,496 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,629 questions
asked 2024-01-27T13:30:02.3666667+00:00
Cenk 991 Reputation points
commented 2024-01-27T21:45:48.9266667+00:00
Bruce (SqlWork.com) 61,266 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.
725 questions
asked 2023-09-28T13:07:03.4866667+00:00
Laurent Guigon 281 Reputation points
commented 2024-01-27T17:57:53.38+00:00
Atilla Rüstəmli 20 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.
725 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,625 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.
13,323 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,629 questions
asked 2024-01-24T13:16:07.1966667+00:00
Farshad Valizade 421 Reputation points
accepted 2024-01-27T03:10:14.87+00:00
Farshad Valizade 421 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.
725 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,166 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,625 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 716 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Add Identity endpoints in my API

Hey I would like to add the identity endpoints in my API I add this service in program "builder.Services.AddIdentityApiEndpoints<IdentityUser>() .AddEntityFrameworkStores<ApplicationDbContext>();" but…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
655 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
725 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 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,629 questions
asked 2024-01-21T15:19:13.9033333+00:00
Marnelle M'BENGUET 20 Reputation points
accepted 2024-01-24T07:26:54.9766667+00:00
Marnelle M'BENGUET 20 Reputation points
1 answer One of the answers was accepted by the question author.

Assign user to role during Registration

Hi Friends !!! I was wondering when a user Registers to my website can I assign them to a default role with the minimal privileges until I choose to add them to another role? Just wondering does the Startup.cs have some sort of Configuration that handles…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
725 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 questions
asked 2021-11-11T04:06:30.917+00:00
Ronald Rex 1,666 Reputation points
commented 2024-01-23T18:15:27.0333333+00:00
Graham Irvine 0 Reputation points
0 answers

How to group monthly sales by currency in Blazor Server application?

Hello, I am working on a Blazor Server application and I want to get the monthly total sales. I need to group these sales by the currency (USD, EURO, TL) that they were sold. Here is the query I am currently using to group monthly sales, but I need to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
725 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,629 questions
asked 2024-01-22T17:57:58.0733333+00:00
Cenk 991 Reputation points
commented 2024-01-23T09:23:41.1866667+00:00
Wenbin Geng 716 Reputation points Microsoft Vendor