Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Why ObjectResult is used as return type of webget method in wcf dataservices

$
0
0
<div class="votecell post-layout--left"> <div class="vote">0 down vote favorite<div class="favoritecount"></div> </div> </div> <div class="postcell post-layout--right"> <div class="post-text" itemprop="text">

i am reading wcf from here "https://docs.microsoft.com/en-us/dotnet/framework/data/wcf/how-to-define-a-service-operation-wcf-data-services"

and it says The method must return one of the following:

void(NothinginVisualBasic)IEnumerable<T>IQueryable<T>An entity type in the data model that the data service exposes.

A primitive class such as integer orstring.

but i can see webget is returning

[WebGet]publicSystem.Data.Objects.ObjectResult<dcHCGetCust>   getCusts(Nullable<long>CustId){returnthis.CurrentDataSource.uspGetCust(intProjectId);}

so please tel me what is it (objectResult) and where i can read it in wcf ( any link would be appreciatable)

yours sincerely

</div> </div>

Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>