Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Overloads Shared Function With(Of TQuery As IEntityQuery)( _ ByVal query As TQuery, _ ByVal qs As QueryStrategy _ ) As TQuery |
Visual Basic (Usage) | ![]() |
---|---|
Dim query As TQuery Dim qs As QueryStrategy Dim value As TQuery value = EntityQueryExtensions.With(Of TQuery)(query, qs) |
C# | |
---|---|
[ExtensionAttribute()] public static TQuery With<TQuery>( TQuery query, QueryStrategy qs ) where TQuery: IEntityQuery |
C++/CLI | |
---|---|
[ExtensionAttribute()] public: static TQuery^ Withgeneric<typename TQuery> ( TQuery^ query, QueryStrategy^ qs ) where TQuery: IEntityQuery |
Parameters
- query
- qs
Type Parameters
- TQuery
C# | ![]() |
---|---|
var mgr1 = new DomainModelEntityManager(); var query1 = mgr1.Customers.Where(c => c.Country == "UK"); var query2 = query1.With(QueryStrategy.CacheOnly); |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family