Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ValidationContext missing ServiceContainer #229
var context = new ValidationContext(val, validationContext.ServiceContainer, null);`
@vatsan-madhavan Fair point - is in .nuget\packages\microsoft.netcore.app\3.0.0-preview-27122-01\ref\netcoreapp3.0\System.ComponentModel.Annotations.dll. Not sure therefore where this should be filed but is an incompatibility with existing .net framework applications.
I've been unable to find an explanation for the reasoning behind this so is not clear to me if it will break my existing code or not.
Running the existing code through the debugger the object that I want to pass is a: System.ComponentModel.DataAnnotations.ValidationContext.ValidationContextServiceContainer.
Ideally this property would be exposed and/or an explanation documented as to why it is not there and how to make any existing code compatible. Please do move the thread through to the correct place if I filed wrongly