I’ve googled this question repeatedly, but have not found a great answer anywhere. I’m sure someone familiar with ASP.net could answer this pretty easily. What is the best way to connect to a database through ASP.net? LINQ to SQL? Entity framework? I’m not able to find an overview of the different methods to connect or of the place that these technologies have in ASP.net. An explanation or a pointer to a great link would be appreciated. Thanks.
I’ve googled this question repeatedly, but have not found a great answer anywhere. I’m
Share
This is, unfortunately, a question without a clear cut answer as it depends on your application need, flavor of database you need to interact with, standards currently in place at your target deployment environment and application design considerations.
Most often relational database access is accomplished in asp.net through either direct or indirect usage of ado.net. If you plan on adhering to common, current practice you should look into using an ORM to speed development time, namely either Entity Framework or NHibernate. (Linq to SQL was great for SQL Server but has been eclipsed by EF.). My preference is NH.
Sorry for the somewhat subjective answer, but this is unintentionally a subjective question.
Good luck!