public bool ListExists(SqlCeOfflineEntity entity)
{
var list = (List)entity;
using (var command = new SqlCeCommand())
{
command.Connection = GetSqlCeConnection();
command.CommandText = GET_LIST;
command.Parameters.Add("@ID", SqlDbType.UniqueIdentifier).Value = list.ID;
object result = command.ExecuteScalar();
return result != null;
}
}