Skip to content

Generate entity factories with a source generator - #228

Merged
marchc1 merged 1 commit into
SourceDotNET:mainfrom
ZehMatt:entityfactory
Oct 27, 2026
Merged

marchc1 merged 1 commit into
SourceDotNET:mainfrom
ZehMatt:entityfactory

Conversation

@ZehMatt

@ZehMatt ZehMatt commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

title: "Linked entity class cannot get a generated factory",
messageFormat: "'{0}' is linked to '{1}' but {2}, so no factory is registered",
category: "EntityFactories",
defaultSeverity: DiagnosticSeverity.Warning,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make this an error tbh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have so many warnings it would get drowned out and it's a pretty serious problem

return false;
}

static bool IsAccessible(INamedTypeSymbol type) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These things are copied from PanelRegistrationGenerator; is there any way we could make a shared helper file for it

@marchc1

marchc1 commented Oct 27, 2026

Copy link
Copy Markdown
Member

Do see those comments, but it can wait for now, trying to flush out the open PR's

@marchc1
marchc1 merged commit 2a6f76a into SourceDotNET:main Oct 27, 2026
8 checks passed
@ZehMatt
ZehMatt deleted the entityfactory branch October 27, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants