-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend interfaces to support FileStorage DynamicsValue/fake-xrm-easy#157
- Loading branch information
1 parent
532b3ba
commit f32044c
Showing
5 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/FakeXrmEasy.Abstractions/FileStorage/IFIleAttachment.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Microsoft.Xrm.Sdk; | ||
|
||
namespace FakeXrmEasy.Abstractions.FileStorage | ||
{ | ||
/// <summary> | ||
/// Represents a file associated to an existing Dataverse record. | ||
/// </summary> | ||
public interface IFileAttachment | ||
{ | ||
/// <summary> | ||
/// The unique identifier of the file to be uploaded(i.e. the Guid of the fileattachment record) | ||
/// </summary> | ||
string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The file name, including the file extension | ||
/// </summary> | ||
string FileName { get; set; } | ||
|
||
/// <summary> | ||
/// The file MIME type | ||
/// </summary> | ||
string MimeType { get; set; } | ||
|
||
/// <summary> | ||
/// The actual file contents as a byte array | ||
/// </summary> | ||
byte[] Content { get; set; } | ||
|
||
/// <summary> | ||
/// The associated record to which this file belongs | ||
/// </summary> | ||
EntityReference Target { get; set; } | ||
|
||
/// <summary> | ||
/// The logical name of the File or Image column / field of the Target EntityReference | ||
/// </summary> | ||
string AttributeName { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters