Hi all,
I'm trying to get started with Castle ActiveRecord (following the "Getting started with ActiveRecord" screencast).
I created two ActiveRecord classes, one of them named User
. I added the relevant strings to the app.config
file, and I initialize using:
var config = ActiveRecordSectionHandler.Instance;
ActiveRecordStarter.Initialize(typeof(User).Assembly, config);
ActiveRecordStarter.CreateSchema();
Unfortunately, when I run this, I get the following exception:
Unhandled Exception: Castle.ActiveRecord.Framework.ActiveRecordException: Could not create the schema ---> NHibernate.HibernateException: Incorrect syntax near the keyword 'User'. ---> System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'User'
I uploaded a small reproduction to http://bitbucket.org/hmemcpy/general, could someone please tell me what have I done wrong?
Thanks!