C# – SubSonic 2.2 Class Generation

csubsonicsubsonic2.2

I am using SubSonic on a project with many tables which were created by a sourcecode generator. I noticed Some classes created by SubSonic were generated without code and have the folowing message

The class...was not generated because ... does not have a primary key.

Is there any way for me to get the code to be generated without adding keyes to all the tables?

Thanks

Best Answer

Add primary key to table. You can create an auto-increment int field as primary key.

This happens with almost every database layer code generator, because without primary key it cannot generate edit/delete functionality.

Related Topic