CmUserToLicense.cs 697 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities {
  6. public partial class CmUserToLicense {
  7. [Key]
  8. public int SiteId { get; set; }
  9. [Key]
  10. [StringLength(24)]
  11. public string UserId { get; set; }
  12. [Key]
  13. public int LicenseId { get; set; }
  14. [ForeignKey("UserId")]
  15. [InverseProperty("CmUserToLicense")]
  16. public virtual CmUser CmUser { get; set; }
  17. [ForeignKey("SiteId,LicenseId")]
  18. [InverseProperty("CmUserToLicense")]
  19. public virtual FmsLicense FmsLicense { get; set; }
  20. }
  21. }