C# Class Serenity.Services.EmbeddedFileUploadBehaviourAttribute

Inheritance: SaveRequestBehaviourAttribute
Exibir arquivo Open project: volkanceylan/Serenity

Public Methods

Method Description
EmbeddedFileUploadBehaviourAttribute ( string fileNameField, string fileNameFormat = "{1:00000}/{0:00000000}_{2}", bool copyFileToHistory = false, string subFolder = null, bool storeSubFolderInDB = false ) : Serenity.Data
OnAfterSave ( ISaveRequestHandler handler ) : void
OnBeforeSave ( ISaveRequestHandler handler ) : void

Private Methods

Method Description
CopyTemporaryFile ( ISaveRequestHandler handler, FilesToDelete filesToDelete ) : CopyTemporaryFileResult

Method Details

EmbeddedFileUploadBehaviourAttribute() public method

public EmbeddedFileUploadBehaviourAttribute ( string fileNameField, string fileNameFormat = "{1:00000}/{0:00000000}_{2}", bool copyFileToHistory = false, string subFolder = null, bool storeSubFolderInDB = false ) : Serenity.Data
fileNameField string
fileNameFormat string
copyFileToHistory bool
subFolder string
storeSubFolderInDB bool
return Serenity.Data

OnAfterSave() public method

public OnAfterSave ( ISaveRequestHandler handler ) : void
handler ISaveRequestHandler
return void

OnBeforeSave() public method

public OnBeforeSave ( ISaveRequestHandler handler ) : void
handler ISaveRequestHandler
return void