コード例 #1
0
        protected override void Init(Type recordType)
        {
            base.Init(recordType);

            if (recordType == null)
            {
                return;
            }


            var pd = ChoTypeDescriptor.GetTypeAttribute <ChoJSONPathAttribute>(recordType);

            if (pd != null)
            {
                JSONPath             = pd.JSONPath;
                AllowComplexJSONPath = pd.AllowComplexJSONPath;
            }

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

            if (recObjAttr != null)
            {
            }

            if (JSONRecordFieldConfigurations.Count == 0)
            {
                MapRecordFields(); // DiscoverRecordFields(recordType, false);
            }
        }
コード例 #2
0
        protected override void Init(Type recordType)
        {
            base.Init(recordType);

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

            if (recObjAttr != null)
            {
            }

            DiscoverRecordFields(recordType);
        }
コード例 #3
0
        protected override void Init(Type recordType)
        {
            base.Init(recordType);

            if (recordType == null)
                return;

            ChoJSONRecordObjectAttribute recObjAttr = ChoType.GetAttribute<ChoJSONRecordObjectAttribute>(recordType);
            if (recObjAttr != null)
            {
            }

            if (JSONRecordFieldConfigurations.Count == 0)
                DiscoverRecordFields(recordType, false);
        }