You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
775 B
29 lines
775 B
using JetBrains.Annotations; |
|
using System; |
|
using Volo.Abp; |
|
using Volo.Abp.Domain.Entities.Auditing; |
|
|
|
namespace Sanhe.Abp.LocalizationManagement; |
|
|
|
public class Resource : AuditedEntity<Guid> |
|
{ |
|
public virtual bool Enable { get; set; } |
|
public virtual string Name { get; set; } |
|
public virtual string DisplayName { get; set; } |
|
public virtual string Description { get; set; } |
|
|
|
protected Resource() { } |
|
|
|
public Resource( |
|
[NotNull] string name, |
|
[CanBeNull] string displayName = null, |
|
[CanBeNull] string description = null) |
|
{ |
|
Name = Check.NotNullOrWhiteSpace(name, nameof(name), ResourceConsts.MaxNameLength); |
|
|
|
DisplayName = displayName ?? Name; |
|
Description = description; |
|
|
|
Enable = true; |
|
} |
|
}
|
|
|