Skip to content

Commit

Permalink
Update DataSet.Serialize.Import.pas
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Mar 31, 2020
1 parent f37adf6 commit 5ec8c14
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/DataSet.Serialize.Import.pas
Original file line number Diff line number Diff line change
Expand Up @@ -569,13 +569,7 @@ function TJSONSerialize.GetKeyFieldsDataSet(const ADataSet: TDataSet): string;
Result := EmptyStr;
for LField in ADataSet.Fields do
if pfInKey in LField.ProviderFlags then
begin
Result := Result + IfThen(Result.Trim.IsEmpty, EmptyStr, ';');
if TDataSetSerializeConfig.GetInstance.LowerCamelCase then
Result := Result + TDataSetSerializeUtils.FieldNameToLowerCamelCase(LField.FieldName)
else
Result := Result + LField.FieldName;
end;
Result := Result + IfThen(Result.Trim.IsEmpty, EmptyStr, ';') + LField.FieldName;
end;

function TJSONSerialize.GetKeyValuesDataSet(const ADataSet: TDataSet; const AJSONObject: TJSONObject): TKeyValues;
Expand Down

0 comments on commit 5ec8c14

Please sign in to comment.