Dixin's Blog
Microsoft Most Valuable Professional (CodingOnWheels.com) & Photographer (PicturesOnWheels.com). Code examples: GitHub.com/Dixin/Blog.
-
Understanding LINQ to SQL (8) Transaction
Database data Changing cannot be talked about without transactions.
Implementing TRANSACTION (BEGIN / COMMIT / ROLLBACK)
The previous post has shown that, when invoking SubmitChanges(), the translated SQL (INSERT / UPDATE / DELETE) are always executed within a TRANSACTION.
Internally, DataContext.SubmitChanges() invokes DataContext.SubmitChanges(ConflictMode.FailOnFirstConflict). The latter is implemented like this:
-
Where Is Transaction Events In SQL Server Profiler?
SQL Server Profiler does not monitor transaction events by default.
After installing SQL Server, when creating a new trace, the default template is “Standard”:
-
Understanding LINQ to SQL (7) Data Changing
-
Understanding LINQ to SQL (6) Working With Deferred Execution
-
Understanding LINQ to SQL (5) Remote And Local Method Call
-
Crazy Bug in Visual Studio 2010 RTM: Copy And Paste
The copy / paste functionality is very buggy in Visual Studio 2010 Beta and RC. In Beta sometimes this even cause Visual Studio crash. Now after using RTM for a week, I found the bug remains, and greatly affect the experience. I searched the Internet and found this comment from Microsoft:
-
Blog Code Font Change: From Courier New to Consolas
Courier New is an excellent monospaced (non-proportional) typeface introduced with Windows 3.1. As a UI designer, I cannot tell how many year I have worked with Courier New. As the release of Visual Studio 2010 and the new MSDN, Consolas becomes the default font of code.
-
Understanding LINQ to SQL (4) Data Retrieving Via Query Methods
-
Playing with the CPU Usage Curve
In the book “The Beauty Of Programming”, which talks about Microsoft interview questions, there is a interesting section: Control the CPU curve of Windows Task Manager.
-
The Volume In Windows Media Center
I developed a tool for Windows Media Center in 2008 in Redmond, and I got a very cool Windows Media Center remote controller. Since then I became a fun of it. Windows Media Center + remote controller makes my Alienware M17x into a powerful home theatre.
-
Understanding LINQ to SQL (3) Expression Tree
-
Understanding LINQ to SQL (2) IQueryable<T>
-
Understanding LINQ to SQL (1) Object-Relational Mapping
-
Naming in Visual Studio 2010 advertisement
A great advertisement for Visual Studio 2010 has been released. Click here to download.
-
Understanding LINQ to Objects (8) The Design Of IEnumerable<T>
-
Understanding LINQ to Objects (3) Iterator Pattern and foreach
[LINQ via C#] - [LINQ to Objects]
-
The protocol of AJAX
This is a true story. This morning I went to office by train of Beijing subway, and 4 developers were sitting next to me and talking about Web development and their Web product. After a while, someone asked an interesting question: What is the protocol of AJAX?
-
Introducing LINQ (3) Programming Paradigms
[LINQ via C#] - [Introducing LINQ]
-
Resolving The nvlddmkm.sys Blue Screen Issue
I started to use ATI discrete graphic cards since 2002. At the end of 2009, I got my first pair of NVIDIA cards, GTX260M SLI , and recently I after I upgraded the driver to the latest 195 release, I encountered the blue screen failure on my laptop with Windows 7.
-
The Order Issue of XAML Attributes
When programming Silverlight, it is neccessary to pay attention to the order of the XAML element’s attributes. Here is a simple example.