Questions tagged [LINQ] (77)

0
answer

Let's get nuts :) LINQ 2 Modbus. Complete nonsense or maybe something?

Nothing better to do (well, of course, work work — it will not be canceled, but something have) started to think: what else is there — I mean in the world -and would be if not useful (agree, do not always need to write for use), then at least fun to implement. Since my work is associated with a process control system, makin...
Caterina74 asked October 14th 19 at 10:53
4
answers

Sorting in LINQ to SQL

There is a task to display a... well, for example products in the Internet section of the store. Using LINQ to SQL. Write code similar to this: List lstGoods = DataContext.Sections.Where(x=>x.id = iMySectionId).First().Goods.Take(iPageSize).ToList(); The problem is that the goods should be ordered. Code is converted t...
Vince_Donnelly asked October 10th 19 at 09:39
1
answer

LINQ in a new application domain (AppDomain)

Is there anyone have any idea why JIT compilation of the same LINQ query takes 4 times more time in a new domain (child AppDomain) than in the main (default AppDomain)?
sherwood.Dibbert asked October 10th 19 at 08:05
3
answers

How to make friends .net'ovsky linq2sql with hranimoj that returns different types of tables

There are hranilki of view: <br / > IF @AccessEnabled = 1<br> BEGIN<br> IF @StartDate is null<br> SET @StartDate = '01/01/1900'<br> IF @EndDate is null<br> SET @EndDate = GETDATE()<br> IF @ReportType is null<br> SET @ReportType = 1<br> <br / > IF @ReportTyp...
herman.Marvin asked October 10th 19 at 05:44
1
answer

Complex nested linq query?

Welcome. There is a classpublic class MasterClass { public property1 {get; set } .. public virtual List<embeddedclass> EmbeddedClass {get; set } .. }</embeddedclass> there is a nested classpublic class EmbeddedClass { public property1 {get; set } .. public virtual ExternalProperty ExternalProperty {get; set } ....
Isaias.Ki asked October 3rd 19 at 05:15
6
answers

[LINQ TO XML] How to get all items from a document?

Need to get all elements from a document in the form of IEnumerable. About the function Elements() I know, but it returns only a child of any element. And I need fully all that is.
Arnoldo.Lockman89 asked October 3rd 19 at 01:47
2
answers

As for Linq in areas such as the query case-insensitive?

Hello. trying to do a query like:string word = search_txbx.Text.; ObservableCollection<model.game> games = _ViewModel.Games; var query = from db in games where db.name.Contains(word) select db; games_dgrd.ItemsSource = query;</model.game> Everything works. But case-sensitive. How do I query case insensitiv...
Cathryn.Johns67 asked October 2nd 19 at 16:06
1
answer

LINQ, BY GTOUP. How to select a group having a maximum characteristic?

var modelData = (from data in сontext... join ... join ... where ... group new {a, b, c } by new {d, e, f, Date} into groups where to Choose the group which has maximum date select new T { ... } ).ToList(); You must choose the group which has maximum date. Something I really fucked up, I need your help.
Esta.Glover92 asked October 2nd 19 at 13:41
2
answers

How to get data from DataSet?

Currently trying to get data from the connected DataSet. Connected DB via the data Sources, the data was successfully added to the database using the TableAdapter. Now I want to take the data from this database using DataSet by using LINQ. But the Internet and all examples start with the fact that the DataSet is created and...
paig asked September 27th 19 at 17:37
1
answer

Where to start learning LINQ and SQL ?

Hello, I recently learned that the System.Linq; since 2008, used for working with data. Honestly, I have no idea about LINQ and SQL, but I need to know how to use a database and LINQ. Which websites or literature You can recommend me? Or where do I start to learn C# with DB? Thanks for the help. :)
florine asked September 26th 19 at 05:09