Namespace scavenger hunt

Posts   
 
    
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 06-Oct-2008 08:51:18   

Can we make it rule to not have documentation about extension methods without stating what namespace it's defined in? That'd be handy coz I've never once seen intellisense figure this out by itself.

Where does "ExcludeFields" live?

Linq to LLBLGen Pro supports the exclusion and inclusion of fields (Adapter, SelfServicing). This is done through the extension methods ExcludeFields and IncludeFields. Using these methods, the developer can specify which fields to exclude in an entity fetch (ExcludeFields) or which fields to use (IncludeFields). The following example illustrates how to exclude two fields from an entity fetch.

I have these namespaces currently

using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Shivam.TradeTerminal.DAL.Linq;
using Shivam.TradeTerminal.DAL.EntityClasses;
using Shivam.TradeTerminal.DAL.HelperClasses;
using Shivam.TradeTerminal.DAL;
using SD.LLBLGen.Pro.LinqSupportClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 06-Oct-2008 12:11:42   

It's in the SD.LLBLGen.Pro.LinqSupportClasses namespace, and the intellisense shows it.

I don't know how come you have een using the correct namespace and your intellisense didn't show it.

Does it at least compile?

worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 07-Oct-2008 01:35:52   

...ok. I restarted visual studio and it came up. Oops frowning