(Omar AL Zabir) Linq to Sql does not come with a function like .Delete(ID) which allows you to delete an entity using its primary key. You have to first get the object that you want to delete and then call .DeleteOnSubmit(obj) to queue it for delete. Then you have to call DataContext.SubmitChanges()
Tag: Development
Using AutoComplete in the AJAX Toolkit in C#
This tutorial was created with and aimed toward users of Visual Studio.NET 2008. 2005 can be used, but Microsoft’s ASP.NET AJAX Extensions, which can be downloaded at this location, must be installed. Also, if using 2005, some additional steps may be required that are not listed in this article.
Explore the Data Access Options in Visual Studio 2008
(Julia Lerman) In Visual Studio 2008 running on the .NET framework 3.5, developers can not only create DataReaders and DataSets; Microsoft has also added LINQ to SQL, Entity Framework, and ADO.NET Data Services, which leverages the first two. These new options of course, mean that you have new synta
Application Administration: The Next Frontier for the DBA
(Juan C. Irizarry) The field of database administration is constantly evolving and growing. Enterprise-wide applications, higher efficiency demands and the need to align IT roles more with the business create the necessary elements to engage DBAs into fields in the periphery of their databases. The
New Features in Visual Studio 2010 and the .NET Framework 4.0
(mendhak) Visual Studio 2008 may be better than sliced bread, but the development team at Microsoft has already been working on the next release. They have recently given us Visual Studio 2010 and the .NET Framework 4.0 as a Community Technology Preview (CTP); it boasts several features that would a
Why should developers use LINQ?
In this video, Adam Cogan talks about why LINQ functionality is useful to developers.
Keeping Denormalized Values Correct
(Kenneth Downs) A normalized database stores each fact in exactly one place. This makes for very robust write operations, it is much easier to get things right on the way in. But it becomes much harder to get things out efficiently or easily, so very often we denormalize, that is, we store facts in
ASP.NET Caching – Improving Performance – Output Cache
(Gil Fink) What is ASP.NET caching mechanism? When to use caching? and how can I use it in order to improve my site performance? are the questions this post series is going to answer. In todays post Ill introduce the output cache.
Improving Web Development Using Virtualization
(Scott Mitchell) Most web developers have a particular development environment on their computer. They may have the .NET Framework version 3.5 and Visual Studio 2008 installed, along with Microsoft SQL Server 2005, Internet Explorer 7 and Firefox 3. In a perfect world this environment would be stati
Test Driven Development with ASP.NET MVC
(Timothy Khouri) One of the biggest benefits of MVC is it’s direct link to Test Driven Development. Because of some of the new features of ASP.NET MVC Preview 5 (ModelBinders in particular), testing your Action methods is even easier. This article will demonstrate how easy it is to ensure the qualit
