modelsbuilder/ModelsBuilder.Original

Stack Overflow when implementing same interface in generated and partial class

Opened this issue · 0 comments

https://twitter.com/bleedo/status/1337385709477502979

I didn't have the mentioned 30 min to debug, but we just hit it on another project, so I remembered I should log the issue. 👼

Example:

DocType.generated.cs:

public partial class DocType : ISomeComposition
{
}

DocType.partial.cs:

public partial class DocType : ISomeComposition
{
}

I dunno when we accidentally implement the same composition, but it happens, and a the Stack Overflow should be preventable by validating read classes in some way.

Soz for lack of effort on this.