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); } }
protected override void Init(Type recordType) { base.Init(recordType); ChoJSONRecordObjectAttribute recObjAttr = ChoType.GetAttribute <ChoJSONRecordObjectAttribute>(recordType); if (recObjAttr != null) { } DiscoverRecordFields(recordType); }
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); }