Questions tagged as 'entity-framework'

1
answer

System.Data.Entity.Core.ProviderIncompatibleException An error occurred while getting information from the database provider

I'm making an application with ODP.NET Oracle.ManagedDataAcces.EntitiFramework this is my connection string: Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SER...
asked by 30.11.2016 / 05:31
1
answer

The entity or complex type 'DBModel.User' can not be built in to LINQ to Entities query

var result = db.Users.Select(x => new User() {CommpleteName=x.CommpleteName}).FirstOrDefault(); I am trying to select a column from my user table and I receive this error:    The entity or complex type 'DBModel.User' can not be construct...
asked by 05.07.2016 / 11:59
0
answers

MVC 5, DropDownList cascading

I have the following problem: suddenly, my solution is the one you are looking for in the part of the controller that is needed for your model. I have the following problem, what happens is that if I give the apartment and then the city,...
asked by 08.09.2016 / 20:05
1
answer

Update database with Entity Framework 6

Well I'm using Visual Studio 2017, I have a project in C # which has installed Entity Framework in version 6.2.0 in addition to using SQL Server 2008. (I'm not using MVC but Web API) What I need is to be able to map my database model in the V...
asked by 26.01.2018 / 02:46
1
answer

Query with 3 tables

I have 3 tables that are: Control, Buyers and Titles. In my Control table I have Code, Date, State, Buyers and Titles Id. In my Buyers table I have Id and Name, As in my table of Titles that I have Id and Name. My General query is the following:...
asked by 28.11.2017 / 19:47
3
answers

last record entity C # windows form

Hello I hope you can help me I'm trying to get how many records my sql table has I have the following public int ultimoRegistro() { var LastRecord = (from c in db.Alumnos orderby c.IDAlumno descending...
asked by 09.11.2018 / 23:39
2
answers

Error Selecting Records with EntityFramework

Class that receives the query data public class EngineEntity { public string FacturaId { get; set; } public string Cliente { get; set; } public int? TipoFactura { get; set; } public double? Monto { get; s...
asked by 29.10.2016 / 14:37
1
answer

Visual Studio - Entity Framework

Does anyone know why I can not change the inherited provider option? I need to put it in true, like the project on the right and it appears blocked. Thank you in advance.     
asked by 28.11.2018 / 20:29
1
answer

@ Html.DropDownList

good day. I am currently working with .net and I have problem I want to send information to a method of a controller by means of a @ Html.ActionLink , this method asks me for two values which are the LevelId that I have no problem in passing...
asked by 28.11.2018 / 16:32
1
answer

How do I get the context of my table in C # through entity Framework?

I am currently using entity framework 5, and what I want to do are queries, inserts, updates through entity framework. I already transferred my BD to an .edmx connection file in .NET. My current problem is that I want to do a test insert, but ac...
asked by 03.10.2018 / 18:38