696 questions with Entity Framework Core tags

Sort by: Updated
2 answers

MVC Controller with Views, using Entity Framework

Does Visual Studio Provide a Tool to Custom Design MVC Controller with Views, using Entity Framework template specific to the needs of the project? This is felt necessary because the <table> generated in Index.cshtml using the default 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
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
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 questions
asked 2022-10-10T12:32:25.947+00:00
raklali 236 Reputation points
commented 2022-10-13T03:01:04.217+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

razor pages EF 6.0 insert data

While adding data to the database, Some people insert data directly this way : ... ApplicationDbContext.Add(MyModel); await ApplicationDbContext.SaveChangesAsync(); ... And some peoplpe add line by line the table field names : …

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 2022-10-11T10:08:41.333+00:00
Curious Cat 21 Reputation points
accepted 2022-10-11T13:11:01.54+00:00
Curious Cat 21 Reputation points
3 answers

erro in command: dotnet-ef database update in linux

After migrations, I try to run the command: dotnet-ef database update The following error occurs: network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 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,777 questions
Skype for Business Linux
Skype for Business Linux
Skype for Business: A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.Linux: A family of open-source Unix-like operating systems.
456 questions
asked 2022-10-08T14:06:09.617+00:00
niltongc 1 Reputation point
answered 2022-10-10T22:51:08.75+00:00
Dan Guzman 9,211 Reputation points
7 answers

How to publish my Net Core 6 website on my Windows Server 2022 and link а domain name to it?

HI! How can I publish my Net Core 6 website on my Windows Server 2022 and link а domain name to it? Does anyone have links to an approximate sequence of actions? I raised IIS on Windows Server 2012 R2 a long time ago, but then I had Apache HTTP…

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
asked 2022-10-08T09:30:26.303+00:00
Volk Volk 571 Reputation points
answered 2022-10-10T19:23:15.47+00:00
Volk Volk 571 Reputation points
1 answer

CORS issue in .NET Core 6 API

When I deploy my API to the server and I try to consume APIs from a React app, I always get CORS errors. Frontend: https://dev.livedispatch.ca Backend: https://backend-dev.livedispatch.ca I followed this tutorial and nothing works, I get…

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 2022-10-04T17:15:28.77+00:00
Stesvis 1,041 Reputation points
answered 2022-10-05T17:32:58.74+00:00
Bruce (SqlWork.com) 56,846 Reputation points
1 answer One of the answers was accepted by the question author.

Visual Studio 2022 for mac, PM console or CLI to use entity framework command (add-migration, update-database, ecc.)

Hello, I'm using Visual Studio 2022 for mac, I have understood that the preview version not include PM console or CLI to use entity framework command. So, how can I do it? Which is the way to use entity framework commands, such as add-migration,…

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,402 questions
asked 2022-09-29T14:35:53.23+00:00
Igor Baldacci 41 Reputation points
commented 2022-10-05T14:15:28.077+00:00
Igor Baldacci 41 Reputation points
1 answer

How to set client Id in entity framework core (EF6) in DBContext

Hi There, We have a Web API in .NET 6 which uses entity framework core (EF 6). In our application we have Oracle database (19c) which has certain business use case specific tables. And, corresponding to that are history tables which gets populated…

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 2022-10-01T01:04:35.447+00:00
Srivastava, Prashant 1 Reputation point
commented 2022-10-02T16:05:58.493+00:00
Srivastava, Prashant 1 Reputation point
0 answers

One Bindinglist from multible DbSets to gridview

Just wondering if it is possible to bind 2 DbSets to one data grid view leveraging BindingList. public virtual DbSet<Candidate> Candidates { get; set; } = null!; public virtual DbSet<Candimmigration> Candimmigrations { get; set; } =…

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 2022-09-03T14:17:53.717+00:00
YouElz 1 Reputation point
commented 2022-09-30T07:29:14.33+00:00
YouElz 1 Reputation point
1 answer

Getting timeout exception on Count()

I am performing a query to the Customers table with some filters: var customers = Context.Customers .AsNoTracking() .Include(x => x.Client) .Include(x => x.CreatedByUser) …

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 2022-09-28T19:47:54.63+00:00
Stesvis 1,041 Reputation points
commented 2022-09-30T04:47:09.02+00:00
Viorel 112.5K Reputation points
1 answer

UserId from 128 to 450 characters

