DBTypes.Integer should be used when possible.

Mar 29, 2012 at 2:51 PM

 

//Default save the value as a Nvarchar.

 

 

 

 

 

 

 

this._dataType.DBType = DBTypes

.Nvarchar;

 

 

 

if (this.DropDownListSave.SelectedValue == "fullMedia"

)

{

 

 

//If the id and the path need to be saved, make it Ntext because it's will be stored as XML.

 

 

this._dataType.DBType = DBTypes

.Ntext;

}

 

 

else if (this.RadioSelectMultipleNodes.SelectedValue == "False"

)

{

 

 

this._dataType.DBType = DBTypes

.Integer;

}