Joe,
Here's a snippet of our code that shows you how to do what I think you
are asking. AirBoundCache is just a custom object of ours.
Matt
string sql = "SELECT Class, Name, Type, Id, Placemark, AsText(Geom) as
geom FROM AirBoundCache as point; "
using (SQLiteCommand cmd = new SQLiteCommand(sql, _conn))
{
using (SQLiteDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
AirBoundCache a = new AirBoundCache();
a.Class = reader["Class"] == DBNull.Value ? (string)null :
reader["Class"].ToString();
a.Name = reader["Name"] == DBNull.Value ? (string)null :
reader["Name"].ToString();
a.Type = reader["Type"] == DBNull.Value ? (string)null :
reader["Type"].ToString();
a.Id = Convert.ToInt32(reader["Id"]);
a.Placemark = reader["Placemark"] == DBNull.Value ?
(string)null : reader["Placemark"].ToString();
a.Geom =
reader["geom"] == DBNull.Value ? (string)null :
reader["geom"].ToString();
AirBoundCaches.Add(a);