All Questions
Tagged with entity-framework-core asp.net-core-mvc
891
questions
0
votes
1
answer
77
views
ModelBuilder Entity in ASP.NET Core MVC
In ASP.NET Core 6, I need to rename the database model of ASP.NET Core Identity. I do not use APIs, but just ASP.NET Core 6 MVC.
This my code:
protected override void OnModelCreating(ModelBuilder ...
1
vote
2
answers
62
views
Why do I get the SpecialityName as null here?
I am working with ASP.NET Core And Entity Framework, and when I request this controller I get this.
The problem in using the FromSql method is that it returns the SpecialityName as null, when the same ...
-1
votes
1
answer
101
views
Entity Framework Core : can't find table in Sqlite database
I'm currently working on a project where I need to request data from a SQLite database. My workspace is organized into two separate projects: one for the database and one for the service.
I've created ...
0
votes
1
answer
84
views
How to remove registration completely in ASP.NET Core 8.0 with Entity Framework Core?
I am building an application in which only admin can add student or teacher. I don't want anyone to register as a student or teacher. I am using ASP.NET Core 8.0 along with Entity Framework Core.
I ...
1
vote
2
answers
76
views
When I click on delete button, I get an error and don't hit the delete controller in ASP.NET Core with Entity Framework Core
I am trying to delete some category using ASP.NET Core and Entity Framework Core. When I click "delete", it shows an error
This page isn't working. If the problem continues, contact the ...
0
votes
0
answers
64
views
How to handle this error: "ArgumentNullException: Value cannot be null. (Parameter 'items') Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList..ctor"
I'm writing code in N-tier architecture in ASP.NET Core 6 MVC. But I'm getting an error while I'm passing data from view to view model and from view model to controller. Actually view model is ...
0
votes
1
answer
92
views
Executing PostgreSQL stored procedure using EF Core DbContext.Database.ExecuteSqlRaw
I tried to execute the following stored procedure:
CREATE OR REPLACE PROCEDURE gselogwebsite_add
(
_logUserId INT,
_logSourceId INT,
_logCat INT,
_logLevel INT,
_logType INT,
...
0
votes
0
answers
24
views
Unable Get the data From Stored Procedure when passing null value as parameter in Entity Framework Core
I have Using Entity Framework Core in my Project. There I am passing the parameters to the Stored Procedure. When i am passing the null value for any parameter it is not returning any List of data.
...
0
votes
2
answers
153
views
Null exception during user login ASP.NET Core Identity
I am fairly new to ASP.NET Core. I am working on a simple social media web app and decided to add Identity to my existing User. I am having trouble with signing the user in. The problem occurs in both ...
0
votes
0
answers
49
views
DbUpdateConcurrencyException in ASP.NET Core 8 MVC web app
In my ASP.NET Core 8.0 MVC web app, this is the DbContext in which I have overridden SaveChangesAsync() to assign a new cart to any new added user:
using Egost.Areas.Identity.Data;
using Egost.Models;
...
0
votes
0
answers
34
views
EF Core loses the primary keys for my objects during updates?
I am creating a fairly simple application with 3 tables that contain Members, Envelopes, and Mailing Addresses. There is a 1:1 relationship between a Member and each of the other tables (1 Envelope ...
1
vote
0
answers
66
views
An error occurs while trying to modify IdentityUsers Many-to-Many relationship
I'm trying to create a project to familiarize myself better and I have this ApplicationUser class:
public class ApplicationUser : IdentityUser
{
public string? FirstName { get; set; }
public ...
0
votes
1
answer
158
views
.NET Core 8, how can I add properties to user account that contains multiple values?
I'm slowly learning .NET Core 8, and I'm using Identity with individual user accounts. I've recently learned how to add custom properties to the user account such as FirstName and LastName.
I would ...
1
vote
2
answers
120
views
Unable to resolve service for dbContext
To obtain an ASP.NET Core MVC web site, after a crash, I follow the indications of this thread again.
I installed the Visual Studio extension, I inserted the four Entity Framework Core references, I ...
0
votes
1
answer
62
views
Odata Put endpoint doesn't work as expected on ASP.NET Core MVC web service
I recently passed from an Entity Framework app to an Entity Framework Core one, I'm developing an API as a web service.
I have some GET endpoints that are working properly, and the put endpoint did ...