C# Class Serenity.Services.EmbeddedMultiFileUploadBehaviourAttribute

Inheritance: SaveRequestBehaviourAttribute
Exibir arquivo Open project: volkanceylan/Serenity

Public Methods

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

Private Methods

Method Description
CopyTemporaryFiles ( ISaveRequestHandler handler, UploadedFile oldFileList, UploadedFile newFileList, FilesToDelete filesToDelete ) : string
ParseAndValidate ( string json, string key ) : UploadedFile[]

Method Details

EmbeddedMultiFileUploadBehaviourAttribute() public method

public EmbeddedMultiFileUploadBehaviourAttribute ( string filesField, string fileNameFormat = "{1:00000}/{0:00000000}_{2}", bool copyFilesToHistory = false, string subFolder = null, bool storeSubFolderInDB = false ) : Serenity.Data
filesField string
fileNameFormat string
copyFilesToHistory 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