After watching the great webinar about creating your own modules. I have tried the code out in my own system. First, i used the code from the sitefinitywatch web site. It worked like a dream.
Then i tried to create my own module based on that code. Starting with a simplified version of it. Just one table with an ID and a Name.
I am encountering a strange error when tyrying to add a new item.
Cannot insert the value NULL into column 'Id', table 'testProject.dbo.test_Restaurants'; column does not allow nulls. INSERT fails.
I have the autogenerate of id set to true, like this:
Column(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
So it should work. Any idea what it could be?