697 questions with Entity Framework Core tags

Sort by: Updated
0 answers

Add-Migration InitialCreate throws an exception, but is successful

When I run Add-Migration InitialCreate it successfully creates the EF classes. But it also throws the following exception: PM> Add-Migration InitialCreate -context TrackingDbContext Build started... Build…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
asked 2023-10-05T00:59:56.8933333+00:00
David Thielen 2,256 Reputation points
commented 2023-11-08T08:15:13.3433333+00:00
Ilya Oparin 0 Reputation points
0 answers

ASP.NET problem with saving quizzes to a SQL database

I have a problem with my application namely I want to create the possibility to create dynamic quizzes. Currently I have a problem related to saving the created quiz with questions to the database. No matter if I want to create a new one or edit the one…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 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,696 questions
asked 2023-11-06T22:20:17.3766667+00:00
Bartek Kowalczyk 0 Reputation points
commented 2023-11-07T21:11:44.1966667+00:00
Bartek Kowalczyk 0 Reputation points
1 answer

How to Enable Lazy Loading in a Blazor Project

I'm working on a Blazor project and I need to enable lazy loading. Can someone provide guidance on where and how to enable lazy loading in my project? Here's the link to my project repository: https://github.com/shujamughal/Sukhdari

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 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,385 questions
Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
38 questions
asked 2023-11-04T07:30:44.96+00:00
HAFIZ MUHAMMAD ARSLAN 5 Reputation points
commented 2023-11-04T22:04:12.4133333+00:00
Karen Payne MVP 35,036 Reputation points
0 answers

Partial in Ef Migration

How can I add properties from the Main project to the Domain project's OrderItem? I tried adding a CS file directly in the main project, but migration gave me an error saying "[InverseProperty] attribute on property 'OrderItem.Order' is not valid.…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-10-26T05:58:57.6966667+00:00
Mrbanad 25 Reputation points
edited the question 2023-11-02T07:30:55.0466667+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Avoiding Duplicate Inserts with Entity Framework

Hello everyone and thanks for the help in advance. I am developing an Asp.Net Core application where a user inputs various items within an order I'm trying to prohibit duplicate inserts. The record being added has approximately 17 columns. Many of…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
asked 2023-10-25T01:38:18.9333333+00:00
Kmcnet 691 Reputation points
accepted 2023-10-31T19:12:38.7733333+00:00
Kmcnet 691 Reputation points
2 answers One of the answers was accepted by the question author.

How do we access a non-static variable without the need for instantiation? Entity Framework - ASP. Net Core

In the EFStoreRepository class, I have a variable of StoreDbContext type(context) StoreDbContext class and Products field inside it are not static. but I can call Products without instantiating the StoreDbContext class like a static field. How do we…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2023-10-17T17:54:42.7833333+00:00
Shervan360 1,481 Reputation points
accepted 2023-10-27T19:06:30.1433333+00:00
Shervan360 1,481 Reputation points
0 answers

Entity framework generated SQL is different from 2.2 to 7

I recently upgraded a .NET core 2.1 web app to .NET 7 with upgrading EntityFrameworkCore to 7.0.1. a statement that use "Include" is now producing Sql queries with LEFT JOIN whereas with 2.1, they produce a mix of LEFT and INNER joins. …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
asked 2023-10-09T02:42:16.34+00:00
Alexander Angelo 6 Reputation points
edited the question 2023-10-27T01:38:27.2966667+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
1 answer

How to integrate email confirmation of user accounts in an ASP.NET core MVC and Entity Framework web app?

0 I am new to web app development and recently used ASP.NET Core 3.1 MVC and Entity Framework in Visual Studio 2019 to create a web app using the individual accounts authentication. Currently, I have the website setup in which when a new user…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-11-17T15:28:10.587+00:00
Hamza Abbasi 1 Reputation point
commented 2023-10-25T16:07:36.1566667+00:00
Ford, Diontae T 0 Reputation points
2 answers One of the answers was accepted by the question author.

Looking for a detailed resource to build a Multi-Tenant ASP.Net Core Application using EntityFramework and ASP.NET Identity

I am looking to build a Multi-Tenant Web Application using ASP.Net Core along with EntityFramework, SQL Database, and ASP.net Core Identity. I am Looking for a detailed resource from Microsoft.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 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,696 questions
asked 2023-10-21T18:17:34.3933333+00:00
Ramzi Sahawneh 20 Reputation points
answered 2023-10-23T11:38:42.5633333+00:00
Phil Johnson 5 Reputation points
1 answer One of the answers was accepted by the question author.

Establishing SSL trust to SQL Server with an AWS Lambda (Linux Client)

