Questions tagged as 'entity-framework'

0
answers

How to show a value in a select of an edit view (scafolding) from a model

<div class="form-group"> @Html.LabelFor(model => model.Cantidad, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> <select class="form-control" id="Cantidad" name="Cantidad">...
asked by 26.06.2018 / 21:04
1
answer

EF CodeFirst and .net MVC Error in insert with ID as Identity

I am developing a login system in MVC, which includes the following entities: Subject, User and Roles The model of each entity is the following: public partial class syssujetos { [Key] [Column(Order = 0)] [DatabaseGenerated(Databas...
asked by 25.06.2018 / 11:52
0
answers

Default value in MVC5

I need to create a sequence that is inserted by default, that is, I need that when inserting a record it is inserted by default, example fn000001,fn000002, ect. help     
asked by 02.07.2018 / 15:03
1
answer

How to delete an Entity record with a linq query?

What I want is to delete an entity framework record through a linq query that only gives me a slight error: linq query code: var context = GetDbContext(); var listadoV = from Ar in context.archivo wher...
asked by 22.06.2018 / 23:44
0
answers

Format of date VB.net EF

Function TraeConta(ByVal DAT_CODIGO As Integer, ByVal DAT_NRO_ORDEN As Integer, ByVal DAT_RUTPAC As Integer) As MIN_CONT_CONTACTADOS Dim cont As New MIN_CONT_CONTACTADOS Try...
asked by 11.06.2018 / 17:24
2
answers

Publish MVC project with visual studio 2017

Good day dear, I have a web application which I want to publish, I was looking at pages and tutorials where they publish them with the file system option but when I do it I get a warning that this option does not support the database, the appl...
asked by 16.05.2018 / 18:27
1
answer

How to create relationships in EF Core from an entity model

how can I create relationships with EF code Client - > Customer registration PersonalInformation - > Personal information of the client Payment History - > Condo payment reports public class Client{ [Key] public int Id { ge...
asked by 07.05.2018 / 20:54
2
answers

Select a list of two common related elements in sql with entityFramework and linq

I have a list of people that are related to a committee table and another table types person, I need to return the list of people of a committee and also return the list of people of a type note: return the people that I return from the relation...
asked by 27.07.2018 / 19:29
1
answer

Nested select on Entity Framework

I need to select the Entity Framework, the select I wish to do is: thanks.     
asked by 31.03.2018 / 23:55
0
answers

Insert data in entity many to many C # EntityFramework

I'm working on a small project, but I want to make an insert to an intermediate table that has the data from many to many. Database Diagram And this is the EntityFramework Diagram in Visual Studio     
asked by 01.04.2018 / 22:55