/// <summary>
/// This all would normally be done in your IoC container
/// </summary>
private static void Bootstrap()
{
var base36 = new Base36IdGenerator(
numTimestampCharacters: 12,
numServerCharacters: 6,
numRandomCharacters: 7,
reservedValue: "",
delimiter: "-",
delimiterPositions: new[] { 20, 15, 10, 5 });
var connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
_provider = new EntityFrameworkProvider(connectionString)
{
IsEntityType = type => type.IsSubclassOf(typeof(Createable<>))
};
_provider.SetCurrentUser("Funcular\\Paul");
Createable<string>.IdentityFunction = () => base36.NewId();
}