#10 new
Jon Fuller

More than one type with same name

Reported by Jon Fuller | March 31st, 2009 @ 07:49 PM

I'm having an issue where I've got more than one type with the same name in my assembly.

e.g. Domain.User DTO.User

The problem arises in the TypeGenerator.Add method when we're processing the second of the two. The "matchedAssociations" finds an existing key and moves on, rather than adding the second one appropriately. After this happens, members from the second (DTO.User) start getting added to the first (Domain.User) and things start to break.

Looks like the identifiers used as the key of the "matchedAssociations" needs more resolution than the type name (e.g. User) to include the full name (e.g. Domain.User or DTO.User).

I'll look into it more tonight, and may be able to provide a patch.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Simple documentation done simply

People watching this ticket

Tags

Pages