Skip to content

[bug]: Partial finalizers and controllers registration generation #996

@Sshnyari

Description

@Sshnyari

Describe the bug

When we make the Controller or Finalizer partial (to put code in different files), they are registered multiple times in those generated ControllerRegistrations.g.cs and Finalize registrations.g.cs
It doesn't even compile when we do it for finalizers because those FinalizerIdentifiers constants are generated multiple times

To reproduce

Create two files

public partial class Something: IEntityFinalizer<SomeCR>
{
  //... Implement the interface
}

public partial class Something {}

And compile. Compilation will fail because of the multiple declarations of the same constant

Expected behavior

Compilation works and no duplicated registrations

Screenshots

Image

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions