public static ModelBuilderTest.TestCollectionOwnershipBuilder <TEntity, TDependentEntity> ToTable <TEntity, TDependentEntity>(
            this ModelBuilderTest.TestCollectionOwnershipBuilder <TEntity, TDependentEntity> builder, string name, string schema)
            where TEntity : class
            where TDependentEntity : class
        {
            switch (builder)
            {
            case IInfrastructure <CollectionOwnershipBuilder <TEntity, TDependentEntity> > genericBuilder:
                genericBuilder.Instance.ToTable(name, schema);
                break;

            case IInfrastructure <CollectionOwnershipBuilder> nongenericBuilder:
                nongenericBuilder.Instance.ToTable(name, schema);
                break;
            }

            return(builder);
        }
        public static ModelBuilderTest.TestCollectionOwnershipBuilder <TEntity, TDependentEntity> ForSqlServerIsMemoryOptimized <TEntity, TDependentEntity>(
            this ModelBuilderTest.TestCollectionOwnershipBuilder <TEntity, TDependentEntity> builder, bool memoryOptimized = true)
            where TEntity : class
            where TDependentEntity : class
        {
            switch (builder)
            {
            case IInfrastructure <CollectionOwnershipBuilder <TEntity, TDependentEntity> > genericBuilder:
                genericBuilder.Instance.ForSqlServerIsMemoryOptimized(memoryOptimized);
                break;

            case IInfrastructure <CollectionOwnershipBuilder> nongenericBuilder:
                nongenericBuilder.Instance.ForSqlServerIsMemoryOptimized(memoryOptimized);
                break;
            }

            return(builder);
        }