Api/Netina.Domain/Entities/StorageFiles/StorageFile.cs

30 lines
1.3 KiB
C#
Raw Normal View History

2024-04-16 20:01:34 +03:30
using Netina.Common.Models.Entity;
using Netina.Domain.Enums;
namespace Netina.Domain.Entities.StorageFiles;
[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
2023-12-16 20:25:12 +03:30
{
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;
}
2023-12-16 20:25:12 +03:30
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; }
}