Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMVCSerializationAction should allows to define an "IgnoredFields" list too #528

Closed
danieleteti opened this issue Nov 16, 2021 · 1 comment
Assignees
Labels
accepted Issue has been accepted and inserted in a future milestone enhancement

Comments

@danieleteti
Copy link
Owner

danieleteti commented Nov 16, 2021

In the ObjectDictionary, the TMVCSerializationAction should allows to define an "IgnoredFields" list. These ignore fields will not be serialized

@danieleteti danieleteti added enhancement accepted Issue has been accepted and inserted in a future milestone labels Nov 16, 2021
@danieleteti danieleteti added this to the 3.2.2-nitrogen milestone Nov 16, 2021
@danieleteti danieleteti self-assigned this Nov 16, 2021
@danieleteti danieleteti changed the title TMVCSerializationAction should allows to define an "IgnoredFields" set TMVCSerializationAction should allows to define an "IgnoredFields" list too Nov 16, 2021
@danieleteti
Copy link
Owner Author

IMVCObjectDictionary interface has been modified as follows (added AIgnoredFields default params in the Add methods)

  IMVCObjectDictionary = interface
    ['{B54F02EE-4B3B-4E55-9E6B-FB6CFE746028}']
    function Add(const Name: string; const Value: TObject;
      const SerializationAction: TMVCSerializationAction = nil;
      const AIgnoredFields: TMVCIgnoredList = nil): IMVCObjectDictionary; overload;
    function Add(const Name: string; const Value: TDataset;
      const SerializationAction: TMVCDataSetSerializationAction = nil;
      const DataSetSerializationType: TMVCDatasetSerializationType = dstAllRecords;
      const NameCase: TMVCNameCase = TMVCNameCase.ncLowerCase;
      const AIgnoredFields: TMVCIgnoredList = nil): IMVCObjectDictionary; overload;
    function TryGetValue(const Name: string; out Value: TObject): Boolean; overload;
    function Count: Integer;
    function ContainsKey(const Key: string): Boolean;
    function Keys: TArray<string>;
  end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue has been accepted and inserted in a future milestone enhancement
Projects
None yet
Development

No branches or pull requests

1 participant