Returns an IQueryable of the given IData interface. If no storage supports the given IData interface, an exception is thrown.

Namespace: Composite.Data
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public IQueryable<TData> Get<TData>()
where TData : class, IData
Visual Basic
Public Function Get(Of TData As {Class, IData}) As IQueryable(Of TData)
Visual C++
public:
generic<typename TData>
where TData : ref class, IData
IQueryable<TData>^ Get()

Type Parameters

TData
An IData interface

Return Value

Returns an IQueryable of the given IData interface for further querying

Examples

CopyC#
using (DataConnection connection = new DataConnection())
{
   var q = 
      from d in connection.Get<IMyDataType>()
      where d.Name == "Foo"
      select d;
}

See Also