Archives
-
Visual Studio 2008 Extensions for Windows SharePoint Services (VSEWSS) v1.3 Released
For those of you still using Visual Studio 2008 and SharePoint 2007, Microsoft has finally released the long awaited version 1.3 of the integration extensions. Read the notice here and get it from here.
-
Basic Logical Operations with LINQ Expressions
-
Creating a Sandboxed Instance
-
NHibernate 3.0 Released
Finally!
-
Pooled Lifetime Manager for Unity
A pooled lifetime manager for Unity. Creates new objects up to a maximum size and returns them in round-robin sequence. Default pool size is set to 5, but you can override it in the appSettings section with a key:
-
CachingCallHandler and Unity 2.0
Unity 2.0 no longer includes CachingCallHandler, as you can see in here. Since this is something I use very often, I decided to bring it back, with some changes:
-
Common Service Locator for MAF
Here's an implementation of the Common Service Locator for MAF:
-
Reusing Cookies in Different WCF Web Services
-
Server-side AJAX Validator
-
NHibernate 3.0 Cookbook Review
-
Exposing a Class as a COM+ WCF Service
Remember COM+? Well, it is still around, and, in the days of WCF, it still usefull in certain scenarios, mostly because of the services COM+ offers OOTB (transactions, synchronization, object pooling, etc). For those of you that don't know how, I'm gonna demonstrate how you can expose an ordinary .NET class into both a COM+ component and a regular WCF service. Make sure you have Windows SDK 6.x or greater installed.
-
Include LINQ Extension
Updated for NHibernate
-
Delay Loaded Content
-
jQuery 1.4.3 Released
Get it from here.
-
Visual NHibernate Release
Slyce announced yesterday that Visual NHibernate will be officially launched on October 20th, so the beta period discount (30%) ends there. Hurry up if you want to take advantage of the discount!
-
Glimmer
Glimmer allows you to easily create interactive elements on your web pages by harnessing the power of the jQuery library. Without having to hand-craft your JavaScript code, you can use Glimmer’s wizards to generate jQuery scripts for common interactive scenarios. Glimmer also has an advanced mode, providing a design surface for creating jQuery effects based on your existing HTML and CSS.
-
BizTalk 2010
Well, BizTalk 2010 has arrived. This time, you the Developer version is fully featured and free for use in non comercial scenarios. Here are some must-have links, check out specially the Training Kit, and, of course, the Developer Edition download:
-
Detaching an Entity in LINQ to SQL
LINQ to SQL, shamelesly, does not have a Detach method, like most other O/RMs. In one particular case, I needed one - or, at least, I thought I did - so I went to write one, which wouldn't require me to use a base class. Thanks to Reflector, here's what I came up with (only tested it in version 1, not 4):
-
Two Clicks Required
Sometimes, when I have an UpdatePanel and multiple validators on a page, I have to click twice on a LinkButton, even if it has CausesValidation set to false. The control is outside the UpdatePanel, so I'm not sure what causes this. It is a frequent problem, as can be seen on Google.
-
Unit Testing Asp.NET Applications with with Moles and Pex
It has been a while since my last post. I will try to recover, there are some things I would like to talk about. For now, check out this fine tutorial for unit testing ASP.NET applications using Pex and Moles: http://research.microsoft.com/en-us/projects/pex/molesaspnet.pdf.
-
Using the ASP.NET Cache as a Scheduler
-
Dynamic LINQ Methods
Continuing the Dynamic LINQ series, here are some hopefuly useful methods for performing LINQ queries in IQueryable or IQueryable<T> object, with String parameters. The available methods, so far, are:
-
Displaying Empty GridView
What happens if your GridView control does not have any records to display? Well, if you set the EmptyDataText or EmptyDataTemplate properties, the grid will show something, only probably not what you'd like - the normal structure, as if it was populated with records. Here's a possible solution:
-
NDepend 3
Patrick Smacchia, of NDepend fame, was kind enough to offer me a license for its latest version, 3.0, now fully integrated with Visual Studio 2010.
-
Manually Seting a LINQ to SQL Entity's Timestamp
Suppose you want to manually persist your LINQ to SQL entities without an ObjectDataSource or LinqDataSource using the entities' timestamp column. You pick the timestamp, perhaps from an hidden field on your page, but you cannot change the System.Data.Linq.Binary property to another value, because the Binary won't allow it. You need to use reflection, here's how:
-
June Visual Studio 2010 and .NET 4.0 Training Kit Released
The June release of the Visual Studio 2010 and .NET 4.0 Training Kit was released today.
-
NHibernate 2 Beginner's Guide Review
-
NHibernate 2 Beginner's Guide Book
Packt Publishing has recently released a new book on NHibernate: NHibernate 2 Beginner's Guide, by Aaron Cure. I am now reading the final version, which Packt Publishing was kind enough to provide me, and I will soon write about it. I can tell you for now that Fabio Maulo was one of the reviewers, which certainly raises the expectations. In the meanwhile, there's a free chapter you can download, which hopefully will get you interested in it; you can get it from here.
-
Table and Column Checksums
Following my last posts on Change Data Capture and Change Tracking, here is another tip regarding tracking changes: table and colum checksums.
-
Change Tracking
You may recall my last post on Change Data Control. This time I am going to talk about other option for tracking changes to tables on SQL Server: Change Tracking.
-
Visual NHibernate Update
I have previously talked about Visual NHibernate. It has grown since last time, now offering support for multiple databases (SQL Server, Oracle, MySQL, PostgreSQL, Firebird), generates projects from existing databases or from existing Visual Studio projects and produces XML or Fluent mappings, to name just a few. To me it is by far the most interesting tools for working with NHibernate I know of (granted, I haven't tried NHibernate Profiler).
-
NHibernate Tools
Felice Pollano is the author of a two great new tools for working with NHibernate:
-
Enhanced Dynamic LINQ Filtering
-
Browser Uniqueness
The Electronic Frontier Foundation (EFF) has recently published a paper on browsers being tracked by it's unique fingerprint. If you're curious to know what your favorite browser is doing to protect (or not) your privacy, check it here: https://panopticlick.eff.org
-
Lesser Known NHibernate Session Methods
The NHibernate ISession, the core of NHibernate usage, has some methods which are quite misunderstood and underused, to name a few, Merge, Persist, Replicate and SaveOrUpdateCopy.
-
ASP.NET List Control
-
Reading A User's ASP.NET Profile
-
Change Data Capture
There's an hidden gem in SQL Server 2008: Change Data Capture (CDC). Using CDC we get full audit capabilities with absolutely no implementation code: we can see all changes made to a specific table, including the old and new values!
-
Exam 71-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4
Just took the 70-513 exam. Here are some thoughts:
-
NHibernate Portugal Mailing List
I just created a mailing list for the discussion of NHibernate-related issues in portuguese: NHibernate Portugal. Feel free to join and share your experiences and knowledge!
-
TechDays 2010 Portugal - The Day After
Well, TechDays 2010 Portugal is over, time for a balance.
-
Microsoft Developer Training Kits
Updated on October 25th
-
Exam 71-515: TS: Web Applications Development with Microsoft .NET Framework 4
I took the 71-515 exam today. 85 questions, 240 minutes. Here are some notes:
-
Dynamic Filtering
Continuing my previous posts on dynamic LINQ, now it's time for dynamic filtering. For now, I'll focus on string matching.
-
Dynamic LINQ in an Assembly Near By
-
Dynamic LINQ Paging and Sorting
-
Exam 71-516: Accessing Data with Microsoft .NET Framework 4
I had the chance to take the beta version of exam 71-516 today. Here are my thoughts on it: first, I was rather annoyed to discover that I will only know if I passed or not about 8 weeks after the beta period expires (July, 02), which probably means September. It was a difficult exam, especially since I don't have any practice on some of the new Entity Framework options. The items covered, from the most covered to the least covered, were:
-
Yet Yet Another Way To Create An Object
-
Yet Another Way To Create An Object
-
Speeding Up NHibernate Startup Time
One technique I use and posted on the NHUsers mailing list consists in serializing a previously-configured Configuration to the filesystem and deserializing it on all subsequente starts of the application:
-
Initially Unselected DropDownList
One of the most (IMHO) things with DropDownList is its inability to show an unselected value at load time, which is something that HTML does permit.
-
Loading a Template From a User Control
-
ASP.NET MVC 2 Released
Get it while it’s hot from here. Also read the release notes.
-
Introdução ao NHibernate on TechDays 2010
I’ve been working on the agenda for my presentation titled Introdução ao NHibernate that I’ll be giving on TechDays 2010, and I would like to request your assistance.
-
Microsoft TechDays 2010 Portugal
Once again, TechDays is at the door!
-
Three Ways To Create An Object
-
Find Control that Caused a Postback
Sometimes there is the need to find the control that caused the postback from outside the event handler. The following code gives you just that:
-
ASP.NET Events
Here is the full list of all events that occur in an ASP.NET application, from the standard modules, to the page, master page, page controls and master page controls.
-
ASP.NET Dynamic Data NHibernate Provider
My NHibernateDataSource was just a necessary step in order to build an ASP.NET Dynamic Data provider for NHibernate. I am pleased to say that it is now working! Like the NHibernateDataSource, it is only - for now - merely a proof of concept, it needs cleaning up and still misses the association metadata part, which means no links to associated entities, but list, edit, delete and insert are working fine.
-
NHibernateDataSource
I wrote a NHibernateDataSource, which can be used in ASP.NET web forms applications just like their counterparts EntityDataSource and LinqDataSource.