api/NetinaCMS.Domain/Entities/StorageFiles/StorageFile.cs

29 lines
1.2 KiB
C#
Raw Permalink Normal View History

2024-03-24 12:35:42 +03:30
using NetinaCMS.Domain.Enums;
namespace NetinaCMS.Domain.Entities.StorageFiles;
2024-03-09 19:53:01 +03:30
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
[GenerateMapper]
public partial class StorageFile : ApiEntity
{
public StorageFile()
{
}
public StorageFile(string name, string fileLocation, string fileName, bool isHeader, bool isPrimary, StorageFileType fileType)
{
Name = name;
FileLocation = fileLocation;
FileName = fileName;
IsHeader = isHeader;
IsPrimary = isPrimary;
FileType = fileType;
}
public string Name { get; internal set; } = string.Empty;
public string FileLocation { get; internal set; } = string.Empty;
public string FileName { get; internal set; } = string.Empty;
public bool IsHeader { get; internal set; }
public bool IsPrimary { get; internal set; }
public StorageFileType FileType { get; internal set; }
}