Does Konstrukt support the EF Core repositories?
# help-with-umbraco
m
Since we can use EFCore instead of NPOCO in Umbraco, i was wondering if Konstrukt (https://getkonstrukt.net/) already supports this.
a
Yes it certainly does, however there appears to be an issue with EF Core under Umbraco 12.2 so I'd recommend working with 12.1.2 for the time being, or follow my workaround shown in the comments of the issue I raised the other day: https://github.com/umbraco/Umbraco-CMS/issues/14893 You still need to add the NPoco annotations (
[TableName("MyCustomTable")]
and
[PrimaryKey("Id")]
) to your entity classes in order for Konstrukt to understand your model, however you can still use the same classes within your EF configuration.
m
Thanks so much!
a
No problem, you're very welcome!
8 Views