# Microsoft.AspNetCore.Components.Forms

``` diff
 namespace Microsoft.AspNetCore.Components.Forms {
     public static class EditContextDataAnnotationsExtensions {
-        public static IDisposable EnableDataAnnotationsValidation(this EditContext editContext);
+        [ObsoleteAttribute("This API is obsolete and may be removed in future versions. Use the overload that accepts an IServiceProvider instead.")]
+        public static IDisposable EnableDataAnnotationsValidation(this EditContext editContext);
+        public static IDisposable EnableDataAnnotationsValidation(this EditContext editContext, IServiceProvider serviceProvider);
     }
     public abstract class InputBase<TValue> : ComponentBase, IDisposable {
-        [MemberNotNullAttribute(new string[]{ "EditContext", "CascadedEditContext"})]
-        public override Task SetParametersAsync(ParameterView parameters);
+        public override Task SetParametersAsync(ParameterView parameters);
     }
     public class InputRadio<TValue> : ComponentBase {
+        [DisallowNullAttribute]
+        public ElementReference? Element { get; protected set; }
     }
 }
```

