Questions tagged as 'entity-framework'

0
answers

Error the best overload for '.ctor' does not have a parameter named 'throwifv1schema' with entity

I'm having an error that is not making I can not compile the project. I am using ASP.NET C # entity framework code first The error indicates the best overload for '.ctor' does not have a parameter named 'throwifv1schema' using System.D...
asked by 07.03.2018 / 12:53
1
answer

How to get child entities from a data constraint? [duplicate]

Well, my problem is the following, I need to bring an entity from the database and it contains several lists that should bring their data following a rule, the data_exclusao field should be null. All entities have the data_exclusa...
asked by 01.03.2018 / 16:28
0
answers

Check selected value in a DropDownList with entity

I'm a beginner in ASP.NET and I have a relatively simple question ... How to get the selected value in a dropdownlost like this and pass it to a variable within the same cs.html to do a <div class="form-group"> <label class...
asked by 20.02.2018 / 20:40
2
answers

Compare shorter term between asp.net columns

Doing order system, I have several warehouses, let's suppose I have to compare 2 warehouses that have shorter lead times by using entityframework, how would I do that? I'm trying to do more but it only returns the last query value, but not the l...
asked by 18.02.2018 / 16:02
0
answers

INSERT with query in string Entity Framework

This is trying to give an insert in the table using a string containing a sql code ... when I use the DELETE command it runs perfectly now when I squeeze the insert no ... the insert runs straight into the database. Follow the code: public voi...
asked by 16.02.2018 / 21:08
2
answers

Connection methods in ASP .NET [closed]

I am a beginner in ASP and C #. I have doubts and this is the real reason to ask here. Before you can read how the question policy is, understand that I am a beginner and really need help. I have a question of how to connect to my ASP applic...
asked by 21.02.2018 / 17:43
1
answer

How to use enum with EntityFramework [duplicate]

I have a relationship of my system where one class makes a relationship with another, but this other class there is nowhere in the system to change / delete its state (they are just static data) p> I would like to know if the ideal would b...
asked by 21.02.2018 / 17:49
0
answers

System.Data.SqlClient.SqlException Conversion failed when converting date and / or time from character string

Live Personal, I'm new to the .NET world, C #, EntityFramework (Microsoft world). I am working on a project with the mentioned technologies, initially I was programming in a VM (with Windows) because I use MAC but I had some performance probl...
asked by 21.02.2018 / 16:13
0
answers

Error creating Database - Validation failed for one or more entities. See 'EntityValidationErrors' property for more details

I'm having this error:    Validation failed for one or more entities. See 'EntityValidationErrors' property for more details During the creation of the database it presents me with this error. I can do the migrations , but when I upda...
asked by 07.02.2018 / 16:04
1
answer

Data Comparison Entity Framework asp.net mvc

I need to get the value and quantity in stock of a given product according to your Id. For debug the product id is arriving correctly, but when I assign the values to the table fields I am having a conversion error. / p> // POST: Pedido...
asked by 16.02.2018 / 22:33