Class DataSource
A factory class for creating data sources for queries
Inheritance
System.Object
DataSource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class DataSource
Methods
| Improve this Doc View SourceCollection(Collection)
Creates a data source for an IQuery that gets results from the given Collection(Collection)
Declaration
public static IDataSourceAs Collection(Collection collection)
Parameters
Type | Name | Description |
---|---|---|
Collection | collection | The collection to operate on |
Returns
Type | Description |
---|---|
IDataSourceAs | The source of data for the IQuery |
Database(Database)
[DEPRECATED] Creates a data source for an IQuery that gets results from the given Database(Database)
Declaration
[Obsolete("DataSource.Database is deprecated, please use DataSource.Collection")]
public static IDataSourceAs Database(Database database)
Parameters
Type | Name | Description |
---|---|---|
Database | database | The database to operate on |
Returns
Type | Description |
---|---|
IDataSourceAs | The source of data for the IQuery |