My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 291: DMetal is not conform to MSLinqToSQLGenerator
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by ghislain...@gmail.com, Nov 2, 2010
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
CodeDomGenerator.cs.patch
4.0 KB   View   Download
Sign in to add a comment

Powered by Google Project Hosting