Azure表存储-datetime的毫秒部分
有没有办法在表存储中保存完整的日期时间(毫秒部分) 我正在使用TableServiceContext保存实体 谢谢Azure表存储-datetime的毫秒部分,azure,azure-table-storage,azure-sdk-.net,Azure,Azure Table Storage,Azure Sdk .net,有没有办法在表存储中保存完整的日期时间(毫秒部分) 我正在使用TableServiceContext保存实体 谢谢 public class YourEntity : TableEntity { public YourEntity(string partitionName, string id) { this.PartitionKey = partitionName; this.RowKey = id; } public Your
public class YourEntity : TableEntity
{
public YourEntity(string partitionName, string id)
{
this.PartitionKey = partitionName;
this.RowKey = id;
}
public YourEntity() { }
private string _date = "";
public string CustomDate
{
get
{
return _date;
}
set
{
_date = value;
}
}
}
YourEntity entity = new YourEntity("sample", "1");
entity.CustomDate = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss.ffffff");