using System; using System.Collections.Generic; using Volo.Abp.Domain.Entities; using Volo.Abp.Domain.Entities.Auditing; using Volo.Abp.Domain.Values; namespace Volo.Abp.TestApp.Domain; public class AppEntityWithNavigations : FullAuditedAggregateRoot { protected AppEntityWithNavigations() { } public AppEntityWithNavigations(Guid id, string name) : base(id) { Name = name; FullName = name; } public string Name { get; set; } public string FullName { get; set; } public AppEntityWithValueObjectAddress AppEntityWithValueObjectAddress { get; set; } public virtual AppEntityWithNavigationChildOneToOne OneToOne { get; set; } public virtual List OneToMany { get; set; } public virtual List ManyToMany { get; set; } public virtual Guid? AppEntityWithNavigationForeignId { get; set; } } public class AppEntityWithValueObjectAddress : ValueObject { public AppEntityWithValueObjectAddress(string country) { Country = country; } public string Country { get; set; } protected override IEnumerable GetAtomicValues() { yield return Country; } } public class AppEntityWithNavigationChildOneToOne : Entity { public string ChildName { get; set; } public virtual AppEntityWithNavigationChildOneToOneAndOneToOne OneToOne { get; set; } } public class AppEntityWithNavigationChildOneToOneAndOneToOne : Entity { public string ChildName { get; set; } } public class AppEntityWithNavigationChildOneToMany : Entity { public Guid AppEntityWithNavigationId { get; set; } public string ChildName { get; set; } public virtual List OneToMany { get; set; } } public class AppEntityWithNavigationChildOneToManyAndOneToMany : Entity { public Guid AppEntityWithNavigationChildOneToManyId { get; set; } public string ChildName { get; set; } } public class AppEntityWithNavigationChildManyToMany : AggregateRoot { public string ChildName { get; set; } public virtual List ManyToMany { get; set; } } public class AppEntityWithNavigationsAndAppEntityWithNavigationChildManyToMany { public Guid AppEntityWithNavigationsId { get; set; } public Guid AppEntityWithNavigationChildManyToManyId { get; set; } } public class AppEntityWithNavigationsForeign : AggregateRoot { protected AppEntityWithNavigationsForeign() { } public AppEntityWithNavigationsForeign(Guid id, string name) : base(id) { Name = name; } public string Name { get; set; } }