Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

i am making a wcf service program with n tier app (dataaccess tier, WCF, Presentation(asp.net))C#

i have a page where you can modify a record but i am directly connected to the database and im not using a dataset. On this page there are 3 texboxes to modify the users.
I want to find out is there a way to navigate through database with buttons in that page and if you want modify a user you are on then its posssible.

if you maby suggest to use a dataset then someway i need to refresh the dataset so if i added a new record the "modify" page knows there is a new record?
Posted

1 solution

It will be best to use LINQ to SQL where you map objects to your database relational tables

Then using Operation Contracts you can modify your objects by posting a service call to your WCF services, in your concrete implementation, modify your objects using data context

The navigation is the similar, return a list of objects from your service call and bind them to the gridview
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900