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

Dataset Helper Case #366

Closed
budisatya opened this issue Apr 19, 2020 · 2 comments
Closed

Dataset Helper Case #366

budisatya opened this issue Apr 19, 2020 · 2 comments

Comments

@budisatya
Copy link

hi daniele
i try to change dataset record to json object

fdquery.asJSONObject(fpLowerCase) <-- not working, always large case in firebird

i see in MVCFramework.Dataset.Utils :

function TDataSetHelper.AsJSONObject(AFieldNamePolicy: TFieldNamePolicy): string;
var
lSerializer: IMVCSerializer;
begin
lSerializer := TMVCJsonDataObjectsSerializer.Create;
Result := lSerializer.SerializeDataSetRecord(Self, [], ncAsIs);
// Mapper.DataSetToJSONObject(Self, JObj, false);
end;

AFieldNamePolicy <-- not going anywhere or i'm wrong?
and
Result := lSerializer.SerializeDataSetRecord(Self, [], ncAsIs); <-- always AsIs Case ???
or maybe i miss something?

@danieleteti
Copy link
Owner

Fixed in the repo. Please, let me know.

@budisatya
Copy link
Author

Than'k u Daniele
uppercase - working
lowercase - working
camelcase - i dont know what suppost to came out, in my computer its came uppercase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants