Questions tagged as 'entity-framework'

0
answers

Receive parameter by get with web api

I am doing a web application, with webapi and entityframework, I need to do in one part, the validation of the email, then the user registers, and receives an email with a url to activate the account of the form www.mipagina.com .ar / api / User...
asked by 03.10.2018 / 21:00
1
answer

duplicate field in query records with Entity Framework on table without primary key

Currently I have the need to connect an application to a table in a database (Oracle 11g) of other software. This table does not have a defined primary key. My Entity is this. public partial class Inacc { [Key, Column("ACCHIS", Or...
asked by 10.09.2018 / 22:51
0
answers

Query LINQ, Group by with Group Join

I have this query in Transact-SQL SELECT t_productospreguntas.d_pregunta, t_productos.d_titulo, t_productosimagenes.d_archivo, t_productosrespuestas.d_respuesta FROM t_productospreguntas INNER JOIN t_productos ON t_productospreguntas.c_usuario...
asked by 04.09.2018 / 05:03
0
answers

Problems with EF in the following code

I have a method which is called in the constructor of my controller Home in the created roles when starting the application and assigned a specific role to a user, it happens that I do not create any record in the db, in addition to debug the co...
asked by 17.08.2018 / 21:53
1
answer

Fill a GridView Entity Framework ASP.Net

How can I fill a Gridview with the result of a Linq query of an EF model. var vQueryTom = (from tom in cargaDocEntities.REPRESENTATIVE TOMOR                  select tom);     
asked by 02.08.2018 / 16:04
0
answers

list cursor in ERROR view in ObjectParameter

I have a project in C # ASP.NET and I am consuming an Oracle package in a login which receives three variables UserName , Password , application_id The code that I have is the following one and it receives me the data and everything: only th...
asked by 03.08.2018 / 23:47
0
answers

Select IN SQL in Linq or EntityFramework

in a system I get a list like that l_res2 = contexto.Ventas.Where(x => in_obj.FechaFin >= x.FechaInicio && in_obj.FechaInicio <= x.FechaFin ).OrderBy(x => x.FechaFin).ToList(); Now, I have a table Sales_States IdSaleId...
asked by 04.07.2018 / 19:22
0
answers

.Net - C #: Entity Framework Querys complexes

Greetings to all. I am starting to study Entity Framework and I have had a couple of questions: With the traditional approach of ADO.Net I can create queries or complex queries, that is, make use of INNER JOIN, LEFT JOIN, of functions such...
asked by 03.07.2018 / 02:58
0
answers

The database is not created using entity framework

Basically I followed all the steps as I understand how you can see this is the DBContext that I have created. namespace MODELO { using System; using System.Data.Entity; using System.Linq; public class Ouroboros : DbContext...
asked by 04.07.2018 / 10:32
1
answer

How do I perform a linq query that orders my result in a group?

What I want to do is a group by in my linq query, but I do not really know what the correct syntax is so that it gets it right: Current Code: public List<Section> getSectionsClass() { var context = GetDbContext(); return (from...
asked by 26.06.2018 / 20:48