-
as seen on C# Corner
- Search for 'C# Corner'
This article demonstrates how to use LINQ on DataTable, XML Data using LINQ to XML and SQL server data base using LINQ to SQL Classes.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am running a query using Linq2SQL that comes down to following query:
DateTime? expiration = GetExpirationDate();
IQueryable<Persons> persons = GetPersons();
IQueryable<Items> subquery = from i in db.Items
where i.ExpirationDate >= expiration
…
>>> More
-
as seen on ASP.net Weblogs
- Search for 'ASP.net Weblogs'
The way data can be retrieved in .NET. LINQ provides a uniform way to retrieve data from any object that implements the IEnumerable<T> interface. With LINQ, arrays, collections, relational data, and XML are all potential data sources. Why LINQ?With LINQ, you can use the same syntax to retrieve…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a Logic layer that references Silverlight's System.Xml.Linq dll and a GUI that is in WPF (hence using the non-Silverlight System.Xml.Linq dll). When I attempt to pass an XElement from GUI project to a method in the Logic project, I am getting (basically) "XElement is not of type XElement" errors…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I am using SQL Server 2005 in a project. I have to decide about datalayer. I would like to use LINQ in my project. I saw SubSonic 3 supporting LINQ and I also have option for LINQ to SQL, because i can have typed lists from LINQ to SQL.
I am wondering what is different between LINQ to SQL and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I'm writing an Expression Parser to make my API more refactor friendly and less error prone.
basicaly, I want the user to write code like that:
repository.Get(entity => entity.Id == 10);
instead of:
repository.Get<Entity>("Id", 10);
Extracting the member name from the left side…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello, is there any way how to return lambda from another lambda recursively?
All I want to do is finite state machine, implemented as lambda, which returns lambda implementing another state (or null).
nesting Func< won't work as I want.
C#, .NET 3.5
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I have following query on lambda calculus which am not able to understand:
Here is the lambda calculus representation for the AND operator:
lambda(m).lambda(n).lambda (a).lambda (b). m(n a b) b
Can anyone help me in understanding this representation?
Regards,
darkie
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to implement method Find that searches the database.
I want it to be like that:
var user = User.Find(a => a.LastName == "Brown");
Like it's done in List class. But when I go to List's source code (thanks, Reflector), I see this:
public T Find(Predicate<T> match)
{
if (match…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I have following query on lambda calculus which am not able to understand:
Here is the lambda calculus representation for the AND operator:
lambda(m).lambda(n).lambda (a).lambda (b). m(n a b) b
Can anyone help me in understanding this representation?
Regards,
darkie
>>> More