如何在下面的代码中使对象 VirtualTerminal 成为可选?我是否必须删除 VirtualTerminal 并且只使用 VirtualTerminalId ?
[Table("Computer")]
public class Computer :Device
{
//public int Id { get; set; }
public string OperatingSystem { get; set; }
public string OS_LicenseKey { get; set; }
public VirtualTerminal VirtualTerminal { get; set; }
public int? VirtualTerminalId { get; set; }
}