Class File
Represents a file stored in the OEMS system with metadata and content.
Inherited Members
Namespace: OEMS.Core.Domain.Klassen
Assembly: OEMS.Core.dll
Syntax
public class File
Properties
Content
Gets or sets the binary content of the file.
Declaration
[Required]
public byte[] Content { get; set; }
Property Value
Type | Description |
---|---|
byte[] | The actual file data stored as a byte array. |
EventFiles
Gets or sets the collection of event-file associations.
Declaration
public virtual ICollection<EventFile> EventFiles { get; set; }
Property Value
Type | Description |
---|---|
ICollection<EventFile> | The events that this file is associated with. |
Id
Gets or sets the unique identifier for the file.
Declaration
[Key]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid | A GUID that uniquely identifies the file in the system. |
Metadata
Gets or sets additional metadata for the file stored as a JSON string.
Declaration
public string Metadata { get; set; }
Property Value
Type | Description |
---|---|
string | Optional metadata stored in JSON format for extensibility. |
Name
Gets or sets the name of the file.
Declaration
[Required]
[StringLength(255)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The original filename, limited to 255 characters. |
Path
Gets or sets the storage path or location identifier for the file.
Declaration
[Required]
public string Path { get; set; }
Property Value
Type | Description |
---|---|
string | The path where the file is stored in the system. |
ProcessStepFiles
Gets or sets the collection of process step-file associations.
Declaration
public virtual ICollection<ProcessStepFile> ProcessStepFiles { get; set; }
Property Value
Type | Description |
---|---|
ICollection<ProcessStepFile> | The process steps that this file is associated with. |
Size
Gets or sets the size of the file in bytes.
Declaration
[Required]
public long Size { get; set; }
Property Value
Type | Description |
---|---|
long | The file size in bytes. |
Type
Gets or sets the MIME type or file extension of the file.
Declaration
[Required]
[StringLength(50)]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string | The file type identifier, limited to 50 characters. |
UploadDate
Gets or sets the date and time when the file was uploaded.
Declaration
[Required]
public DateTime UploadDate { get; set; }
Property Value
Type | Description |
---|---|
DateTime | The timestamp indicating when the file was first uploaded to the system. |