I just hit a minor snafu - I'm sure I'll work around it, but thought you may like to know.
Calling the ServiceStack.OrmLite
- Code: Select all
Db.Single<DB_CustomSetting>()
Causes the following exception:
- Code: Select all
Invalid column name 'SY_Plugin'.
Invalid column name 'DB_CustomSettingValues'.
Some investigation shows that:
- Code: Select all
public class DB_CustomSetting
{
...
public virtual SY_Plugin SY_Plugin { get; set; }
public virtual ICollection<JiwaFinancials.Jiwa.JiwaApplication.DB_CustomSettingValues> DB_CustomSettingValues { get; set; }
}
It seems that:
- Code: Select all
public class DB_CustomSetting
{
...
[IgnoreDataMember]public virtual SY_Plugin SY_Plugin { get; set; }
[IgnoreDataMember]public virtual ICollection<JiwaFinancials.Jiwa.JiwaApplication.DB_CustomSettingValues> DB_CustomSettingValues { get; set; }
}
I am guessing this could be a cross cutting issue across many entities.
Cheers,
Neil.