|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TableAdapter Scalar or "Single Value" QueriesHow do you specify the data type of the return value of Scalar queries in
Visual Web Developer through the IDE? Sometimes VWD gets it right, but most of the time it specifies the type as "Object". To work around this, I have to manually change the ScalarCallRetval attribute value from System.Object to System.Int32 in the XSD file. It's a real pain, and I feel like I'm sort of hacking the file when I do this. TIA. Fred Taylor wrote:
> *How do you specify the data type of the return value of Scalar
> queries in Fred look at
[url]http://msdn2.microsoft.com/en-US/library/ms233822[/url](VS.80).aspx> Visual Web Developer through the IDE? Sometimes VWD gets it right, > but most > of the time it specifies the type as "Object". > > To work around this, I have to manually change the ScalarCallRetval > attribute value from System.Object to System.Int32 in the XSD file. > It's a > real pain, and I feel like I'm sort of hacking the file when I do > this. TIA. * This page is good for working with TableAdapter (DataSourceObjects) in code. -- cyamato ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------
Cool Web Parts?
Newbie - question concerning page behaviour One comment about the implementation of Session Microsoft Spreadsheet Control? FormView DateTime bug?? Problems with Custom Web Controls in VS 2005 Time textbox control Strange temporary error after applying .Net SP1 problem with the AutoPostBack property DataList Cell text |
|||||||||||||||||||||||