mirror of https://github.com/abpframework/abp.git
committed by
GitHub
4 changed files with 76 additions and 0 deletions
@ -0,0 +1,33 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
|
||||
|
namespace Volo.Abp.Auditing.App.Entities; |
||||
|
|
||||
|
[Audited] |
||||
|
public class AppEntityWithNavigationsAndDisableAuditing : AggregateRoot<Guid> |
||||
|
{ |
||||
|
protected AppEntityWithNavigationsAndDisableAuditing() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public AppEntityWithNavigationsAndDisableAuditing(Guid id, string name) |
||||
|
: base(id) |
||||
|
{ |
||||
|
Name = name; |
||||
|
} |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
[DisableAuditing] |
||||
|
public virtual List<AppEntityWithNavigationsAndDisableAuditingChildOneToMany> OneToMany { get; set; } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public class AppEntityWithNavigationsAndDisableAuditingChildOneToMany : Entity<Guid> |
||||
|
{ |
||||
|
public Guid AppEntityWithNavigationsAndDisableAuditingId { get; set; } |
||||
|
|
||||
|
public string ChildName { get; set; } |
||||
|
} |
||||
Loading…
Reference in new issue