LINQ doesn't work
-
- Lieutenant (LT)
- Posts: 70
- Joined: Fri Jan 15, 2010 8:17 am
LINQ doesn't work
I can't get LINQ to work. I tried adding references, but still no go.
I'm using AbleCommerce version 7.0.4 build 13424.
Any ideas?
I'm using AbleCommerce version 7.0.4 build 13424.
Any ideas?
Re: LINQ doesn't work
What error/exception or some detailed information is been shown by that custom page?
-
- Lieutenant (LT)
- Posts: 70
- Joined: Fri Jan 15, 2010 8:17 am
Re: LINQ doesn't work
I tried adding:
using System.Linq;
but it's just not recognizing my LINQ expressions... I have:
It just says I'm missing a ";"
I tried putting it all in line and also ( )... but no go.
using System.Linq;
but it's just not recognizing my LINQ expressions... I have:
Code: Select all
GridView1.DataSource =
from city in cities
where city.Length > 4
orderby city
select city.ToUpper();
I tried putting it all in line and also ( )... but no go.
-
- Lieutenant (LT)
- Posts: 70
- Joined: Fri Jan 15, 2010 8:17 am
Re: LINQ doesn't work
Wait, it looks like it may have worked.
I had to add an old reference,
using System.Query;
and it looks like it works.
I had to add an old reference,
using System.Query;
and it looks like it works.
-
- Lieutenant (LT)
- Posts: 70
- Joined: Fri Jan 15, 2010 8:17 am
Re: LINQ doesn't work
I downloaded the CTP example (http://www.microsoft.com/downloads/deta ... laylang=en) and stole the DLLs from the example, added it to the project, and it worked. Interesting
Re: LINQ doesn't work
Personally I haven't tried LINQ in AbleCommerce anywhere but I don't see any problem of making it work in AbleCommerce. Hopefully you will be able to get your changes done without running into any AbleCommerce + LINQ compliance issue.
-
- Lieutenant (LT)
- Posts: 70
- Joined: Fri Jan 15, 2010 8:17 am
Re: LINQ doesn't work
Hopefully not!!
Re: LINQ doesn't work
Hi,
My business sells an AbleCommerce Linq compatible product list control, so you can use LINQ to query products. Most of the queries are already pre-packaged; newest products, products by keyword, featured products, products by vendor and etc. Here is a link:
http://www.ablesf.com/AbleSF-4-AbleComm ... n-P77.aspx
The tool is open source and there are no license keys.
Joseph Anderson
President, JMA Web Technologies
Owner, AbleCommerce Marketplace
info@jmawebtechnologies.com
http://www.jmawebtechnologies.com
My business sells an AbleCommerce Linq compatible product list control, so you can use LINQ to query products. Most of the queries are already pre-packaged; newest products, products by keyword, featured products, products by vendor and etc. Here is a link:
http://www.ablesf.com/AbleSF-4-AbleComm ... n-P77.aspx
The tool is open source and there are no license keys.
Joseph Anderson
President, JMA Web Technologies
Owner, AbleCommerce Marketplace
info@jmawebtechnologies.com
http://www.jmawebtechnologies.com