All Questions
Tagged with c# entity-framework
55,115
questions
0
votes
0
answers
21
views
Strategy for handling multiple EF Migrations
I need help formulating a strategy for handling situations where two or more team members create an EF migration independently and for different reasons. Every single time we've had this scenario so ...
0
votes
0
answers
21
views
Could not able to download the HTML content as PDF in ASP.NET Web API
I have designed a html in the C#, on .NET and using Entity Framework., I have a PDF documents which are stored base64 encoded.
I should be able to get the full html string after this I am downloading ...
1
vote
2
answers
33
views
Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type: decimal SSN, string FullName>>' to 'System.Collections.Generic.List<>
I got this error when I tried to make a method to return all users which have no users
CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type: decimal SSN, ...
0
votes
0
answers
42
views
Populate a many to one relationship and how to show data input only once but increment if the date in the input are the same
I am currently working on a web project that required user to input a group of value for each person in a department per day then display it in two other index for day and month. I'm having problems ...
0
votes
0
answers
26
views
Problem with concurrency while updating data in DB using Quartz .NET and EF Core
I want to introduce horizontal scaling instead of vertical in my app.
Now we are using Quartz .NET for background tasks, but in non-clustered mode, just 1 instance.
So I found ability to do horizontal ...
0
votes
0
answers
48
views
Connect Timeout expired. Unable to connect to any of the specified MySQL hosts
I'm trying to deploy my api inside a docker container. It was working perfectly but I changed the mysql server parameters and it started giving me the following problem. Does anyone have any idea what ...
0
votes
0
answers
33
views
Entity Framework save changes from different Task<T>
My application has two concurrent tasks:
await _fileWatcherService.StartWatchingAsync();
var backgroundTask = Task.Run(() => ProcessQueueAsync(cancellationTokenSource.Token), ...
0
votes
1
answer
35
views
Entity Framework: does Select after OrderBy still guarantee ordered projections?
Let's say I have an Entity Framework 6 query which looks like this:
var orderedPayInfoes = context.Employees
.Where(x => x.EmployeeId > 5)
.OrderBy(x => x.CreatedOn)
....
0
votes
1
answer
43
views
how to show data in list from multiple join having lot of column of complex object/class
These are below tables. I can not modify it
Brand
Id Name IsRegisterd
1 ABC True
2 XYZ True
Product
Id Name BrandId Active Version
1 Soap ABC True 1.0
2 Soap ABC ...
-1
votes
0
answers
46
views
How to create optional properties in C#? [closed]
I want to create somewhat of a notebook app, where I can store different notes in a database, I'm using Entity Framework for the context. I have 2 different note types, one with input field and one ...
0
votes
1
answer
52
views
dotNET minimal API getting 404 not found on a secure endpoint
I am trying to implement a rest api using the dotNET framework. I am experiencing a problem with the "/secure" endpoint, getting 404 as a response message whether I login or not.
If I don't ...
2
votes
1
answer
56
views
LINQ group with list inside shows only the first row
I have a view in the v_PortalProprietario database that returns in each line the name of the owners that are repeated and the accounts (Acertos) that are unique. I would like to make a query in Linq ...
0
votes
2
answers
58
views
How to join tables and group the results using LINQ?
I have a table of Products and a table of Product_Images with a one to many relation (one product can have multiple images) and I am trying to retrieve all products with their related images. So far I ...
0
votes
1
answer
57
views
Pagination on the result from multiple collection .net
I am trying to add offset pagination( input is pagesize and limit) on combined result which is aggregating multiple collections. Earlier I had only limit on the reponse. Below is the code for the API ...
0
votes
3
answers
81
views
Sequence contains no elements in LINQ
In the code shown here, I am getting an error in LINQ:
Sequence contains no elements
When the reason column contains data, it is throwing this exception. Please suggest how to handle this exception.
...