public static DelimitedArrayFieldInfoBuilder AddArray(this IRecordDescriptor descriptor, string name)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new BadFluentConfigurationException($"The {nameof(name)} cannot be null or empty");
            }

            var fieldInfo = new DelimitedArrayFieldInfoBuilder();

            descriptor.Add(name, fieldInfo);
            return(fieldInfo);
        }
예제 #2
0
        public static FixedArrayFieldInfoBuilder AddSubArray(this IRecordDescriptor recordInfo, string fieldName)
        {
            if (string.IsNullOrWhiteSpace(fieldName))
            {
                throw new BadFluentConfigurationException($"The {nameof(fieldName)} cannot be null or empty");
            }

            var fieldInfo = new FixedArrayFieldInfoBuilder();

            recordInfo.Add(fieldName, fieldInfo);
            return(fieldInfo);
        }