Example #1
0
        /// <inheritdoc />
        public void BuildMetadataTables(IMetadataTableBuilderFactory metadataTableBuilderFactory)
        {
            Guard.NotNull(metadataTableBuilderFactory, nameof(metadataTableBuilderFactory));

            foreach (var kvp in this.TableDescriptorToBuildAction.Where(x => x.Key.IsMetadataTable))
            {
                var builder = metadataTableBuilderFactory.Create(kvp.Key);
                Debug.Assert(builder != null);

                this.BuildTableCore(kvp.Key, kvp.Value, builder);
            }
        }
        public void BuildMetadataTables(
            IMetadataTableBuilderFactory metadataTableBuilderFactory)
        {
            this.BuildMetadataTablesCalls.Add(metadataTableBuilderFactory);
            if (this.BuildMetadataTableFailure != null)
            {
                throw this.BuildMetadataTableFailure;
            }

            foreach (var table in this.MetadataTablesToBuild)
            {
                var builder = metadataTableBuilderFactory.Create(table);
            }
        }