Brumla
My constructor sets the attribute, so why is EFcore complaining?
here are details: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers
47 replies
My constructor sets the attribute, so why is EFcore complaining?
no, this is the part in those
{}
brackets:
var somevar = new MyClass(... here goes constructor args...) { someProperty = someInitialValueForRequiredProperty, otherProperty = otherValue}
47 replies