I have this piece of code that works fine in subsonic 2.2, I migrated to subsonic 3
but now i get this error 'Object of type 'System.Byte[]' cannot be converted to type 'System.String'.'
subsonic 2.2 code in comment
public IList<Tag> Tags
{
get
{
return Tag.Find(t => t.TypeId == 1 && t.ItemID == JobId).ToList();
// new TagCollection().Where(Tag.Columns.TypeId, 1)
// .Where(Tag.Columns.ItemID, JobId).Load();
}
}
Where TypeId and ItemId are int
how can this be fixed ?
Best Answer
Are you using the latest version (3.0.0.1), what you're reporting looks very similar to:
Subsonic 3: Invalid cast from 'System.Byte' to 'System.Byte[]'
Also which database are you using?