708 questions with Entity Framework Core tags

Sort by: Updated
1 answer

About.core3.1 Dynamic Compiling

Hi, I was compiling some code dynamically with Core3.1 and was told that the platform didn't support it, but using the Framework was fine.I don't know how to return a responsibility, ask everybody to help using RRQMSocket; using RRQMSocket.RPC; …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-03-17T14:50:13.483+00:00
若汝棋茗 41 Reputation points
answered 2021-03-18T02:41:34.373+00:00
Daniel Zhang-MSFT 9,621 Reputation points
1 answer

Ef Core - weird behavior of AddRange

Here's my code: [Table("prom_term", Schema = "demo")] public class PromTerm { [Key] [Column("promotion_terminal_id")] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-03-12T20:27:35.6+00:00
senglory 1 Reputation point
commented 2021-03-16T09:54:05.623+00:00
senglory 1 Reputation point
1 answer

Why .NET Security Updates for x64 Windows Server includes many other packages including ones for Desktop systems and x86 systems

Hello, I'm curious how one is suppose to determine which of these packages in the update shown below is supposed to be installed when downloading from the MS Update Catalog? If you are running a Server OS (say 2016 Datacenter x64) and that server has…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,135 questions
asked 2021-03-12T19:18:32.903+00:00
ComputerUser_88633 21 Reputation points
answered 2021-03-16T06:23:32.12+00:00
abbodi86 3,866 Reputation points
1 answer

SQL Server and EF Core, create “Lock Request Timeout” error

