jonpryor / dblinq2007

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

DMetal is not conform to MSLinqToSQLGenerator #291

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

A DBML generated with VisualStudio may have Columns without Member attribute, 
in this case DMetal crashes. When Member is not specified this is the Name 
attribute that must be used.

Moreover, when using a custom class to match SQL type, the attribute Type is 
not recognized by DBMetal. In CodeDomGenerator.GenerateTableClass() the 
fieldType is null.
When creating the CodeBinaryOperatorExpression condition we can test if 
fieldType is null and if column type's name stars with "global".

Regards.

Ghislain

Original issue reported on code.google.com by ghislain...@gmail.com on 2 Nov 2010 at 12:02

Attachments: