Skip to content

Instantly share code, notes, and snippets.

View julian-maughan's full-sized avatar

Julian Maughan julian-maughan

  • Perth, Australia
View GitHub Profile
@julian-maughan
julian-maughan / Customer.cs
Created December 19, 2012 05:24
NHibernate Hello World (View associated the blog post here: http://julian.maughan.id.au/2012/12/hello-world-of-nhibernate-world.html)
using System;
namespace NHibernateHelloWorld
{
public class Customer
{
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
}
}
@julian-maughan
julian-maughan / transform.sh
Created March 13, 2012 16:06 — forked from patearl/transform.sh
NHibernate GIT Transform
#!/bin/bash
# To use this, git svn clone the NHibernate repo into an nh-git folder. Use the -s option and no other options.
# Patrick has a current synced copy on his system.
# These people don't seem to appear in any commits. For whatever reason, we are missing hundreds of commits.
# Use this command to get a new list when we find our missing branches.
# git log --format "%aN" | sort -u
# johntmorris=John Morris <johntmorris@users.sourceforge.net>
# jimcool=Jakub MArsik <jimcool@users.sourceforge.net>
@julian-maughan
julian-maughan / MyServiceHost.cs
Created December 4, 2010 14:43
Avoiding Multiple IOC Container Instances in WCF
public class MyServiceHost : ServiceHost
{
private IUnityContainer _ioc;
public IUnityContainer IoC
{
get { return _ioc; }
}
public MyServiceHost(IUnityContainer ioc, Type serviceType, Uri[] baseAddresses)