开发者

How do i send DataSet's table /List of objects to client app?

开发者 https://www.devze.com 2023-03-05 23:43 出处:网络
Hi to all good people out there. My server c# app has a database stored in .sdf file. It loads data in dataset and then list of objects. It connects to c# client app through sockets.

Hi to all good people out there. My server c# app has a database stored in .sdf file. It loads data in dataset and then list of objects. It connects to c# client app through sockets. Right now to send a table i do something like this: table -> tobytes -> socket -> totable.

Is there any way i could easily send a dataset's table/a list of objects to client app? Or maybe a sql server is an answer? But my server app needs to do much more than just being a database. Or it will just take way more time than simple "tobytes" and "totable" methods and i shouldnt even care?

Please, give me an adivice in wich wa开发者_开发知识库y to dig :)


ASP.NET (a.k.a. ASMX web services) is very easy to set up on the server, and ASMX web services are very easy to connect to from a .NET client application. You can write web services that return DataSets or lists of objects or whatever you like.


If you are using Visual Studio you could use the Web Service Software Factory That way you can create an ASMX or WCF Service, includes designing your service with diagrams, so that you only need to code the business logic, and it's pretty easy to connect to a service that way (just check that you download the right version for your IDE)

0

精彩评论

暂无评论...
验证码 换一张
取 消