使用SP的linq到sql进行asyn调用 [英] asyn calls with linq to sql using SP

查看:68
本文介绍了使用SP的linq到sql进行asyn调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试使用存储过程对linq到sql进行异步调用时遇到了一些困难.我真的不知道该如何开始应对这种情况.

这是我对我的网络服务的常规通话

I am having a little difficulty trying to make asynchronous calls to a linq to sql using Stored procedures. I really don''t know how to start to approach the situation.

this is my regular call to my webservice

<webmethod()> _
       Public Function _LoadPostingArchive() As List(Of _sp_PostingsResult)
      Using db As New postingsDataContext
          Return db._sp_Postings("archive", Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, _
                                  Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, _
                                  Nothing, Nothing, Nothing, Nothing).ToList()
      End Using
  End Function



我正在尝试使此调用成为异步调用,但是就像我说的那样,我找不到太多关于这种方法的信息,我想使它具有可扩展性,随着用户和数据的增长,我只修改了Web服务,其余的代码是不受干扰

如果获得帮助,并且不清楚,请让我知道,以便我进一步阐明问题.



I am trying to make this call an asynchronous call but like i said I can''t find much about this approach I want to make create something scaleable that as my users and data grows I only modify my webservice and the rest of the code is undisturbed

any help if apprciated and if something is not clear please let me know so I can further clarify the questions

推荐答案

您所做的任何事情都与使其无关不同步的.为此,您需要AJAX或ASP.NET AJAX库,如果您想让它变得容易的话.您的VB在服务器上运行.您需要在客户端上运行js才能使其保持同步.
Nothing you''ve done, is related to making it asyncronous. You need AJAX for that, or the ASP.NET AJAX library, if you want it made easy for you. Your VB runs on the server. You need to run js on the client to make it asynch.


这篇关于使用SP的linq到sql进行asyn调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