U7 中自定义 Umbraco 数据类型的多个值

Multiple values for custom Umbraco datatype in U7

我想要 Umbraco 7 中自定义数据类型的多行值(超过 1 个输入)。

目前保存时添加多行和数据,但添加5行后保存时出现以下错误:

Received an error from the server: 
String or binary data would be truncated. The statement has been terminated.
...

我已将清单设置为期望 JSON 数据(但之前未定义)。

有人知道我做错了什么或如何为自定义 Umbraco 7 数据类型保存大量数据吗?

清单

{
  propertyEditors: [
    {
      alias: "Test",
      name: "Test",
      editor: {
        view: "~/App_Plugins/Test/test.html",
        hideLabel: false,
        valueType: "JSON"   
      }
    }
  ],
  javascript: [
    "~/App_Plugins/Test/test.controller.js"
  ] 
}

查看

...
<tbody>
  <tr ng-repeat="value in model.value.list">
    <th>{{value.name}}</th>
    <td>{{value.size}}</td>
    <td>{{value.weight}}</td>
  </tr>
</tbody>
<tfoot>
  <tr>
    <th><input type="text" ng-model="addRowName" /></th>
    <td><input type="text" ng-model="addRowSize" /></td>
    <td>
      <input type="text" ng-model="addRowWeight" />
      <a ng-click="addRow()" href="">Add Row</a>
    </td>
  </tr>
</tfoot>
...

JS/Controller(添加行函数)

...
$scope.addRow = function() {
  $scope.model.value.list.push({
    name: $scope.addRowName,
    size: $scope.addRowSize,
    weight: $scope.addRowWeight
  });
};
...

我 运行 遇到了同样的问题。在这里查看解决方案:http://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/59997-String-or-binary-data-would-be-truncated-with-custom-property-editor?p=0#comment203294