Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
75 views

I am using Entity Framework 5.0 database first approach and I am unable to update model (edmx in Model browser) from database in Visual Studio 2022. I have 3 models inside my solution and I am able to ...
Radek's user avatar
  • 20
0 votes
2 answers
212 views

I already have a database which contains identity user tables (AspNetUser, AspRole,...). I am using DB first to generate Models, I've configured every necessary services in program.cs. The project ran ...
tan truong the's user avatar
1 vote
1 answer
131 views

I have a SQL query that uses cross apply to join to a table-valued function to a table as in the following in order to search what is essentially a linked list (parent and child work orders) for the ...
reuben42's user avatar
0 votes
0 answers
333 views

I'm using EF Core 8.0.4 and I want to use my existing database. But there are about 1000 views in the database. I don't want to use them for my project anymore. How can I avoid EF Core from ...
Trần Nguyên Trường's user avatar
0 votes
1 answer
964 views

Just as a heads up I'm completely new to this and this part has had me stumped for a bit. I haven't found a straight answer that worked (and everything else went right over my head) so please be ...
ReallyTrying's user avatar
0 votes
0 answers
124 views

I would like to perform integration testing on my API which connects to an oracle database via EF Core (database-first). Initially, I went with Testcontainers.Oracle but it was running too slow on my ...
darrenleeyx's user avatar
1 vote
0 answers
48 views

I used database-first approach to create entity data model & context and performed to crud operation. If a new table (ex: products) has been added to database, please explain how to add the newly ...
jayasri's user avatar
  • 21
0 votes
1 answer
656 views

I'm stuck updating my .NET Framework 4.8 app, using Entity Framework 6 with a PostgreSQL database which is in the Amazon Aurora Cluster ecosystem. I'm using the Database First Approach and have Npgsql ...
drfraenk's user avatar
4 votes
3 answers
5k views

I have a Web API solution with several projects inside it. Tests, Services, Domain, Data and the API. The API project is the startup project. All of my EFCore references are in the Data project. I am ...
Justin williams's user avatar
0 votes
0 answers
401 views

EDIT: It was solved by setting aUpdate.b = null; aUpdate.c = null; before calling update. But this does not seem like the right way to do it. Also, currently the way I'm saving is: Set.Update(model); ...
samalk's user avatar
  • 21
2 votes
1 answer
968 views

I used Scaffold-DbContext to create an EF Core data model from an SQL Server database, and then went ahead and added many custom attribute decorations and [NotMapped] columns to the model classes, as ...
GilShalit's user avatar
  • 6,503
1 vote
0 answers
583 views

A common issue I have been running into deadlock exceptions since I'm running constant select statements and update statements via entity framework every second. So here is a simple example of one of ...
DarthVegan's user avatar
  • 1,269
0 votes
0 answers
20 views

I have an app that is designed using EF 6 database first. When I right click in my EDMX file and click 'Update model From database' the following error occurs: How do I solve this? Re creating the db ...
UTrocket23's user avatar
0 votes
1 answer
35 views

Beginner here Assume that I have a model generated from the database first. I want to manipulate that model without doing anything to that model. How can I do that? I thought about creating another ...
quanhprx's user avatar
1 vote
1 answer
635 views

Background Context: I am working on a database project that builds models from parsed datasets and then merges these models with the database using Entity and the Entity Framework Extensions (for bulk ...
Earendel_E's user avatar
0 votes
0 answers
82 views

Here I'm doing a first-time .net MVC Database First approach project. I have connected my existing database to the project. When I try to retrieve the data from it to the controller, I got error ...
Dev Beginner 's user avatar
1 vote
1 answer
283 views

Is there an option to make this automatically? Because I have a database first situation and when I 'Scaffold' my tables the context is setup without this naviagtion. What I do is I put it manually ...
user7849697's user avatar
5 votes
2 answers
2k views

Context: I use Database-first approach to generate my entities with Entity Framework Core and with use of Scaffolding. Each time I change something in the database I run Scaffolding with -f parameter ...
Kebechet's user avatar
  • 2,559
1 vote
1 answer
1k views

I have built a SQL database with my CustomerDetails, ProductDetails, OrderDetails from scratch and also stored procedures to create new Customers, new Products and Orders. So now I want to build a ...
Hoy Cheung's user avatar
  • 1,678
3 votes
1 answer
12k views

I am studying EF Core with database first. There is no issue to get entities and DbContext after reverse-engineering. But I couldn't understand the role(or purpose) OnModelCreating Method in DbContext(...
DDrim's user avatar
  • 45
0 votes
1 answer
286 views

I have two model classes: public partial class customer { public string customer_id { get; set; } // Primary Key public string customer_name { get; set; } public string course_mobile { ...
Santosh Vishwakarma's user avatar
0 votes
0 answers
239 views

I may have phrased my question in not the best of ways but here is the problem. I have a table in my View: https://ibb.co/0fXwfPn Here is the code for said table in the .cshtml : https://ibb.co/...
SeeSharpNewbie121's user avatar
0 votes
0 answers
29 views

I have several project in my solution and you think there are prjBook and prjLibrary. I install EF6 on prjBook and added it(prjBook) to prjLibrary as Reference. when run prjBook alone, everything ok ...
MHD's user avatar
  • 47
0 votes
1 answer
428 views

I am working with the newest DevArt Oracle version and created a EDML file that connects to my Oracle 12 database and get the models with the db first approach. I followed this howto: https://www....
PassionateDeveloper's user avatar
1 vote
2 answers
4k views

public Tbl016 CheckLoginCredentials(string UserName, string Password) { return context.Agents .Where(x => x.LoginName == UserName && x.LoginPassword == ...
Mohammad Radwan's user avatar

1
2 3 4 5
15