我想为表格字段添加ID。我要添加ID的原因是应用Java脚本。该代码用于该字段之一
private DateTime timeIntervalStartUtc;
public DateTime TimeIntervalStartUtc
{
get
{
return timeIntervalStartUtc;
}
set
{
if (value.Kind == DateTimeKind.Utc)
{
timeIntervalStartUtc = value;
}
else
{
throw new Exception("DateTimeKind.UTC required");
}
}
}