Questions tagged as 'code-first'

4
answers

How to call a stored procedure from the Entity Framework 6 code first

I'm trying to call this stored procedure from C # alter PROCEDURE GetLecturasEnRangoDeFechas -- Add the parameters for the stored procedure here @fecha as smalldatetime, @idParteMaquina int, @inicio int, @inicioMasDuracion int, @dia smalldatet...
asked by 11.01.2016 / 17:44
2
answers

How to fix error Add-Migration connectionstring null

The message is the same despite the fact that I saw other similar questions. Later I put other images to see how the appsettings and context are. appsettings.json. { "ConnectionStrings": { "DefaultConnection": "Data Source=RACPA...
asked by 02.10.2018 / 07:56
0
answers

Read a database with Entity Framework with Read Only permissions?

I'm doing a webservice using a WCF project and EF6 Code First and DB Firts, however the permissions that I have on an Oracle database are read only, is there any way to process that DB with entity? to know the restrictions of each column of a ta...
asked by 09.03.2018 / 23:22
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

Error trying to make a scaffold using entity framework code first c #

If someone could help me with the mistakes in the photo the classes are these public class RobotDog     {         public int Id {get; set; }         public string Name {get; set; }         public bool Armed {get; set; }         public virt...
asked by 30.05.2018 / 19:50
1
answer

Change column automatically EF

I have a field called Status: which can receive 3 values. How could the value of that field change depending on the condition of another field that is in my database? I am using entity framework 5 EF. Let's imagine that I have the following m...
asked by 08.08.2018 / 14:44