• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Class NCacheQuery<T>

Represents an IQueryable instance. Use this class to create a queryable object with the specified type T.

Inheritance
System.Object
NCacheQuery<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Alachisoft.NCache.Linq.dll
Syntax
public class NCacheQuery<T> : IQueryable<T>, IQueryable, IEnumerable<T>, IEnumerable
Type Parameters
Name Description
T

The type of the queryable object.

Constructors

NCacheQuery(ICache)

The constructor used to create a custom class LINQ object.

Declaration
public NCacheQuery(ICache cache)
Parameters
Type Name Description
ICache cache

This is an instance of cache interface that contains services and methods used to perform operations on the cache.

Examples

The following example creates a custom class LINQ object and performs a LINQ query to search the cache.

    
IQueryable <Product>= new NCacheQuery <Product> (cache);       
var result = from prod in products 
             where prod.ProductID > 1001
             select prod;          
if (result != null)
{
    foreach (Product product in result)
    {
         // Perform operations
     }
}   

Properties

ElementType

Gets the type of the element(s) returned when the expression tree associated with instance of System.Linq.IQueryable is executed.

Declaration
public Type ElementType { get; }
Property Value
Type Description
System.Type

Gets the type of the element(s) returned when the expression tree associated with instance of System.Linq.IQueryable is executed.

Implements
System.Linq.IQueryable.ElementType

Expression

Gets the expression tree associated with the instance of System.Linq.IQueryable.

Declaration
public Expression Expression { get; }
Property Value
Type Description
System.Linq.Expressions.Expression

Gets the expression tree associated with the instance of System.Linq.IQueryable.

Implements
System.Linq.IQueryable.Expression

Provider

Gets the query provider associated with the instance of System.Linq.IQueryable.

Declaration
public IQueryProvider Provider { get; }
Property Value
Type Description
System.Linq.IQueryProvider

Gets the query provider associated with the instance of System.Linq.IQueryable.

Implements
System.Linq.IQueryable.Provider

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>

An enumerator that iterates through the collection.

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

An enumerator that iterates through the collection.

Implements
System.Collections.IEnumerable.GetEnumerator()

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top