Feb 28, 2009, 7:42 AM
Best Approach on data access
Hello,
First of all great job!
After looking at your examples I've seen a lot of different possibilities to access a database, some better than the other. The problem I have now (also because I'm rather new on ASP.NET) is I don't know anymore what is the best approach. I really like the approach on the datacontext (linq to sql) but in your samples this is only used to retrieve data. In the samples for saving data and such you use a regular sqldatasource embedded in the aspx file.
I want to do the following: having a grid listing all my records, below that grid a tabpanel with a general tab that presents a form to edit the selected record (see attachment).
I was wondering what is the best approach on data access to do the updating, inserting and deleting of a record, in combination with coolite.
To be honest I don't like the inline sqldatasource but rather the dbml approach, because I want to use these entities later on in other screens.
Another problem I have is that when I want to save the record, I've kind of lost my GUID key...
Thanks in advance for helping me out.
Kind regards,
Reno
First of all great job!
After looking at your examples I've seen a lot of different possibilities to access a database, some better than the other. The problem I have now (also because I'm rather new on ASP.NET) is I don't know anymore what is the best approach. I really like the approach on the datacontext (linq to sql) but in your samples this is only used to retrieve data. In the samples for saving data and such you use a regular sqldatasource embedded in the aspx file.
I want to do the following: having a grid listing all my records, below that grid a tabpanel with a general tab that presents a form to edit the selected record (see attachment).
I was wondering what is the best approach on data access to do the updating, inserting and deleting of a record, in combination with coolite.
To be honest I don't like the inline sqldatasource but rather the dbml approach, because I want to use these entities later on in other screens.
Another problem I have is that when I want to save the record, I've kind of lost my GUID key...
Thanks in advance for helping me out.
Kind regards,
Reno