Merge pull request #17536 from abpframework/constructor

Add empty procted constructor to all the entities.
pull/17537/head
Enis Necipoglu 1 year ago committed by GitHub
commit 7be3b6649b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save