Most voted "entity-framework" questions
ADO.NET Entity Framework is a set of tools for object-relational mapping or Object-Relational Mapping (ORM) for the . NET Framework by Microsoft, Since version 3.5 SP1.
Learn more…1,214 questions
Sort by count of
-
-1
votes2
answers124
viewsHow to verify that the email is already registered in the database?
The Controller is always returning the error message, when the email is registered or not in the database. [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create([Bind(Include =…
-
-1
votes1
answer33
viewsI can only output a database record. How do I output all the records I have in the database?
public ActionResult Index() { PAPEntities db = new PAPEntities(); MoviesData movie = db.MoviesData.SingleOrDefault(x => x.MovieID == 1); List<MovieViewModels> MovieVM = new…
-
-1
votes1
answer36
viewsInsert multiple values with WEB API
How are you, my dear? Quiet? I will summarize my project to assist in understanding: I am creating a CRUD to assist me in some of the company’s tasks. I have 3 areas I use (System, Database and…
-
-1
votes1
answer70
viewsCS1503 error: Argument 2: cannot convert from "string" to "Microsoft.EntityFrameworkCore.Serverversion"
Help me boys, I’ve tried everything and the mistake doesn’t come out at all!!! using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using…
-
-2
votes1
answer234
viewsEntity Framework does not edit FK
I’m having some difficulties with a big project, and I tried to make a very simple replica to post here so that someone can help me. One of the difficulties I’m having is how to edit the fields with…
-
-2
votes2
answers90
viewsDoubt Gets/Sets
My project has 3 layers, DAL, BLL, Project utilizo ASP.NET I have an aspx page in the project, which has textbox containing new values for a database update. In the DAL class I have Entity that…
-
-2
votes1
answer258
viewsUpdate records linked with Entity Framework?
For example I have a person class and every person can have a spouse if she wants to (Optional). Suppose I have two people registered at the bank: Personal: 1, Name: John, Personal = null Personal:…
-
-2
votes3
answers119
viewsObject is not persisted when using Entity Framework
I’m using the Entity Framework 6 and the Sqlserver. I have an object called category, where I want to persist it in the bank. and when I run this function, it persists the object correctly because I…
-
-2
votes1
answer269
viewsPut Asp Net MVC Identity validation
I tried to locate this doubt in the forum and could not find. I have an Asp Net MVC application that uses the Entity Framework with Identity to login. My client registration works perfectly, but I’m…
asp.net-mvc entity-framework asp.net-mvc-5 asp asp.net-identityasked 6 years, 9 months ago Mauricio3012 31 -
-2
votes1
answer128
viewsSelect days comparison with current date does not work
I have this select which brings back the data as follows, if DataCobranca for 10, and today is day 05, it will pick up all customers that is day 10, as it will be generated 5 days before, or case…
-
-2
votes1
answer104
viewsList within a Dictionary
I have a method that receives a list of products, goes through this list and needs to return n lists of products separated by CNAE. I’m trying to come back as a dictionary, but then the doubt hits.…
-
-3
votes2
answers547
viewsCreate Bank Automatically with Code First
I am creating an ASP.NET MVC application with Code First. This system is trade management software. I’d like to separate the information from each company, not leave it all in the same bank. We…
-
-3
votes1
answer51
viewsError in Validationresult when trying to create Migration
One or more validation errors were detected during model generation: Sigma.Infra.Data.Context.ValidationResult: : EntityType 'ValidationResult' has no key defined. Define the key for this…
-
-5
votes2
answers420
viewsHow to extend Pocos from the Entity Framework by encapsulating business rules?
I’m developing a three-layer system. My initial intention was to expose the business layer entities to be used in the repository (EF code first). I want to do this so that I can persist (in memory)…