コード例 #1
0
        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);
        }