Questions tagged as 'linq'

1
answer

How to go through this list?

I have a list with this structure called InputText : Which I try to go through with this code: public void MoveTo <T> ( Page pag , Object obj) { var InputText = pag.ChildControls().OfType<T>().ToLis...
asked by 15.05.2018 / 09:56
2
answers

how to make a query that compares two data of a table in LinQ

Hello developers I have a problem turns out that I am doing an update in linQ and for it I have to compare two data so that the update is correct (since one of these data is repeated in my table) but it turns out that linq does not let me compar...
asked by 30.04.2018 / 15:27
1
answer

How to upload files in MVC C # on the cell phone?

I am making a form in which you have to take a picture and answer on a cell phone. I have researched the best thing that I found is to use HttpPostedFileBase but I get the null parameter on the Internet I have seen examples with only the image b...
asked by 09.04.2018 / 20:21
1
answer

How to get a linq log in asp.net core?

I do the following query with linq, but I can not get that id that I retrieve in the query. var seccionGrado = (from sg in _context.SeccionGrado where sg.IdSeccion == user.IdSeccion...
asked by 24.02.2018 / 00:50
1
answer

Hide @ Html.ActionLink in @foraech with Razor

My problem is that I want to hide the @Html.ActionLink from this view: <table class="table"> <tr> <th> @Html.DisplayNameFor(model => model.Subject.Name) </th> <th> @Html.DisplayNameF...
asked by 03.04.2018 / 03:03
1
answer

Does not show a query data in the view

I'm working with C # ASP.NET MVC5, I'm new to this technology, I'm doing a web page where I need to display data from three tables in the view, I show them the structure of the database. log table |-----------------|-------------------|--...
asked by 26.12.2017 / 17:54
1
answer

Query in LINQ, How to concatenate fields

Good afternoon, I have the following left join var innerJoin = from emp in db.Tbl_Empleado join mb in db.Tbl_MarcacionesBiometrico on emp.EmpId equals mb.EmpId into MarcBio...
asked by 30.11.2017 / 00:00
1
answer

C # You can not implicitly convert a value of an attribute of a class

XML file with the parsing of a document based on constituents which can have nested nodes (sub-trees of any depth). <document> <wordcount>181</wordcount> <cputime>0.084678</cputime> <paragraph> <...
asked by 06.10.2017 / 17:23
2
answers

Modify queries made by the scaffolding first database

I tell you a bit about my problem. By my boss's requirements I had to make an application using the first database technique and then use scaffolding (which I do not like). I was used to doing linq queries and calling them in my controller, n...
asked by 17.07.2017 / 17:47
1
answer

Delete Record LINQ to ENTITY

I try to delete a record in this way: var cSelect = from x in contexto.BloqueoExcursion where x.BLE_BloqueoID == BloqueoID select x; foreach (var item in cSelect) { v...
asked by 11.08.2017 / 01:55