18 May 2009
09 Jun 2009
Link to this post
I'm creating a custom module (pluggable) and decided to use Nolics.net
for data access. I followed the instructions in your developer
documentation for creating a Nolics.net data access project. The
documentation says that Nolics.net will automatically read the
connection string used for Sitefinity, yet it appears that the data
connection still needs to be initialized. Without doing any
initialization I receive the following exception when trying to load
data from the module:
The database class Foo.Data.TestData has
not been registered. Use DataConnection.Initialize or
DataConnection.RegisterAssembly to register an assembly.
I added code to initialize the DataConnection in the initialization of my module, but now I receive the following exception:
There is no data provider for class Foo.Data.TestData. Did you forget to connect?
Could you give an example of exactly where and how the DataConnection
needs to be initialized in order for Nolics.net to use the Sitefinity
database for a custom module. Also, is there any additional code that
needs to be added to ensure that Nolics.net automatically upgrades the
database schema to match the data classes?