49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace YLErp.DBModels
|
|
{
|
|
[Table("trade_hedge_vol")]
|
|
public class trade_hedge_vol : DBModelWithOperator, IDataTraceV2, IClonable<trade_hedge_vol>
|
|
{
|
|
public static string LogClass = "交易对冲波动率";
|
|
|
|
/// <summary>
|
|
/// 交易Id
|
|
/// </summary>
|
|
[DisplayName("交易Id")]
|
|
public int TradeId { set; get; }
|
|
|
|
/// 持仓波动率
|
|
/// </summary>
|
|
[DisplayName("对冲波动率")]
|
|
public double TradeSavedVol { get; set; }
|
|
|
|
/// <summary>
|
|
/// 操作系统日
|
|
/// </summary>
|
|
[DisplayName("操作系统日")]
|
|
public DateTime? ValueDate { set; get; }
|
|
|
|
public trade_hedge_vol Clone()
|
|
{
|
|
return (trade_hedge_vol)MemberwiseClone();
|
|
}
|
|
|
|
public string GetDataTraceKeyId()
|
|
{
|
|
return TradeId.ToString();
|
|
}
|
|
|
|
public string GetDataTraceKeyInfo()
|
|
{
|
|
return "交易对冲波动率";
|
|
}
|
|
}
|
|
|
|
[NotMapped]
|
|
public class trade_hedge_volDto : trade_hedge_vol
|
|
{
|
|
|
|
}
|
|
}
|