When I want to add my javascript objects (or entities) to my Azure table storage, I first need to run them through entityGenerator.
My objects might look like this:
{
id: 1,
name: 'foo',
timestamp: new Date()
}
The objects that I need to pass in TableServicewill look like this:
{
id: { '_': 1, '$': 'Edm.Int32' },
name: { '_': 'foo', '$': 'Edm.String' },
timestamp:{ '_': new Date(), '$': 'Edm.DateTime' },
}
This is also the format in which objects are returned from TableService.
To match my objects with the correct format for sending them to the table store is pretty simple, but I haven’t found an easy way to convert the returned objects from my service back to regular JavaScript objects that I can easily work with.
mapper, _ , , .
- JavaScript Azure?
( ) azure-storage?