Questions tagged as 'entity-framework-6'

1
answer

Entity Framework and nvarchar

When the Entity Framework creates fields by default in a table of type string, use nvarchar . But I understand that nvarchar takes more space than varchar . Can the use of nvarchar double the size of a table? Is it reco...
asked by 22.08.2016 / 19:26
1
answer

Apply a property to discriminate an inheritance in the Entity Framework

Since I can choose a field as TipoOperacionId to be a discriminator, I have the following code. public MovimientoMap() { ToTable("Movimientos"); HasKey(c => c.MovimientoId); Property(c => c.MovimientoId...
asked by 25.08.2016 / 23:58
1
answer

Table-valued function

I need to create user-defined functions with table values, can I create from EF? Or do I only believe it by transaction sql and then represent it in the model? How would you work with EF in this case? Note: I am working with EF approach code...
asked by 12.05.2016 / 16:25
1
answer

void create and T createT

What is the difference between using void and T create Void does not return anything to me and T returns an entity to me, is the use of both is according to the scenario I have, should I use one or the other? It would bring me complication...
asked by 01.04.2016 / 22:03
1
answer

How to create tables with EntityFrameworks and that are added to the model by code? [closed]

I am developing a Human Resources System, where I have used EntityFrameworks, get to the part that I need to create Tables through the application and be able to use them later. Can You Create Tabas Dynamically with EF? What would be the Code?...
asked by 22.12.2017 / 20:17
1
answer

How to delete in cascade in entity framework asp.net mvc

Good afternoon, I have the following relational diagram I have a problem, when deleting a record from the table Tbl_Horarios does not leave me, because it is related to more than one record in the Tbl_DetalleHorario table. How can I...
asked by 12.12.2017 / 20:40
1
answer

Help in saving image in SQL database MVC 5 and Entity 6.0

hello very good to all I come to you to ask for help that the truth is not how to solve it I created a CRD envisual studio 2013 that uses MVC 5 And entity 6.0 how can I upload an image from my CRUD created with MVC5 and save it in a sql database...
asked by 09.09.2017 / 21:49