698 questions with Entity Framework Core tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Guide line for Entity Framework & Entity Framework core data security

i have little knowledge of Entity Framework usage. mostly i work with Sql Helper ADO.Net based wrapper and it has no such data security related features. so what kind of data security features are there with EF & EF core ? please provide…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
asked 2022-09-17T18:38:23.353+00:00
T.Zacks 3,986 Reputation points
commented 2022-09-19T19:23:50.197+00:00
AgaveJoe 26,146 Reputation points
3 answers

EF Core Generic Repository get Id from new inserted generic entity async

Goal: get id of the inserted generic entity by using async with ASP.NET Core 3 Problem: what part am I missing in order to achieve the goal? Code: public async Task<int> AddAsync(T entity) { if (entity == null) …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2021-01-28T18:04:08.617+00:00
JJ TT 141 Reputation points
commented 2022-09-15T22:04:22.797+00:00
Anonymous
1 answer

Xamarin and. Net 6

Hello, is it possible to use. Net 6 in Xamarin Forms (not MAUI)? I have an existing app for Android, where I would like to use EF core 6, but that requires. Net 6. I couldn't find any related info on the web, it was always about MAUI & net 6. …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,251 questions
asked 2021-11-22T17:00:59.727+00:00
Filip Mestanek 6 Reputation points
answered 2022-09-14T21:17:50.987+00:00
Alberto Linares Muñoz 6 Reputation points
1 answer One of the answers was accepted by the question author.

EF core scaffolding di un database esistente

Sto facendo un programma che legge le estrazioni del Lotto dalle varie ruote .. Il database contiene tante tabelle quante sono le ruote, ognuna chiamata "Estrazione_"+ Nome ruota (es. "Estrazione_Roma",…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 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,307 questions
asked 2022-09-12T07:18:19.13+00:00
leo del ciello 66 Reputation points
accepted 2022-09-13T09:38:46.827+00:00
leo del ciello 66 Reputation points
1 answer

EF Core Alter Column size automatically

Is there any way, to resize the column to the needed length in runtime automatically? for example: the column is a nvarchar(50), but the value to insert has a length of 80. Is it now possible to alter the column to nvarchar(80) by EF Core…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2022-09-06T07:26:23.613+00:00
Benjamin Kempe 1 Reputation point
answered 2022-09-11T01:59:02.36+00:00
Karen Payne MVP 35,196 Reputation points
2 answers One of the answers was accepted by the question author.

Divide by Zero Exception inside of a Linq Join Condition

Give the example below, I'm getting a Divide by Zero exception error. Can you please advise me how to set the Result value to zero if the data in field test1 is zero? I can't use at "try catch" of "if statement" because the code…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 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,307 questions
asked 2022-09-07T15:33:00.93+00:00
lesponce 176 Reputation points
accepted 2022-09-08T00:24:16.553+00:00
lesponce 176 Reputation points
0 answers

Test Internal Server Error Message : The operation was canceled.

I am trying to figure out why I am getting the "Test Internal Server Error Message : The operation was canceled." intermittently on only one of our client environments(on Prem), This basically happens when we are trying to interservice http…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2022-09-06T06:13:34.473+00:00
Veeresh Byahatti 1 Reputation point
commented 2022-09-07T06:40:09.593+00:00
Zhi Lv - MSFT 32,021 Reputation points Microsoft Vendor
1 answer

How to set text encoding on a data column from EntityFramework or ADO.NET?

I have a native C++ Windows MFC application that accesses sqlite3.dll to load data from a database and it loads non-ASCII characters like 'ñ' without changing them to '?' When I access this database from EntityFramework, the non-ASCII characters get…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 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,307 questions
asked 2022-08-30T21:17:29.73+00:00
Juan Dent 236 Reputation points
answered 2022-09-05T10:42:45.207+00:00
Muhammed Şeker 76 Reputation points
3 answers

Entity Framework for netcoreapp 3.1

I want to write a simple Desktop WinForms application using Entity Framework to access Data . My project file's contante is as follows : <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <PropertyGroup> …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2022-08-26T11:05:03.387+00:00
leo del ciello 66 Reputation points
commented 2022-09-04T02:46:20.74+00:00
Laxmikant 216 Reputation points
2 answers

foreach loop getting first record every time while iterate in .Net core dbcontext

hi please check above image I have attached debugger also . here getting order id based on orderheaderList . the orderdetails while first time getting data properly (i.e., orderid=11141) after that loop getting different orderid but…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2022-08-31T13:03:52.627+00:00
KADMA Praveen 21 Reputation points
commented 2022-09-01T14:54:31.017+00:00
AgaveJoe 26,146 Reputation points
0 answers

Application development in Solaris using .NET core. Is this possible?

I just started to show some interest towards, Solaris Operating system. Is .NET core made compatible with this OS? can anyone guide. Though I am aware that using VS 2022 Linux,Mac OS is compatible. But particular Solaris not sure.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2022-08-31T12:52:43.573+00:00
Sowmitri 26 Reputation points
commented 2022-09-01T10:43:45.727+00:00
Sowmitri 26 Reputation points
0 answers

Npgsql.PostgresException (0x80004005): 42P01: relation "ProductImages" does not exist

Hey Guys. I am trying to read a list of products from the db using entity framework core. Works on local environment but fails in production on heroku. my db is in postgres It happens when i try to "Include" the products images …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 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,307 questions
asked 2022-08-30T14:24:52.237+00:00
Ayobami Jimoh 1 Reputation point
commented 2022-08-31T14:13:48.66+00:00
Ayobami Jimoh 1 Reputation point
2 answers

Linq Group By Question

Hi, I am trying to group my entities based on vendor id. I couldn't figure out how to sum values. Here is my query so far. var result1 = from order in Orders from orderdetail in OrdersDetails from…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 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,403 questions
asked 2022-08-29T18:44:32.437+00:00
Cenk 956 Reputation points
answered 2022-08-31T08:32:45.753+00:00
Ruikai Feng - MSFT 2,526 Reputation points Microsoft Vendor
1 answer

EF Core 6 master-detail how to retrieve only matching values

Hello there, I have Orders and OrdersDetail entities. SET IDENTITY_INSERT [dbo].[Orders] ON INSERT INTO [dbo].[Orders] ([Id], [OrderDateTime], [Status], [DoneBy], [CustomerId]) VALUES (12, N'2022-08-25 12:09:33', N'Continues', N'Cenk', 5) …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2022-08-26T06:54:37.257+00:00
Cenk 956 Reputation points
answered 2022-08-30T12:47:22.44+00:00
Yogi 346 Reputation points
2 answers One of the answers was accepted by the question author.

DirectoryNotFoundException While Trying To Uplode Any File In EF core Razor Pages

I am Trying To make A form In Ef core Razor pages where I have to upload Salary slip and save it in DB. My Entity Class Is public class SalarySlip { public int Id { get; set; } //Later It will be a dropdown…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2022-08-24T12:00:43.343+00:00
Arnab 66 Reputation points
answered 2022-08-30T11:07:05.717+00:00
Arnab 66 Reputation points
0 answers

Entity Framework tools - Azure DevOps Warning

I have an Azure Devops (on-premises) issue. I am getting the following warning the 'Migrations script' pipeline step: 'The Entity Framework tools version '6.0.5' is older than that of the runtime '6.0.6'. Update the tools for the latest…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2022-08-29T06:23:58.71+00:00
Yiannhs Rakitzopoulos 1 Reputation point
commented 2022-08-29T09:05:24.36+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
1 answer

How to Use EF Dependency Injection with Called Method

Hello everyone and thanks for the help in advance. Attempting to learn dependency injection concepts with C# and MVC controller. I am reading through the article https://learn.microsoft.com/en-us/ef/core/dbcontext-configuration/. My question is, let's…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2022-08-25T00:59:14.28+00:00
Kmcnet 696 Reputation points
commented 2022-08-26T14:49:33.58+00:00
AgaveJoe 26,146 Reputation points
1 answer One of the answers was accepted by the question author.

DbContext OnConfiguring(optionsBuilder) has optionsBuilder.IsConfigured == false although private member of class Program builds options....

The call to DbContext.OnConfiguring receives an instance of DbContextOptionsBuilder called optionsBuilder which has its property IsConfigured equal to false... It should be equal to true since in the Program class we set the optionsBuilder to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 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,307 questions
asked 2022-08-24T21:59:29.277+00:00
Juan Dent 236 Reputation points
accepted 2022-08-24T23:27:19.247+00:00
Juan Dent 236 Reputation points
1 answer One of the answers was accepted by the question author.

Data Transfer Objects

I just have a quick question concerning DTO's. I read that DTO's are useful for security purposes e.g. they prevent you from sending confidential data across the network. But the tutorial also said that DTO's are also useful in the case that if there…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 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,307 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.
302 questions
asked 2022-08-24T06:14:41.39+00:00
Ronald Rex 1,666 Reputation points
commented 2022-08-24T20:37:10.197+00:00
Ronald Rex 1,666 Reputation points
1 answer

Duende IdentityServer - USers in Role throws error

Just trying to get a list of the Users in a specific Role - var users = await _userManager.GetUsersInRoleAsync("Administrators"); return null; Throws System.NotSupportedException: Serialization and deserialization of 'System.Action'…

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.
622 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2022-08-20T11:20:46.17+00:00
Tim Cadieux 21 Reputation points
answered 2022-08-24T15:00:44.19+00:00
Tim Cadieux 21 Reputation points