Questions tagged as 'entity-framework'

0
answers

Problem generating files within a ZIP

I have generated this method with the parameters brought from my database management class, the problem is that I can generate my ZIP file without any problem but I do not have any html file. public static string Execute(Models.ReportTibaTime...
asked by 05.12.2016 / 15:53
0
answers

Oracle - Entity Framework - Stored Procedures - Cursors

Any ideas to solve the following: Current Scenario. I have stored procedures in Oracle which return the result of a Select in a cursor. This procedure is mapped with EF, which automatically generates a complex class based on the cursor column...
asked by 18.11.2016 / 15:15
1
answer

One-to-one relationship in Entity Framework mvc

I have two entities, Service and Contract, their relationship must be one to one. the requirement is simple. how can I achieve this by means of data annotations or fluent api. the following is the code that I have (Entity Service) [ForeignK...
asked by 23.11.2016 / 19:31
1
answer

Entity framework directives

I'm in MVC 4.5 and I was looking at the entity framework model and stretching a table to see the full name and save the file (there were really no changes). But in the whole project where I refer to entity framework I get this error. Error 2...
asked by 11.08.2016 / 15:59
1
answer

Assign Cursor to List

How can I assign the results of a cursor to a List using SQL Server and Visual Studio ? The cursor is in a stored procedure, which must be called from the Controller: Stored Procedure CREATE PROCEDURE Lista_mun...
asked by 13.09.2016 / 07:16
1
answer

create SP in BD from EF

I know that from Entity Framework you can create a model and based on this model create a DB in a Database Management System, but in my case I require that at the time of creating the model you can also create functions that later based on this...
asked by 07.07.2016 / 17:52
1
answer

Entity Framework approach code firts

I want to use EF the Code Firts environment, I see on the web that there are two ways a simple one that only creates the DbSet runs and the database is created. public class CompanyContext : DbContext { public CompanyContext() : base("Comp...
asked by 31.03.2016 / 03:32
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

dynamically change the connection of a dbcontext

I need to change the connection (Server and / or database) when creating a new DBContext instance of EF6.0 I'm working with VB.Net from Visual Studio 2017 Does anyone know how to do it? Thank you so much regards Francisco     
asked by 22.06.2017 / 23:44