You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
734 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using Microsoft.EntityFrameworkCore;
  6. using Volo.Abp.Auditing;
  7. using Volo.Abp.Domain.Entities;
  8. using Volo.Abp.Domain.Entities.Auditing;
  9. namespace Shentun.Peis.Books
  10. {
  11. [Table("testa")]
  12. public class TestA : Entity
  13. {
  14. [Key]
  15. public Guid AId { get; set; }
  16. public string AName { get; set; }
  17. //[ForeignKey("AId")]
  18. //[InverseProperty(nameof(TestB.TestAs))]
  19. public virtual ICollection<TestB> TestBs { get; set; }
  20. public override object[] GetKeys()
  21. {
  22. return new object[] { AId };
  23. }
  24. }
  25. }