Class SqliteFeatureLayer
This class represents a FeatureSource backed by SQLite.
public class SqliteFeatureLayer : FeatureLayer
- Inheritance
-
SqliteFeatureLayer
- Inherited Members
Remarks
None
Constructors
SqliteFeatureLayer()
This is the constructor for the class.
public SqliteFeatureLayer()
SqliteFeatureLayer(SqliteConnection, string, string, string)
public SqliteFeatureLayer(SqliteConnection connection, string tableName, string featureIdeColumn, string geometryColumnName)
Parameters
SqliteFeatureLayer(string, string, string, string)
This is the constructor for the class.
public SqliteFeatureLayer(string connectionString, string tableName, string featureIdColumn, string geometryColumnName)
Parameters
connectionString
stringThis parameter represents the connection string to connect to the server.
tableName
stringThis parameter represents the table name being accessed.
featureIdColumn
stringThis parameter represents the name of the column that holds the unique feature Id.
geometryColumnName
string
Remarks
None
Properties
CommandTimeout
public int CommandTimeout { get; set; }
Property Value
ConnectionString
This property gets and sets the connection string used to connect to the server.
public string ConnectionString { get; set; }
Property Value
- string
This property gets the connection string used to connect to the server.
Remarks
None
FeatureIdColumn
This property gets or sets the name of the column that holds the unique feature Id.
public string FeatureIdColumn { get; set; }
Property Value
- string
This property gets the name of the column that holds the unique feature Id.
Remarks
None
GeometryColumnName
public string GeometryColumnName { get; set; }
Property Value
HasBoundingBox
This property checks to see if a Layer has a BoundingBox or not. If it has no BoundingBox, it will throw an exception when you call the GetBoundingBox() and GetFullExtent() APIs. In SqliteFeatureLayer, we override this API and mark it as true.
public override bool HasBoundingBox { get; }
Property Value
Remarks
The default implementation in the base class returns false.
TableName
This property gets or sets the table name the database will use.
public string TableName { get; set; }
Property Value
- string
This property gets the table name the database will use.
Remarks
None
WhereClause
public string WhereClause { get; set; }
Property Value
Methods
ExecuteNonQuery(string)
This method executes a query that does not return a SQL result.
public int ExecuteNonQuery(string sqlStatement)
Parameters
sqlStatement
stringThis parameter represents the SQL statement that will be executed.
Returns
- int
The number of records effected.
Remarks
This methods executes a query that has no results.
GetFirstGeometryType()
public WellKnownType GetFirstGeometryType()