Questions tagged as 'entity-framework'

1
answer

Update, Insert in the Entity Framework Using View?

I'm having an error in my project when trying to give a Update or an Insert via Entity Framework, where I mapped a view of data. defined. I also saw that I could change that, but I could not find where. Does anyone know how...
asked by 10.04.2016 / 08:10
1
answer

Error writing data from some tables by application

I have an application in asp.net mvc which, among other functions, registers personal data of clients. We recently switched database access from one server to another, which has a copy of the database from the previous server. The problem is...
asked by 18.04.2016 / 16:00
2
answers

Prefix (stackify) + Web Api + MVC + EF 5 is not monitoring querys

Good afternoon. Personally, I am not able to use Prefix (stackify) + Web Api + MVC 4 + EF 5, because it is not able to monitor the querys performed and perform the feedback of the information. At the Api Web layer are the access to the applicatio...
asked by 18.04.2016 / 19:29
0
answers

Column Discriminator error EF code first

I'm doing a project in asp.net, I'm using C # classes to make the connection to the database, but every time I try to insert a user into the database, it generates the following error:    invalid column name "Discriminator" Note: My bank...
asked by 24.01.2016 / 04:00
1
answer

Query n: m using the Entity Framework

My problem with doing a "many-to-many" query. Receiving a View ID. In other words, I get an id from the selected cheater.  1 Catechesis has a list of parishes and 1 Parish has a list of Catecheses; A List of parishes has "1" truncheon. I get th...
asked by 20.01.2016 / 17:03
2
answers

I can not connect the localDB with visual studio

I'm trying to use the entity framework in Visual Studio, but when I try to run the program it generates the error: System.Data.SqlClient.SqlException was unhandled Class=20 ErrorCode=-2146232060 HResult=-2146232060 LineNumber=0 Me...
asked by 16.11.2015 / 18:50
1
answer

Randomize different PartialViews at random

I have the following scenario: I have to pass to a view data of different tables (similar data, but without any relation), until then I got it good. I created a class (viewmodel) that receives the data, in the Controller food it wh...
asked by 10.12.2015 / 17:42
0
answers

Records in ICollection navigation property are not being written

I'm trying to include items in a property of type list but I'm not able to include the records in the database. Firstly I have the following class models: public class Frota { public Frota() { Veiculos = new List<Veiculos&g...
asked by 11.12.2015 / 15:06
1
answer

View the complete list of tables in an Oracle connection with Entity

As I do for a connection to the Oracle database, show all tables. I made a connection and I have more than 500 tables in the database and it only shows 74, the three that I need to mount the POC I'm doing, I can not map them. see the tables t...
asked by 05.11.2015 / 18:11
1
answer

listing filter in 2 MVC tables

I have 3 templates: Pessoa , Catequizando and Inscricao . I want to make a query that returns the Name of the person where CatequizandoID = PessoaID that will appear in a dropdown in the view CriarInscricao I...
asked by 07.12.2015 / 19:16