protected override void Init(Type recordType)
        {
            base.Init(recordType);

            ChoFixedLengthRecordObjectAttribute recObjAttr = ChoType.GetAttribute <ChoFixedLengthRecordObjectAttribute>(recordType);

            if (recObjAttr != null)
            {
                RecordLength = recObjAttr.RecordLength;
            }

            DiscoverRecordFields(recordType);
        }
示例#2
0
        protected override void Init(Type recordType)
        {
            base.Init(recordType);

            ChoFixedLengthRecordObjectAttribute recObjAttr = ChoType.GetAttribute <ChoFixedLengthRecordObjectAttribute>(recordType);

            if (recObjAttr != null)
            {
                RecordLength = recObjAttr.RecordLength;
            }
            if (IgnoreFieldValueMode == null)
            {
                IgnoreFieldValueMode = ChoIgnoreFieldValueMode.Empty | ChoIgnoreFieldValueMode.WhiteSpace;
            }

            if (FixedLengthRecordFieldConfigurations.Count == 0)
            {
                DiscoverRecordFields(recordType);
            }
        }