Hey all. I'm trying to connect to a SQL Server 2019 instance from an AWS lambda. I'm using a self-signed certificate for the SQL instance. Our lambda is using Entity Framework Core 7.0.5 in .NET 6 (also tested Microsoft.Data.SqlClient 5.1 with the same…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 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,696 questions
asked 2023-09-27T15:08:52.2+00:00
Farrell, Erik 20 Reputation points
accepted 2023-10-23T11:23:45.2833333+00:00
Farrell, Erik 20 Reputation points
1 answer One of the answers was accepted by the question author.

sql server localdb 2012 lost data without permission

Hi Dears, I'm using Entity Framework core 6.0.9 with WPF C# in SQL Server LocalDB v11.0. I have problems, Some record deleted without user permission. for example I inserted 13 record into Payment table in 2023/10/11 and I had them until 2023/10/14 11:56…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 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,671 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,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,235 questions
asked 2023-10-20T13:34:38.1933333+00:00
hossein tavakoli 471 Reputation points
edited the question 2023-10-23T01:13:35.47+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
0 answers

内存占用率很高,但任务管理器却没有显示是什么进程。

Windows10x64,16G内存, 电脑开机后占用约30%,一分钟后内存占用率达到80%左右,但任务管理器没有占用内存过高的程序。 使用poolmon查看,得知是CTNP占用内存过高,运行 c:>findstr /m /l /s CTNP *.sys,没有答案。 Tag Type Allocs Frees Diff Bytes Per Alloc CTNP Nonp 2315 ( …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
asked 2023-10-22T06:01:19.18+00:00
andy co 0 Reputation points
0 answers

upload multiple images asp.net core 6

i have three model the parnt model named books and child model named charts and BookImage the realtionship one to many the books model have multiple images come from charts and BookImage, the proplem i am facing when upload the image and displaying in my…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2023-10-20T00:05:47.8066667+00:00
ibrahimaraoufmohamed 0 Reputation points
edited a comment 2023-10-21T11:27:16.4333333+00:00
AgaveJoe 26,201 Reputation points
2 answers

EF Core 6 - Why it is NOT Nullable?

Hi, Here is my entity; public class OrderDetail { public int Id { get; set; } [Required] [MaxLength(100)] public string ProductCode { get; set; } [Required] …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
asked 2022-09-18T18:44:29.817+00:00
Cenk 956 Reputation points
answered 2023-10-20T06:53:26.03+00:00
clark wu 0 Reputation points
0 answers

probleme mise a jour windows server 2019

bonjour, j'ai un probleme de mise a jour sous Windows Server 2019 mon serveur de domaine apres l'installation des mise a jour , j'ai recu deux messages d'erreurs j'ai besoin de votre aide svp 1- 2023-09 Mise à jour cumulative pour .NET Framework 3.5,…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,456 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
asked 2023-10-18T12:59:23.5666667+00:00
saber 0 Reputation points
commented 2023-10-19T17:30:56.3366667+00:00
Xecrets 0 Reputation points
0 answers

System Reflection with EF Core OnModelCreating not working anymore

I have been using system.reflection.assembly.GetExecutingAssembly() for a while to pull in EF Core Context configurations for years. But now all of a sudden i am having nothing but issues with the system using my configuration files. It seems i have…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
asked 2023-10-18T16:10:46.74+00:00
Lange Gregory 20 Reputation points
commented 2023-10-19T10:00:44.4333333+00:00
Wenbin Geng 711 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Scaffold-DbContext probleme authentication integrated security

Hello I want scaffolding my azure sqserver database, but when i run this command : Scaffold-DbContext "Server=MydataBase.database.windows.net;Database=dev-base;Integrated security=true;Authentication=Active Directory Integratd;User…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 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,696 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,457 questions
asked 2023-01-19T09:39:59.9066667+00:00
jimomo 20 Reputation points
edited a comment 2023-10-18T09:08:28.8633333+00:00
Mayores, Marlowe James F 0 Reputation points
1 answer One of the answers was accepted by the question author.

Doing Left Join with 3 tables using EF Core - multiple on condition

Hi, This is my sql query. SELECT [ID],[MachineName], b.Target_Date, b.Job_Name1, c.StopReasonStart, c.StopReasonEnd FROM [OEEDashboard].[dbo].[Machine] a left join AllMachines b on a.ID = b.MachineID left join OeeDetailsAll c on a.ID…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
asked 2023-10-09T07:18:21.79+00:00
Kalpana 286 Reputation points
accepted 2023-10-18T02:16:07.49+00:00
Kalpana 286 Reputation points
0 answers

Entity framework configuration to add sql connection to my AKS Application

Previously I used Azurepodidentity to connect sql with my application running in AKS . Right now i am moving to the workload identity. my cs file need to modify for starting sql connection. I could not find proper documentation from Entity Framework code…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
Azure SQL Database
asked 2023-10-10T09:57:27.28+00:00
Jaseetha (Jaseetha Satkurunathan) 0 Reputation points
edited the question 2023-10-16T16:48:48.1133333+00:00
kobulloc-MSFT 23,341 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

EF Core logging issue

I installed Microsoft.Extensions.Logging.Debug according to the tutorial and wanted to see how each query statement of ef core is converted into sql. And added the following code in Context: public partial class MyDbnContext : DbContext { …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 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,235 questions
asked 2023-10-11T11:25:44.6133333+00:00
Mirza 20 Reputation points
commented 2023-10-12T13:21:02.77+00:00
Karen Payne MVP 35,036 Reputation points