Пример #1
0
        public FluentMappingBuilder([JetBrains.Annotations.NotNull] MappingSchema mappingSchema)
        {
            if (mappingSchema == null)
            {
                throw new ArgumentNullException("mappingSchema");
            }

            MappingSchema = mappingSchema;
            MappingSchema.AddMetadataReader(_reader);
        }
Пример #2
0
        /// <summary>
        /// Creates fluent mapping builder for specified mapping schema.
        /// </summary>
        /// <param name="mappingSchema">Mapping schema.</param>
        public FluentMappingBuilder(MappingSchema mappingSchema)
        {
            if (mappingSchema == null)
            {
                throw new ArgumentNullException("mappingSchema");
            }

            MappingSchema = mappingSchema;
            MappingSchema.AddMetadataReader(_reader);
        }
Пример #3
0
 /// <summary>
 /// Creates fluent mapping builder for specified mapping schema.
 /// </summary>
 /// <param name="mappingSchema">Mapping schema.</param>
 public FluentMappingBuilder(MappingSchema mappingSchema)
 {
     MappingSchema = mappingSchema ?? throw new ArgumentNullException(nameof(mappingSchema));
     MappingSchema.AddMetadataReader(_reader);
 }