In the LINQ 101 examples, the Fold and EqualAll syntax no longer seems
to be supported. Has the syntax been changed or is this functionality
no longer available?
*** Sent via Developersdex http://www.developersdex.com ***
1. LINQ Fold and EqualAll - CSharp/C#
2. Do plugins give new functionality or different functionality?
When you create a system that takes "plugins," does that mean that your plugins give new additional methods that were not there in the original plugin interface previously or does it only mean that I have a set of interfaces that must be implemented and those new implementations are my new functionality? For example, if I have an IMath interface that has method signatures that are called add and subtract, take two numbers, you get the idea, does that mean that if I create a plugin that uses IMath, I only will be creating implementations of add and subtract? If I created a multiply and divide method, alongside my necessary add and subtract, in my plugin is that now not a plugin but something else? Is that just inheritance without the notion of plugin architecture, extension rather than expected implementation? Just trying to understand the fundementals. Thank you.
3. Question about LinQ (LinQ to Sql) - CSharp/C#
4. populate a DataSet via a LINQ query (Linq to XML)
Is there a way to populate a DataSet via a LINQ query?
(Linq to XML)
Instead of;
DataSet ds = new DataSet();
ds.ReadXml(myfile.xml, XmlReadMode.InferTypedSchema);
dataGridView1.DataSource = ds.DefaultViewManager;
dataGridView1.DataMember = "myNode";
Anthony
5. To LinQ or not LinQ - CSharp/C#
6. Combination of Linq to sql and Linq to xml
Hi folks I am pretty new to linq and in one of my first samples I tried to do the following: In my sample-database I have a table which has some columns and one of them has the type 'xml'. sample-data ID varcharcolumn1 varcharcolumn2 xmlcolumn 1 test test <xml><name>Test</name></xml> 2 test2 test2 <xml><name>nodata</name></xml> Is it possible to get all Rows where the xml-Column has a node 'name' with a Textnode that starts with 'T' using LINQ? Thanks Philipp Haenggi
7. Linq to SQL - Return DataTable as a result of Linq query - CSharp/C#
8. Mixing linq to sql and linq to xml (in linqpad)
Hi group,
In my database, I have a table with fields like this :
id | title | xml
------------------------------------
1 | title1 | <datas><data><item name="item1">value1</
item><item name="item2">value2</item></data></datas>
.....
I would like to filter my xml data, when it contains a item attribute
named item1
I'm using Linqpad with a request like that :
from i in myTable
where
i.xml.Descendants("data").Element("item").Attribute("name").Value ==
"item1"
select i
but, linqpad tells me that :
'System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement>'
does not contain a definition for 'Element' and no extension method
'Element' accepting a first argument of type
'System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement>'
could be found (press F4 to add a using directive or assembly
reference)
Is this possible ? How to correct it ?
Thanks in advance for any help