Inline...

On Wed, 2010-06-09 at 17:25 -0700, Glenn Slaven wrote:
> I just got the new version of DBLinq and ran DBMetal to re-generate my
> dal code.  In my DBML I have a bunch of properties like this:
> 
> <Column Name="SiteId" Modifier="Override" Member="SiteID"
> Storage="_siteID" Type="System.UInt32" DbType="int unsigned"
> IsPrimaryKey="false" IsDbGenerated="false" CanBeNull="false" />
> 
> In the previous version of DBMetal I was using this would generate
> this property:
> 
> [DebuggerNonUserCode]
> [Column(Storage = "_siteID", Name = "SiteId", DbType = "int unsigned",
> CanBeNull = false)]
> public override uint SiteID
> 
> but now it does this
> 
> [Column(Storage="_siteID", Name="SiteId", DbType="int unsigned",
> AutoSync=AutoSync.Never, CanBeNull=false)]
> [DebuggerNonUserCode()]
> public uint SiteID
> 
> why is it no longer adding the override modifier?  Do I need to change
> my DBML?

DbLinq 0.20 changed the default C# code generator to be a
System.CodeDom-based generator, which was largely rewritten.  I wasn't
aware of this functionality (and thus missed it when rewriting the
generator).

As a workaround, you should be able to use:

        sqlmetal '/language=obsolete-c#' ...

This has been filed as:

        http://code.google.com/p/dblinq2007/issues/detail?id=261
        
Thanks,
 - Jon


-- 
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en.

Reply via email to