using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; using Volo.Abp.Auditing; using Volo.Abp.Domain.Entities; using Volo.Abp.Domain.Entities.Auditing; namespace Shentun.Peis.Books { [Table("testa")] public class TestA : Entity { [Key] public Guid AId { get; set; } public string AName { get; set; } //[ForeignKey("AId")] //[InverseProperty(nameof(TestB.TestAs))] public virtual ICollection TestBs { get; set; } public override object[] GetKeys() { return new object[] { AId }; } } }