I am using SubSonic (v3.0.0.3) to do simple object mapping with SimpleRepository to SQLite. Everything works fine with Properties of type string, DateTime, Guid and int. When I try to add a bool (or Boolean) Property to the object, I can add it to the database just fine, but when I try to retrieve it, I get the following error message:
"Object of type 'System.Byte' cannot be converted to type 'System.Boolean'."
I've tried retrieving the data a few different ways. Here are some examples (which work when the object in question does not have any bool Properties):
var myObjs = repo.All<MyObj>();
OR
var myObjs = from m in repo.All<MyObj>()
orderby m.Title
select m;
I am not sure if this is a bug, or if I am doing something wrong. Is anyone else able to map this data type to SQLite using SimpleRepository?
Thanks!
C