During a migration from a project built with EF6 to EF Core 6 I noticed that in EF Core the AspNetUsers.Id column is now an nvarchar(450) while before it was an nvarchar(128). My models have a foreign key to the AspNetUsers table of nvarchar(128) and…

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 2022-09-29T15:18:03.96+00:00
Stesvis 1,041 Reputation points
answered 2022-09-29T15:53:02.57+00:00
Michael Taylor 48,656 Reputation points
2 answers

Map only the selected columns when using EntityFramework

In my recent Entity Core project I am having database table called "YmPlant" and it has 20+ columns. But for my requirement I just need data only from 3 columns. Also I am not required to do the write operations. Only read from YmlPlant table. …

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,402 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 2022-09-23T17:53:48.407+00:00
Nuwan Wickramanayaka 21 Reputation points
answered 2022-09-24T19:45:34.407+00:00
Karen Payne MVP 35,196 Reputation points
2 answers

broken .net framework aspnet webapi hosted on azure

Hello, I have a .net framework licensing server webapi app hosted on azure which has stopped working. It hasn't been used for a while, but when i came to update the keys, and use it again, i found it was broken. I wasn't able to get detailed logs…

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 2022-09-20T07:02:59.78+00:00
Martin Alley 6 Reputation points
commented 2022-09-22T08:20:45.48+00:00
JasonPan - MSFT 4,376 Reputation points Microsoft Vendor
1 answer

The JSON value could not be converted to System.String. Path: $[1].Interests[1].Meta[9].Content | LineNumber: 0 | BytePositionInLine: 10073. Error

public Class Emp{ public string Name { get; set; } [Column(TypeName = "jsonb")] public List<Section> Sections { get; set; } } public Class Section{ public string Booking { get; set; } [Column(TypeName =…

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,402 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 2021-10-15T12:32:59.027+00:00
AG Mohamed 1 Reputation point
commented 2022-09-22T03:36:46.767+00:00
Gustavo Melendez 1 Reputation point
1 answer

IDisposable question

I have a class that implements an interface and also IDisposable: public interface IMyObject : IDisposable { void MyMethod(); } public class MyObject: IMyObject { public void MyMethod() { …

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 2022-09-22T00:29:19.41+00:00
Stesvis 1,041 Reputation points
commented 2022-09-22T01:32:46.207+00:00
Stesvis 1,041 Reputation points
9 answers

EF Core - updated data retrieve problem

Hello, I am trying to get updated data like this in my Blazor Server application: async Task PassiveDetail(OrderDetail orderDetail) { if (orderDetail == _detailToInsert) { _detailToInsert = null; …

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
asked 2022-09-16T05:37:57.627+00:00
Cenk 956 Reputation points
answered 2022-09-21T20:10:41.32+00:00
Cenk 956 Reputation points
1 answer

How To Upload multiple pics At a time in Asp.net core razor pages and save It to Database?

Making a form in EF core Razor pages. I did the file uploading thing from below link reference .But I want to choose multiple JPEG file only at a time. What to change or implement In this code? upload-image-to-aspnet-razor-page.html This is the…

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
asked 2022-09-21T06:59:26.357+00:00
Arnab 66 Reputation points
answered 2022-09-21T08:40:32.587+00:00
Xinran Shen - MSFT 2,091 Reputation points
2 answers

EF core 6.0 never working fine

I am coming to the conclusion that EF core is nothing but a bunch of bugs . I was correctly scaffolding a db until this morning . Now, without absolutely NO CHANGE in the DB schema and the scaffolding command , I realize that suddenly 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 2022-09-14T08:46:52.413+00:00
leo del ciello 66 Reputation points
answered 2022-09-21T08:18:15.307+00:00
Karen Payne MVP 35,196 Reputation points
3 answers

Why ASP.NET Core 3.1 application installs Angular v8 on it's own?

Hi, I have been trying to create a simple CRUD app using Angular v12 (the latest version) and .NET Core 3.1. Whenever I try to create project in VS, it created project with Angular v8. So I installed Angular v12 globally. But still it uses Angular v8…

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 2021-05-13T21:24:23.767+00:00
Nimish Srivastav 1 Reputation point
answered 2022-09-20T16:47:00.11+00:00
Bruce (SqlWork.com) 56,846 Reputation points
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.
696 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,402 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,141 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.
696 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