Returns an IQueryable of the given IData interface.
If no storage supports the given IData interface, an exception is thrown.
Namespace: Composite.DataAssembly: Composite (in Composite.dll) Version: 5.3.6135.33083
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 queryingExamples
CopyC#
using (DataConnection connection = new DataConnection()) { var q = from d in connection.Get<IMyDataType>() where d.Name == "Foo" select d; }