面向对象的Azure

时间:2017-04-08 15:42:16

标签: angular azure

我有一个对象

export class Programme
{
id: string;
title: string;
organizer: Organizer;
participants: Participant[];
}

当我在天蓝色表上上传对象时 这样存储

{
    "id": "ef67998c-27f5-4c2a-8c80-b29d822d2eef",
    "title": "Python",
    "organizer": "[object Object]",
    "participants": "[object Object]"
}

添加到表格中:

var table = this.client.getTable("programme");
        return new Promise((resolve, reject) => {
            table.insert(prog)
                .then(function (modules) {
                    resolve(modules)
                }, function (error) { reject(error) });
        });

我该如何避免这种情况?

0 个答案:

没有答案