clockAugust 22, 2009 22:41 by authorPaul Alexander commentComments (0)

On occassion one might have the need to browse .NET’s Global Assembly Cache – to manually update a file during development or to remove an assembly left behind by an installer. Normally you’d use gacutil to add or remove assemblies from the GAC during testing and development. However if the assembly was added by an installer, gacutil refuses to remove it. More...



clockAugust 10, 2009 15:18 by authorPaul Alexander commentComments (0)

In the previous post, I showed how to use the Session.Get<T> syntax against an arbitrary property on the entity. The primary limitation with that method is that it only works for constant values. The following will work with constants, local variables, return values from methods, etc. More...



clockAugust 7, 2009 01:09 by authorPaul Alexander commentComments (0)

While many of my entity classes use surrogate primary keys, they also have natural keys (Product SKU for example). When I want one of those entities it’s more natural to use the natural key, naturally. Normally that requires a CreateCriteria call, I’d rather just call Get<T> like I can with the surrogate keys. So I created an extension method that lets me do this:

var product = session.Get<Product>( x => x.Sku == “DLX” );
More...


Products : News : Store : Search : Contact : About XHEO : Site Map
Copyright © 2002-2009 XHEO INC. All Rights Reserved.

XHEO.com: Copy Protection. Encryption. Deployment.
Copyright © 2002-2009 XHEO INC. All Rights Reserved.