public static IConventionModelBuilder?HasDefaultContainer( [NotNull] this IConventionModelBuilder modelBuilder, [CanBeNull] string?name, bool fromDataAnnotation = false) { if (!modelBuilder.CanSetDefaultContainer(name, fromDataAnnotation)) { return(null); } modelBuilder.Metadata.SetDefaultContainer(name, fromDataAnnotation); return(modelBuilder); }