Archives
-
Inline Image in ASP.NET
Update February 2nd 2013: you can use tag mapping to have all your controls render inline images.
-
Checking if an Unloaded Collection Contains Elements with NHibernate
If you want to know if an unloaded collection in an entity contains elements, or count them, without actually loading them, you need to use a custom query; that is because the Count property (if the collection is not mapped with lazy=”extra”) and the LINQ Count() and Any() methods force the whole collection to be loaded.
-
NHibernate Pitfalls: Querying a Collection Count
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Lazy Entities and Virtual Members
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Fetch and Lazy
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: SELECT N + 1
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Merge
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
Workshop Novidades ASP.NET 4.0
No próximo dia 8 de Outubro irei dar um pequeno workshop, de 3 horas, nas instalações da Flag, em Coimbra:
-
NHibernate Pitfalls: Lazy Properties and Closed Sessions
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Entity Refresh
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Ghosts
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate 3.2 Released
NHibernate 3.2 was released some weeks ago. Get the source code from the SVN repository here: https://nhibernate.svn.sourceforge.net/svnroot/nhibernate.
-
NHibernate Pitfallls: Composite Keys
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Large Strings
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Batching and Native Id Generators
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: HQL, LINQ and Eager Loading
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Table Per Concrete Type and Native Id Generators
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Stateless Sessions
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
SharePoint 2010 Service Pack 1
Install updates by this order:
-
NHibernate Tools: Visual NHibernate
You probably know that I’m a big fan of Slyce Software’s Visual NHibernate. To me, it is the best tool for generating your entities and mappings from an existing database (it also allows you to go the other way, but I honestly have never used it that way).
-
NHibernate Pitfalls: Private Setter on Id Property
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls Index
Updated on June 22th
-
NHibernate Pitfalls: Flushing Changes
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
Adding Custom SQL Functions to NHibernate at Runtime
The classic way to register custom SQL functions on NHibernate consists in subclassing a specific Dialect (for example, MsSql2008Dialect) and making a call to the protected method RegisterFunction somewhere in the constructor. Of course, if you use multiple dialects, you have to subclass them all.
-
LINQ to NHibernate Extensions
Giorgetti Alessandro, aka, Guardian, author of the blog PrimordialCode, has published recently some great posts on extending LINQ to NHibernate. You can read them here, here and here.
-
NHibernate Pitfalls: Adding to a Bag Causes Loading
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Lazy Properties in Non-Lazy Entities
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Bags and Join
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Many to Many and Inverse
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: Specifying Event Listeners in XML Configuration
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
Loading Entities from the First Level Cache
You can use the following code to load all entities of a given type from the first level cache (the entities that were loaded from the current session):
-
NHibernate Pitfalls: Collection Restrictions
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
NHibernate Pitfalls: The SaveOrUpdate Event
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
-
Service Locator – Dependency Resolver Bridge
-
Adding Modules Dynamically to ASP.NET
As you may already know, ASP.NET 4.0 brought along with it a new mechanism to execute methods before the application start event (the Application_Start method): the PreApplicationStartMethodAttribute. This attribute, when applied to an assembly, indicates a method which is to be run before the application starts. If your web application references any assembly which has this attribute, it will run the method it declares, throwing an exception it if is not found.
-
NHibernate Id Generator With Suffix
I had recently the need for using an id generator with two requirements:
-
NHibernate Interceptor for Dynamic Proxy Generation
NHibernate comes along with a nice code generation API that is used, for example, for lazy-loading proxy generation. It can, however, be used for other purposes, such as adding interfaces to the loaded entities, for example, INotifyPropertyChanged coming to my mind. Ayende and José have talked about this in the past, but I decided to publish my own updated version.
-
Calling WCF Web Services from JavaScript
-
New Location for .NET 4 GAC
.NET 4 newcomers may have realised that the old GAC location (%WINDIR%\Assembly) does not contain .NET 4 global assembly cache assemblies. Indeed, they have moved to %WINDIR%\Microsoft.NET\Assembly. It is worth noting that this folder does not use the shell extension that the older one uses, which prevents us from directly looking at the folder's contents, which, IMO, is nice (I mean, the new behavior). The old folder continues to host pre-.NET 4 assemblies.
-
NHibernate 3.1.0 Released
-
Web Developers Can Feel Like Kids in a Candy Store
A very interesting read about the latest Microsoft technologies from Vishal Joshi: Web Developers can feel like Kids in a Candy Store.
-
Local Entities with NHibernate
You may know that Entity Framework Code First has a nice property called Local which lets you iterate through all the entities loaded by the current context (first level cache). This comes handy at times, so I decided to check if it would be difficult to have it on NHibernate. It turned out it is not, so here it is! Another nice addition to an NHibernate toolbox!
-
Microsoft Web Camps Training Kits
Microsoft has a nice little site called Web Camps Training Kits where are available a number of training kits - presentation and source code - for some popular technologies:
-
Getting Current Native Thread
The native OS threads running in the current process are exposed through the Threads property of the Process class. Please note that this is not the same as a managed thread, these are the actual native threads running on the operating system.
-
ODAC Entity Framework and LINQ Beta Released
At last! Get it from here.
-
ASP.NET MVC 3 Released
At last! Go get it from here.
-
Enterprise Library Extensibility Hands-on Labs Released
The Patterns & Practices team has just released the Enterprise Library Extensibility Hands-on Labs. It provides step by step guidance on creating:
-
Generating PDF Files With iTextSharp
I recently had the need to generate a PDF file containing a table where some of the cells included images. Of course, I used iTextSharp to do it. Because it has some obscure parts, I decided to publish a simplified version of the code I used.