using FreeSql.DataAnnotations; namespace Znyc.CloudCar.Model.Entities { /// /// 云币表 /// [Table(Name = "currency")] public class CurrencyEntity : EntityBase { /// /// 用户Id /// public long UserId { get; set; } /// /// 可用云币 /// public int AvailableCurrency { get; set; } /// /// 正式云币 /// public int OfficialCurrency { get; set; } /// /// 临时云币 /// public int TemporarylCurrency { get; set; } #pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“CurrencyRecord”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 public CurrencyRecordEntity CurrencyRecord { get; set; } #pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“CurrencyRecord”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 } }