By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,948 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,948 IT Pros & Developers. It's quick & easy.

Linq to SQL

P: 24

I am developing a application which allows users to ADD/UPDATE/DELETE data from database via a datagridview.

To do this user has to select a table from a dropdown list and the grid shows data based on the table selected.
The total number of tables available for the user can be upto 30.

Right now I am using builtin ADO.NET objects like the dataset and datatable to display and manipulated the data.

I want to know instead of using the dataset and datatable , how can I make use of linq to sql classes.
The main thing here is , I get the table structure only at the runtime based on the user selection.

Thanks & Regards,

Oct 15 '12 #1
Share this Question
Share on Google+
1 Reply

P: 43
linq to sql is kinda deprecated. It requires you make some strongly typed classes and decorate them with attributes or use sqlmetal or something to gen up. That will not work for you since you do not know the schema until runtime.

The replacement entity framework also doesnt handle untyped data well.
Oct 25 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.