Member name conflict with Type name.


Author
Message
Jason Stevenson
Jason Stevenson
StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)
Group: Forum Members
Posts: 15, Visits: 43
I am wrapping up my first project with Strataframe.  I am now remapping to the production database, and have discovered what appears to be a bug...

I have a SQL databse with a Table named: DealerType.  That table contains a column named: DealerType.  So the generated class wont compile because the Member name cannot be the same as the Containing Type name.  Here are some snippets of generated code:

namespace DealerLocatorAdmin

{

public partial class DealerType : MicroFour.StrataFrame.Business.BusinessLayer

{

/// <summary>

/// DealerType

/// </summary>

/// <remarks></remarks>

[Browsable(false),

BusinessFieldDisplayInEditor(),

Description("DealerType"),

DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]

public System.String DealerType

{

get

{

return (System.String)this.CurrentRow["DealerType"];

}

set

{

this.CurrentRow["DealerType"] = value;

}

}

Any ideas on how to work around this?


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search