Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for init-only setters #123

Open
hughesjs opened this issue Nov 14, 2022 · 1 comment
Open

Support for init-only setters #123

hughesjs opened this issue Nov 14, 2022 · 1 comment

Comments

@hughesjs
Copy link

Legacy RazorEngine.NetCore doesn't work if you've got init setters on your models. I strongly suspect it's just because it's using a very, very old code generator that doesn't understand them, but I've not verified that.

Is that supported in this project?

@adoconnection
Copy link
Owner

adoconnection commented Nov 19, 2022

does this help?
https://github.com/adoconnection/RazorEngineCore#strongly-typed-model

Making new model instance is on your side so I see no issues with init only properties

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

No branches or pull requests

2 participants