CutexBabies
CutexBabies

Reputation: 103

how to use the data in the database in Web Services in C#

i am a newbiest of c#, i need to write a webs service in C#. However i meet some problem

  1. how to connect the database that i create in the visualstudio ( i click on the server explorer tab, right click on the data connection and click on create new sql server data) with the web service
  2. where should i call the data out from the database at?

really urgently...relpy asap....hope anyone can tell me the answer in the short period of time

if can show some examples or codes of this

Upvotes: 0

Views: 114

Answers (2)

Farshid Zaker
Farshid Zaker

Reputation: 1990

You can use linq-to-sql as a rapid solution.

Just add a new Item "LINQ to Sql Classes" to your project. Drag your tables into designer and you have the equivalent classes. Using LINQ is too simple. Just google for every scenario and you will find tones of samples.

LINQ 101 examples

LINQ Introduction for VB

LINQ samples for VB

Upvotes: 1

Aljaz Vidmar
Aljaz Vidmar

Reputation: 675

Take a look at some LINQ examples.

Upvotes: 0

Related Questions