Steve Cook's WebLog

LINQ and DSL Tools

I've been playing with DSL Tools and the LINQ preview.  Apparently the LINQ preview contains an obsolete version of the DSL redist, used for the DLINQ designer.  This means that installing the LINQ preview will break your DSL Tools: the symptom is that text templating fails.  The workaround is straightforward; either install LINQ before you install the VS SDK, or reinstall/repair the VS SDK after you install LINQ.  This will probably break the preview DLINQ designer, though.

Anyway, once you've got it working, you can write LINQ code that runs against a DSL store: 

 var elements = from e in model.Elements where e.Name.Length < 5 orderby e.Name ascending select e;

This will help to write constraints!

Published Friday, January 12, 2007 11:46 AM by Steve Cook
Filed under:

Comments

 

Lorenzo Barbieri @ UGIblogs! said:

January 12, 2007 7:38 AM
New Comments to this post are disabled

This Blog

Syndication

News

Locations of visitors to this page
Disclaimer

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the author’s discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.


© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker