Results 1 to 3 of 3

Thread: Return Types for XSD Functions

  1. #1
    njsokalski is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2011
    Posts
    102
    Reputation
    31

    Return Types for XSD Functions

    I have an XSD file for all the tables in my SQL Server database. In the TableAdapters in the XSD file, some of my queries return scalar values, but the code for the functions generated by Visual Studio 2010 return an Object rather than a typed value. I know how to manually add functions using Partial classes, and even though this works, the functions that I manually create do not show up in the XSD file (so it's easy to forget that I have them) and they are not generated automatically. Shouldn't there be a way to specify what the return type should be for scalar functions? Thanks.
    Nathan Sokalski

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,346
    Reputation
    1543
    Are we talking about stored procedures in the database? Are these queries added during the initial wizard or in the designer at a later time?

  3. #3
    njsokalski is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2011
    Posts
    102
    Reputation
    31
    I am talking about stored procedures in the database. The stored procedures may or may not have existed when the table & table adapter were added to the XSD, but the methods were added to the table adapter afterwards.
    Nathan Sokalski

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking