Page 1 of 1

Bug in code generation with key fields

Posted: Sat 16 May 2009 15:19
by lindholm
Every table in my database has a primary key, but when I generate the code, some of the objects are created without primary keys. Not all, but some.

All the tables have the same primary key name, and it is declared the same in every table, this is very strange, and unfortunately you can't tell until you hit an exception when you try to add a record.

Posted: Mon 18 May 2009 11:51
by AndreyR
Could you please specify the version of dotConnect you use?
Please also provide us with two scripts: one for a table containing a primary key in the model
and another one for a table not containing a primary key.

Info

Posted: Wed 27 May 2009 13:07
by lindholm
I am using 200.18 just redid it today.

I can't get a simple example that fails, and I can't send our entire database schema. I will keep trying to get a small example that duplicates the problem. We currently have 462 tables in our schema plus views.