Database configuration method. When used, this method will tell Editor
what information you want to be wirtten to a database on file upload, should
you wish to store relational information about your files on the database
(this is generally recommended).
Namespace:
DataTables
Assembly:
DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax public Upload Db(
string table,
string pkey,
Dictionary<string, Object> fields
)
Parameters
- table
- Type: SystemString
Name of the table where the file information should be stored - pkey
- Type: SystemString
Primary key column name. This is required so each row can
be uniquely identified. - fields
- Type: System.Collections.GenericDictionaryString, Object
A list of the fields to be wirtten to on upload. The
dictonary keys are used as the database column names and the values can be
defined by the 'DbType' enum of this class. The value can also be a string,
which will be written directly to the database, or a function which will be
executed and the returned value written to the database.
Return Value
Type:
UploadSelf for chanining
See Also