(I asked this on StackOverflow as well, figured I'd throw it out here too) I recently had my EF Core (2.1) code throw a DbUpdateException, caused by a lock request timeout. I think I understand the basic idea behind this (EF doesn't lock items until it…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
Azure SQL Database
asked 2021-03-11T00:20:33.53+00:00
Bill Turner 1 Reputation point
commented 2021-03-15T14:28:40.56+00:00
Navtej Singh Saini 4,221 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

EF Core add new record, assigned identity when life cycle is scoped

Hi In asp.net core 3.0 app with ef core 3.18, dbcontext registered AsScoped, when a new record created with identity set as integer and incremental, and automatic number identity value is assigned to that entity record, say 1, if at the same time in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-02-28T17:21:14.217+00:00
babak fakhriloo 41 Reputation points
accepted 2021-03-10T16:38:46.197+00:00
babak fakhriloo 41 Reputation points
2 answers

Eager loading by default in the model

Would like a specific entity to have a navigation property eager loaded by default. Is this a feature in EF5? https://github.com/dotnet/efcore/pull/19355

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2020-12-07T17:35:52.627+00:00
dsbdev 1 Reputation point
commented 2021-03-08T12:48:29.78+00:00
dsbdev 1 Reputation point
1 answer

Not all FK's updating con savechanges

Afternoon, Hope someone can help me, I have the following model: The rough code (I know its a mess) at present while I am trying to workout what is going on is as follows to add a note and link it to the changelog: public async…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 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,950 questions
asked 2021-03-07T17:36:30.957+00:00
Liam C. Holmes 1 Reputation point
answered 2021-03-07T20:19:07.71+00:00
Liam C. Holmes 1 Reputation point
1 answer

The Name of the Tool from the Picture

Goal: The name of the tool in order review the code as a sql code when you apply the input linq code C# (https://www.red-gate.com/simple-talk/wp-content/uploads/imported/2325-1-2fbc0f9f-774f-441e-a91c-acdd4a812ba7.png) Problem: What is the name…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-01-17T22:08:36.517+00:00
JJ TT 141 Reputation points
answered 2021-03-07T01:02:28.033+00:00
Wade Gausden 166 Reputation points
1 answer One of the answers was accepted by the question author.

Entity Framework Core 5 doesnt support Oracle 10G?

I'm trying to create a Model from my database Oracle(10g) using Scaffold-DbContext. Scaffold-DbContext "DATA SOURCE=XPERTISE.world;PASSWORD=XXX;USER ID=SCHEDULE" Oracle.EntityFrameworkCore -OutputDir Models -Tables MEETINGS -Force. Im…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-02-27T11:14:01.423+00:00
oscar rodriguez urbina 21 Reputation points
commented 2021-03-01T16:54:29.977+00:00
oscar rodriguez urbina 21 Reputation points
0 answers

EntityFramework Any in Where

Hello, when i try to use Any in EF Core where, i get an error. can you help? query: var identifierslist = new List<DeviceIdentifierModel>(){..identifiers here...}; var devices = await _context.Device.AsNoTracking() …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-02-18T11:06:17.587+00:00
Selçuk Yıldırım 1 Reputation point
commented 2021-02-22T08:27:35.057+00:00
Daniel Zhang-MSFT 9,621 Reputation points
2 answers One of the answers was accepted by the question author.

Update entities all at once

I have a list of entities returned me from external service, in this list i would take only item with flag IsNew setted to true and save in my database. My code is: var entitiesLst =ExternalService("BoxIt"); foreach (var…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 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,420 questions
asked 2021-02-17T16:17:53.6+00:00
first100 81 Reputation points
accepted 2021-02-18T12:10:38.767+00:00
first100 81 Reputation points
1 answer One of the answers was accepted by the question author.

Very slow database creation within Azure function project deployed to Premium plan

Something I have discovered whilst investigating some performance issues is that it is taking entity framework between 6 and 7 seconds to perform the first database operation (the database has 152 tables) when deployed into an Azure Premium Function…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,424 questions
asked 2021-02-12T13:54:29.103+00:00
Andrew HB 321 Reputation points
accepted 2021-02-12T14:46:59.307+00:00
Andrew HB 321 Reputation points
1 answer One of the answers was accepted by the question author.

set variable of partial class

I have a generated clas (with soapui) I need to pas data to a class order This class has partial classes The code : This is what i try and th error i get .... Dim orders(1) As dpd_label.order orders(1) =…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,331 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,612 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,135 questions
asked 2021-02-06T21:57:43.177+00:00
stoffel79 21 Reputation points
accepted 2021-02-07T20:13:27.063+00:00
stoffel79 21 Reputation points
1 answer

Passing multiple Lists in single parameter

Hi Team I have below requirement. ' There are 3 list with different class type. Example: List<Customer> lst1=new LIst<Customer>(); List<CustomerOrder> lst2=new List<CustomerOredr>(); List<CustomerTransaction>…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 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,420 questions
asked 2021-02-05T12:37:27.297+00:00
prasad k 86 Reputation points
answered 2021-02-05T16:08:22.58+00:00
Duane Arnold 3,216 Reputation points
1 answer One of the answers was accepted by the question author.

Sample code Asp.Net Core Datatables Jquery pagination MVVM Services

Hi, I would like a template sample code to get started, with Asp.Net Core CRUD operations with search pagination , master detail pages. Dependency Injection CODE FIRST ENTITY Framework Datatables Jquery I have a solution developed on…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 questions
asked 2021-01-29T07:41:29.96+00:00
murtaza gandhi 81 Reputation points
accepted 2021-02-01T07:43:39.617+00:00
murtaza gandhi 81 Reputation points
1 answer

EF Core 5 many-to-many disconected add/remove without join entity class

EF Core 5 introduced many-to-many by convention, we only need to add the collection navigation property on each side and it works. I know I can query one side of the relationship, add it to the collection property and save it, but this requires an…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-01-30T09:27:12.827+00:00
Diego Torres 1 Reputation point
answered 2021-02-01T06:13:50.197+00:00
Daniel Zhang-MSFT 9,621 Reputation points
2 answers

Receiving chat messages with SignalR

I tested the SignalR solution in Xamarin Forms and .net core backend and it works great: https://montemagno.com/real-time-communication-for-mobile-with-signalr/ However, I am wondering how to keep receiving the messages when the app is in background…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,305 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-01-23T01:29:59.907+00:00
Stesvis 1,041 Reputation points
commented 2021-01-30T03:16:35.06+00:00
TheSloth 1 Reputation point
1 answer

EF Core question regarding relations

I'm building a ticket system. I have two models: User and Ticket. A user can have multiple tickets, and is bound to the ticket via the Customer_Id field. Another user, with the role of Practitioner, can also be assigned to the ticket, via the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-01-20T08:21:36.483+00:00
Tobias Groeneveld | TendenZ 1 Reputation point
commented 2021-01-26T02:34:04.33+00:00
Daniel Zhang-MSFT 9,621 Reputation points
1 answer

Where to store xamarin forms chat messages

Hi, I need to implement a chat service in my app. Before I get too far on this, I would like to ask for an opinion on where to store chat messages. My options so far are: Twilio chat My own DB There are pros and cons, Twilio chat costs…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,305 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2021-01-22T16:31:46.813+00:00
Stesvis 1,041 Reputation points
answered 2021-01-22T16:37:29.997+00:00
Alessandro Caliaro 4,181 Reputation points
1 answer

Creating a generic template in C#

I have researched that C#, as well as its predecessor, C++, enable users to create generic templates. Here are the two source code snippets below: using System; using System.Collections.Generic; using System.Data.OleDb; using System.IO; namespace…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,858 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 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,420 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,135 questions
asked 2021-01-20T06:12:29.877+00:00
JohnCTX 636 Reputation points
commented 2021-01-20T08:20:54.047+00:00
Daniel Zhang-MSFT 9,621 Reputation points