IFileData Interface
Declares members implemented by the classes that can be represented in a UI using the FileDataPropertyEditor.
Namespace: DevExpress.Persistent.Base
Assembly: DevExpress.Persistent.Base.v24.1.dll
NuGet Package: DevExpress.Persistent.Base
Declaration
Related API Members
The following members return IFileData objects:
Remarks
You can create your own IFileData
implementation. To see an example, refer to the FileData
class sources at %PROGRAMFILES%\DevExpress 24.1\Components\Sources\DevExpress.Persistent\DevExpress.Persistent.BaseImpl.EFCore\FileData.cs or see the following articles:
- How to: Store file attachments in the file system instead of the database
- How to: Store file attachments in Dropbox instead of the database(video).
- How to: Read Compressed Files in the FileData Database Table from External Non-XAF .NET Applications
- How to: Use the File Attachment Module with a legacy database
When the File Attachments module is added to the application, the FileDataPropertyEditor in WinForms and ASP.NET Web Forms applications is used to visualize the business object properties of the IFileData
type.
WinForms:
ASP.NET Web Forms:
Note
If you want to access the full path to a file, implement the ISupportFullName interface in your class in addition to IFileData
.