Skip to main content
Filter by
Sorted by
Tagged with
Tooling
0 votes
4 replies
55 views

I’m used to working with a Database First approach in C#. I design my database schema (often with MySQL Workbench) and do a forward engineering, then generate my C# models using Entity Framework’s. ...
alex_pythooon's user avatar
Advice
0 votes
3 replies
44 views

Here's a basic example from the official .NET documentation for a many-to-many relationship using EF and .NET: public class Post { public int Id { get; set; } public List<Tag> Tags { get;...
Arnaud VDR's user avatar
1 vote
1 answer
101 views

I am trying to use the InsertFromQuery() to add data to a SQL table: await cx.Users .Where(x => x.Country == "Romania") .InsertFromQueryAsync("Mailbox", mb => ...
Ginto's user avatar
  • 41
0 votes
1 answer
149 views

I have the following query being generated by EF: DECLARE @__term_0 VARCHAR(7) = 'woodrow' DECLARE @__p_1 INT = 0 DECLARE @__p_2 INT = 15 SELECT [t].[Id], [t].[City], [t].[Contact], [t].[CreatedBy], [...
TheIronCheek's user avatar
  • 1,231
1 vote
2 answers
129 views

I am trying to populate a object with additional data from another object with Entity Framework from our data tables. public partial class Maintable { public int Id { get; set; } public int ...
d_88_l's user avatar
  • 47
6 votes
0 answers
134 views

We are planning to use a Gitflow workflow and a shared test database. We currently use EF 6.5.1 and have automatic migrations disabled. Problem: if a developer runs Update-Database (or dotnet ef ...
EMN's user avatar
  • 161
1 vote
0 answers
66 views

After updating our Dotnet API from dotnet 6 to 8 the connection-attemps on AWS RDS increased significantly (see attached picture). The API is running in a docker-container. We use a MYSQL RDS instance ...
jonny's user avatar
  • 34
734 votes
47 answers
569k views

All of a sudden I keep getting a MetadataException on instantiating my generated ObjectContext class. The connection string in App.Config looks correct - hasn't changed since last it worked - and I've ...
J. Steen's user avatar
  • 15.6k
834 votes
27 answers
589k views

How do I view the SQL generated by entity framework ? (In my particular case I'm using the mysql provider - if it matters)
nos's user avatar
  • 231k
0 votes
1 answer
94 views

I have a TaskFlowTemplate, pretty standard but a bit complex. Our users will have the ability to work locally in memory without need to save after every changes. My primary key is int Id. public class ...
Tobias Gustafsson's user avatar
457 votes
34 answers
321k views

I am trying to run my tests on TeamCity which is currently installed on my machine. System.InvalidOperationException: The Entity Framework provider type 'System.Data.Entity.SqlServer....
ashutosh raina's user avatar
693 votes
23 answers
293k views

I am currently getting this error: System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads running in the session. while running this code: public class ...
Keith Barrows's user avatar
2 votes
2 answers
118 views

I have situation like this: I have two Blazor components, both using dbContext and I get popular error A second operation was started on this context instance before a previous operation completed. ...
Vlado Pandžić's user avatar
611 votes
22 answers
419k views

I am using Entity Framework 1 with .net 3.5. I am doing something simple like this: var roomDetails = context.Rooms.ToList(); foreach (var room in roomDetails) { room.LastUpdated = ...
Positonic's user avatar
  • 9,411
0 votes
1 answer
91 views

I'm using Hilo with a custom sequence name. When creating migrations, EF Core always creates a migration to drop the sequence with the normal name. Since EF Core 9.0, this produces a runtime exception ...
Merijn's user avatar
  • 751
469 votes
28 answers
521k views

I've got a datatable with 5 columns, where a row is being filled with data then saved to the database via a transaction. While saving, an error is returned: The conversion of a datetime2 data type ...
Gerbrand's user avatar
  • 5,434
0 votes
0 answers
44 views

I'm trying to create my own filter for a specific type of data in hotchocolate. I created a class from FilterInputType<MyType> and specified an additional field for filtering in it. For this ...
loloskc's user avatar
1 vote
0 answers
148 views

I am running PG 17.5 Windows using the EDB community distribution. I am using Entity Framework ORM with Devart's dotConnect for PostgreSQL. The issue I am about to describe did not occur under PG 13....
sevzas's user avatar
  • 821
270 votes
30 answers
289k views

I am using entity framework and ASP.NET MVC 4 to build an application My solution is split into two projects; A class library that includes my data model (.edmx) file and a few custom interfaces The '...
jjc99's user avatar
  • 3,579
868 votes
17 answers
295k views

Now that .NET v3.5 SP1 has been released (along with VS2008 SP1), we now have access to the .NET entity framework. My question is this. When trying to decide between using the Entity Framework and ...
Chris Roberts's user avatar
216 votes
25 answers
380k views

I have a Service Object Update public bool Update(object original, object modified) { var originalClient = (Client)original; var modifiedClient = (Client)modified; _context.Clients....
Rijnhardt's user avatar
  • 2,824
357 votes
45 answers
424k views

I am using Entity Framework to populate a grid control. Sometimes when I make updates I get the following error: Store update, insert, or delete statement affected an unexpected number of rows (0). ...
strongopinions's user avatar
384 votes
18 answers
330k views

I've mucked up my migrations, I used IgnoreChanges on the initial migration, but now I want to delete all my migrations and start with an initial migration with all of the logic. When I delete the ...
Kind Contributor's user avatar
69 votes
27 answers
164k views

I don't understand what wrong. I tried to make a simple crud in .net core mvc with a very simple model which has few fields. These are my models: public class Employee { [Key] public ...
 cickness's user avatar
0 votes
1 answer
103 views

I want to implement "soft delete" in my application, meaning that instead of physically removing records from the database, I set an IsDeleted flag to true. My expectation is to intercept ...
Tetik's user avatar
  • 1

1
2 3 4 5
1836