Page 1 of 1

Generated code for SQL Server db won't build

Posted: Tue 08 Apr 2014 15:20
by gregors613
I took an existing database, created a database first model, generated code and it won't build. There are lots of errors like the following
[DCC Error] AsiDataModel.MetaData.pas(1384): E2003 Undeclared identifier: 'dbInteger'
[DCC Error] AsiDataModel.MetaData.pas(1385): E2003 Undeclared identifier: 'dbString'
[DCC Error] AsiDataModel.MetaData.pas(1391): E2003 Undeclared identifier: 'dbDateTime'

so it looks like there is a unit that wasn't included in the generated code. Any idea how to fix this so I can carry on trying the beta?

Re: Generated code for SQL Server db won't build

Posted: Wed 09 Apr 2014 08:59
by AlexP
Hello,

These types were in the beta version 1.0.2, the corresponding types in the version 1.0.3 are: etInteger, etString, etDateTime. To solve the problem, you should regenerate your model in the latest EntityDeveloper version.

Re: Generated code for SQL Server db won't build

Posted: Wed 09 Apr 2014 13:07
by gregors613
I am using 1.0.3 ( and to make sure I just downloaded and re-installed the current version from the web site )

Re: Generated code for SQL Server db won't build

Posted: Thu 10 Apr 2014 08:37
by AlexP
Thank you for the information. We will try to upload the new version with the fixed templates in EntityDeveloper today.