ssteenkiste / nettiers

Automatically exported from code.google.com/p/nettiers
1 stars 0 forks source link

Naming conflicts with reserved keywords... #339

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Another developer on my team just encountered this issue on the current project 
and I had encountered it in the past as well... 

He was trying to create tables called [TableName] and [ColumnName] which would 
hold some meta-data to drive application functionality...  

When you use names such as these, the generated classes can conflict with other 
NetTiers classes, etc... 

I had at one point designed a data-model that used [Database] as a table name 
and found the same type of issue... there are certain keywords that will cause 
the generated code to have naming conflicts that will then fail to compile...

The templates need to check table/view names against a list of reserved names 
and fail to generate (bomb/prompt user) rather than producing code that will 
fail to compile...

Original issue reported on code.google.com by bh...@questis.com on 17 Sep 2010 at 5:01

GoogleCodeExporter commented 9 years ago
Hello,

One would need to update the keyword list in the code behind file or update the 
mapping file. I'll add this as a 3.0 feature change.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 21 Sep 2010 at 12:23