0

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

CutexBabies
  • 103
  • 1
  • 4
  • 10

2 Answers2

1

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

Farshid Zaker
  • 1,960
  • 2
  • 22
  • 39
0

Take a look at some LINQ examples.

Aljaz Vidmar
  • 675
  • 5
  • 11