Browse Source
Add empty procted constructor to all the entities.
pull/17536/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
3 changed files with
12 additions and
0 deletions
-
modules/blob-storing-database/src/Volo.Abp.BlobStoring.Database.Domain/Volo/Abp/BlobStoring/Database/DatabaseBlob.cs
-
modules/blob-storing-database/src/Volo.Abp.BlobStoring.Database.Domain/Volo/Abp/BlobStoring/Database/DatabaseBlobContainer.cs
-
modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Blogs/BlogFeature.cs
|
|
|
@ -17,6 +17,10 @@ public class DatabaseBlob : AggregateRoot<Guid>, IMultiTenant |
|
|
|
[DisableAuditing] |
|
|
|
public virtual byte[] Content { get; protected set; } |
|
|
|
|
|
|
|
protected DatabaseBlob() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public DatabaseBlob(Guid id, Guid containerId, [NotNull] string name, [NotNull] byte[] content, Guid? tenantId = null) |
|
|
|
: base(id) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -11,6 +11,10 @@ public class DatabaseBlobContainer : AggregateRoot<Guid>, IMultiTenant |
|
|
|
|
|
|
|
public virtual string Name { get; protected set; } |
|
|
|
|
|
|
|
protected DatabaseBlobContainer() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public DatabaseBlobContainer(Guid id, [NotNull] string name, Guid? tenantId = null) |
|
|
|
: base(id) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -13,6 +13,10 @@ public class BlogFeature : FullAuditedAggregateRoot<Guid> |
|
|
|
|
|
|
|
public bool IsEnabled { get; protected internal set; } |
|
|
|
|
|
|
|
protected BlogFeature() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public BlogFeature(Guid blogId, [NotNull] string featureName, bool isEnabled = true) |
|
|
|
{ |
|
|
|
BlogId = blogId; |
|
|
|
|