Storing non-content data in Orchard

Topics: General
Mar 17, 2012 at 9:52 PM

Hi,

I am trying to save some data into the database. I am doing what's mentioned in this article,

http://weblogs.asp.net/bleroy/archive/2011/02/21/storing-non-content-data-in-orchard.aspx

But I get this exception - NHibernate.Id.IdentifierGenerationException: attempted to assign id from null one-to-one property: ContentItemRecord, at the line where I call the _repository.Create() function.

I am not sure what the exception message means - "attempted to assign id from null one-to-one property: ContentItemRecord". SettingsRecord table has an Id field, SettingsRecord model has a Id property.