我想知道什么是最好的方式来表示应该包含C#债券格式的这些字段的表?C#债券中可用的数据类型是什么?
- 串名字
- 串名字
- 串电子邮件
- 布尔注册
- 日期时间DateJoined
- 焦炭性别
- 列表<串>收藏
- 串城
- 串国家
- unit16邮编
- 串国家
- 列表<串> FrequentPagesURLs
而且我希望有类似格式的东西
namespace MyProject
{
struct Key
{
0: required string Email;
}
struct Value
{
0: required string FirstName;
1: optional char Gender;
.
.
.
}
}
我不知道代表char
,DateTime
和的最佳方式是什么3210以C#bond格式用于在Object store中创建表格。
我在生成DateTime,char等部分中感到非常困惑。 我不知道如何以我上面提到的格式在架构文件中编写它。 如果您可以提供示例给出我需要创建的表格,那将会非常棒。 –
关于[如何表示'TimeSpan']存在一个存在的问题(https://stackoverflow.com/questions/39492730/implementing-an-equivalent-of-c-sharp-timespan-in-microsoft-bond)到[DateTime的示例](https://github.com/Microsoft/bond/tree/master/examples/cs/core/date_time)。 – chwarr