I use visual C# express and I need to do some SQL to object mapping...
It seems I can't find System.Data.Linq.Mapping to define my Table and Column attributes...
I looked at my references and only found System.Data.Linq...
Is this a disabled feature for visual C# express ?
ThanksSaturday, May 31, 2008 6:48 PM
Add a reference to System.Data.Linq.Mapping assembly, then import the namespace and you should have access to the classes in that namespace
so right click on your references in your project in solution explorer > add "System.Data.Linq" .NET assembly then...
System.Data.Linq.Mapping is the namespace
Remember, this is available in VS Express 2008 since this is a .NET 3.5 featureSaturday, May 31, 2008 7:00 PM
Okay... So what did I miss there ?
ThanksSaturday, May 31, 2008 8:02 PM
haha! odd isn't it?
have you tried this on a new project and seeing what happens? What about if you rebuild your project without errors then re-adding the reference?
I'm sorry, I wish I had the answer to this question. I am having the same problem. System.Data.Linq.Mapping is not in the references drop down. I am curious if this problem is resolved. If someone out there has an answer I would be most appreciative. Thanks!Thursday, July 09, 2009 12:01 PM
BigTime, it works for me (in C# express 2008) if I do the following two things:
1) Add System.Data.Linq to the references in the Solution Explorer, as Pierreact did.
2) Put "using System.Data.Linq.Mapping;" into the using list in my .cs file.
It seems that System.Data.Linq in the references allows using its sub-namespaces in the using clause.
Friday, July 31, 2009 10:28 AM
- Edited by Rabiator Friday, July 31, 2009 10:29 AM typo