I found something but I'm not there yet.
annotions in .net 5 are handled totally different.
the read part makes is easier, but somehow I need to set them.
for this I think I need to override method "ProcessPropertyAnnotationChanged" in
https://github.com/dotnet/efcore/blob/release/5.0/src/EFCore.SqlServer/Metadata/Conventions/SqlServerValueGenerationConvention.cs
before I used ReplaceService to do that,
but I cannot do that here, since there is a hard call for the specified class here
https://github.com/dotnet/efcore/blob/release/5.0/src/EFCore.SqlServer/Metadata/Conventions/SqlServerConventionSetBuilder.cs
on line 58.
so my question now is,
how can I override the SqlServerValueGenerationConvention class, to always use mine which inherits the former class?
public class MyClassSqlServerValueGenerationConvention :SqlServerValueGenerationConvention
{
Hello,
sure I can,
those are the errors I get
Error CS0115 'DataSyncSqlServerAnnotationProvider.For(IProperty)': no suitable method found to override DataSync.Data D:\Repos\DataSync\DataSync.Data\Classes\DataSyncSqlServerAnnotationProvider.cs 58 Active
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 1: cannot convert from 'Microsoft.EntityFrameworkCore.Metadata.IProperty' to 'Microsoft.EntityFrameworkCore.Metadata.IRelationalModel' DataSync.Data D:\Repos\DataSync\DataSync.Data\Classes\DataSyncSqlServerAnnotationProvider.cs 60 Active
where the first one, is the issue, in the second one I'm trying to address the base method which is also not there.
The errors make sense Since EF core has been changed. Only I can't figure how to fix it.