Page 1 of 1
LINQ doesn't work
Posted: Tue Mar 16, 2010 10:23 am
by michael.p.larsen
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?
Re: LINQ doesn't work
Posted: Tue Mar 16, 2010 10:26 am
by mazhar
What error/exception or some detailed information is been shown by that custom page?
Re: LINQ doesn't work
Posted: Tue Mar 16, 2010 10:31 am
by michael.p.larsen
I tried adding:
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();
It just says I'm missing a ";"
I tried putting it all in line and also ( )... but no go.
Re: LINQ doesn't work
Posted: Tue Mar 16, 2010 10:35 am
by michael.p.larsen
Wait, it looks like it may have worked.
I had to add an old reference,
using System.Query;
and it looks like it works.
Re: LINQ doesn't work
Posted: Tue Mar 16, 2010 10:38 am
by michael.p.larsen
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
Posted: Tue Mar 16, 2010 10:59 am
by mazhar
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.
Re: LINQ doesn't work
Posted: Tue Mar 16, 2010 11:05 am
by michael.p.larsen
Hopefully not!!
Re: LINQ doesn't work
Posted: Fri Mar 04, 2011 11:10 am
by joea84
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