Skip to content

Generation is broken when all class names are not unique #5

Description

@ronnieoverby

I use a code generator to generate classes to represent my sql schema.

The generator generates code like this:

namespace dbo // schema name
{
    partial class Customers // table name
    {
           partial class RowData
           {
               // property for each column
           }
          
    } 

    partial class Orders// table name
    {
           partial class RowData
           {
               // property for each column
           }
          
    } 
}

In another file I put your attribute on my RowData types:

    [GenerateDataReaderMapper]
    public partial class RowData;

But since I have multiple types with the same name, your generator fails to do anything.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions