CmsKit - IEquatable implementation for BlogFeature

pull/7745/head
enisn 5 years ago
parent c1f640dee0
commit 2384e2c455

@ -5,7 +5,7 @@ using Volo.Abp.Domain.Entities.Auditing;
namespace Volo.CmsKit.Blogs namespace Volo.CmsKit.Blogs
{ {
public class BlogFeature : FullAuditedAggregateRoot<Guid> public class BlogFeature : FullAuditedAggregateRoot<Guid>, IEquatable<BlogFeature>
{ {
protected BlogFeature() // Keep for ORM protected BlogFeature() // Keep for ORM
{ {
@ -23,5 +23,10 @@ namespace Volo.CmsKit.Blogs
public string FeatureName { get; protected set; } public string FeatureName { get; protected set; }
public bool Enabled { get; set; } = true; public bool Enabled { get; set; } = true;
public bool Equals(BlogFeature other)
{
return BlogId == other?.BlogId && FeatureName == other?.FeatureName;
}
} }
} }

Loading…
Cancel
Save