Most voted "entity-framework-6" questions
It is a set of ADO . NET technologies that supports data-driven application development.
Learn more…371 questions
Sort by count of
-
0
votes0
answers589
viewsPK and FK Conflict in SQL Server Database
I am facing a Primary Key and Foreign Key conflict problem in SQL Server 2017 Express. I am using ASP.NET with Entity Framework Code First (Migrations). The problem is that when I add a new Client…
asp.net-mvc sql-server asp.net-mvc-5 mvc entity-framework-6asked 6 years, 1 month ago Alexsandro Andrade 1 -
0
votes1
answer44
viewsCompare existence of record with date and future date
I have the following model public class AgendaExame { public int Id {get; set;} public int PacienteId {get; set;} public int ExameId {get; set;} public DateTime Data {get; set;} public DateTime…
-
0
votes1
answer37
viewsHow to configure the Incrementby of a Postgre Id field using the Entity Framework Core
I have a table mapped for Postgre, but when I update the database, the Personal Fieldphysicaenderecotipoid is being auto-incremented by 10 in 10 (by default). How do I map so that Incrementby is set…
-
0
votes0
answers68
viewsEntity Framework 6 catch attributes in Savechanges
I’m using the Entity Framework 6 with Oracle. The database is of a legacy system, I intend to set in hand the primary keys of the records. To make life easier, I want to take SaveChanges of…
-
0
votes1
answer45
viewsConsult validity with two dates using Ef 6
I have the following model: public class Documento { public int Id {get;set;} public int ClienteId {get;set;} public int TipoDocumentoId {get;set;} public DateTime Emissao {get;set;} public DateTime…
-
0
votes0
answers35
viewsOnetomany entering a new record?
I am trying to create a Onetomany relationship between 2 classes "User and Broker" where 1 User has many Brokers. The problem is when I add a new Broker a new User is created and I don’t know why it…
-
0
votes1
answer32
viewsCore Entityframework called separate tables
I would like to filter a list, by the id of a Collaborator, my problem is that when returning to the list it returns everything from the bank. I need to filter for example all Projects that the…
-
0
votes2
answers53
viewsDoubt to Bring a Details of Two Tables MVC5 Entityframework 6.2
I’m studying ASP.NET MVC5 for college, and I came across a problem, I have three tables: Usuario, PessoaFisica, Endereco. My problem is this, when I’m right in the system, I can only bring the…
-
0
votes1
answer133
viewsHow to declare an image in the ASP.NET Core Model Class?
I’m following this tutorial from Microsoft:…
asp.net asp.net-mvc-5 asp.net-core entity-framework-6 entity-framework-coreasked 4 years, 10 months ago Iori Yagami 13 -
0
votes1
answer62
viewsError searching for record with Firstordefaultasync ASP . NET CORE 3.0
I have a method to search the client in the database by the number of the CPF (no points, only the numbers), but in the database the type is as VARCHAR. I did some tests by POSTMAN to test the API…
-
0
votes0
answers31
viewsHow to load references before performing Insert?
I have a method that receives Id parameters. These are, referenced in a model, however, I need to be loaded your references before saved, because I need this information to communicate with a API…
-
0
votes0
answers41
viewsShopping Cart Doesn’t Let You Add More Items After Cleaning It
I’m making a shopping cart for an E-commerce test on ASP.NET MVC, working with EF6. I was doing the logic, the cart it adds products and also removes. However, every time I add several products, and…
-
0
votes0
answers251
viewsValue cannot be null. Name of parameter: entitySet
I am trying to make a project of an e-commerce of Petshop in ASP.NET MVC with Entityframework. Everything was going well, until suddenly, when I tried to register or even list Vendor, this error…
asp.net-mvc entity-framework asp.net-mvc-5 visual-studio entity-framework-6asked 4 years ago Leo 29 -
0
votes1
answer99
viewsGET method returning empty
Good evening, I am developing a Webapi, I am using the code-first approach, for this I have selected the Entity framework 6.0.1, in my project I have the following classes Personcontroller.Cs,…
-
-1
votes1
answer58
viewsNosql . Net compatibility
I would like to know if there is any Nosql bank that is easier to work with. Net (which is easy to integrate, manipulate, create entities by the Entity framework if possible, etc). If you can give…
-
-1
votes2
answers96
viewsOnly allows 5 attempts at key duplication Entityframework? a 6 badge in Savechange()
Key duplication in write with Entityframework in competition with many users only allows 5 attempts and 6 badge in Savechange() (example 1). If it is with Sqlconnection it does not give any problem…
asp.net-mvc entity-framework vb.net entity-framework-6 competitionasked 7 years, 9 months ago DIT 9 -
-1
votes1
answer151
viewsEntity Framework 6: Error getting SQL Server record
I can enter records in the bank normally, however, when trying to get, it gives error in EF. public class Program { public static void Main(string[] args) { new…
-
-2
votes2
answers57
viewsHow to add AND parameters in EF query
My view sends 5 parameters bool Based on these parameters as I add where and in my query? My code is var query = db.Registros.AsQueryable(); if(model Paramter1) { query = query.Where(x => x.Kind…
-
-2
votes1
answer477
viewsError when entering monetary value into bank
I am trying to save the value 137421,20 in a table of Sqlserver with a field of type Numeric(8,2). However I get an error with the description: "Parameter value 137421,20 is out of range." I’m…
-
-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:…
-
-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…