tags:

views:

7

answers:

0

This SubSonic Update Query:

var db = new Edumatic3DB();
var qry = db.Update<MetaDataKeyBooleans>()
    .Set(x => x.Name == metaDataKeyBoolean.name)
    .Set(x => x.DefaultValue == metaDataKeyBoolean.defaultValue);
if (metaDataKeyStructureId != -1)
{
    qry.Set(x => x.MetaDataKeyStructureId == metaDataKeyStructureId);
}
qry.Where(x => x.MetaDataKeyBooleanId == metaDataKeyBoolean.id).Execute();

Gives me an error saying that the MetaDataKeyBooleans object is invalid... It is not in dbo schema but in MetaData schema. Is there a way to solve this? Setting the Schema to MetaData?