Questions tagged as 'entity-framework'

1
answer

Retrieve an object in Entity framework (.NET) [closed]

I need to recover a single object from the database because I want to load some special options on that record but the most I get is to generate a list. Would you have any chance of getting that record?     
asked by 03.03.2016 / 14:24
3
answers

Detail of an item of different models in entity framework

I'm really new programming and I'm constantly encountering problems, I currently have a table where I put data related to students, house row has a button that allows me to see more information related to the student but there is also related in...
asked by 15.11.2018 / 00:14
1
answer

Execute a stored procedure with Entity FrameWork?

I am trying to execute an SP that does not return a result (it does not generate any complex type or entity), but this does not appear as a function in the context of the EF, I need some step or in what way I can execute it, this SP It has input...
asked by 03.08.2018 / 18:08
1
answer

save variable without being "cleaned" when doing return view C #

I have a small problem, it turns out that I am doing two filters in my project (One by date and the other by company). The filter by date works perfect I change it by date and it filters well but that date that I send it I want it to be stored i...
asked by 17.07.2018 / 18:33
1
answer

Show in details a list of ALL the materials that belong to two tables that have a one to many relationship with MVC 5 and EntityFramework

Greetings to all I am new to MVC and I have a problem to show the following model, the table OutMaterial stores the permissions on some kind of material that goes out, the table OutlineMaterial stores specifically the materials that are...
asked by 03.07.2018 / 19:49
1
answer

SQL query in EntityFramework

I want to do manual sql queries but using the .net entity framework. ex: select from database where id == 20 ; and no: Item algo = new Item(); algo.name = algo.lastName = algo.Add(); understand me ????     
asked by 20.06.2018 / 20:58
2
answers

help with entityframework query when showing relationships

Hello friends, I appeal to you to solve the following question I have two entities named MtoProcedimientos and MtoZonas Mtoprocedures has the following relationship public int MtoProcedimientoId { get; set; } public virtual ICollection&l...
asked by 31.05.2018 / 17:58
1
answer

byte attribute [] entity contains Linq string

Good friends, I am new to Entity and Linq and I have a problem that I can not solve. In a query I have to check if a byte [] attribute contains a string that they pass to me. I have tried a thousand ways and it does not work, and finally u...
asked by 09.11.2017 / 18:47
1
answer

Entity Framework how to access the data model without saving the credentials and settings in the app.config

Please cooperate with the following problem: Always work with EF EDMX, when creating the floor model, type the options "Yes, include confidential data in the connection string" and also the "Save connection settings in App.Config as:", but in...
asked by 03.03.2017 / 20:39
1
answer

Do not cascade in Entity Framework

I have a question that I have not been able to resolve. If I have for example a class person and this is related to an address, in a separate table, one by one, then I create a person object, I set its address object and when saving with save...
asked by 15.03.2017 / 23:53