| 123456789101112131415161718192021 |
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Domain.Entities.Crypto
- {
- public class CoinCategoryMap
- {
- [ForeignKey(nameof(CoinID))]
- public virtual Coin Coin { get; set; } = null!;
- [ForeignKey(nameof(CategoryID))]
- public virtual CoinCategory CoinCategory { get; set; } = null!;
- [Key]
- public int ID { get; set; }
- public int CoinID { get; set; }
- public int CategoryID { get; set; }
- }
- }
|