/NHibernate-4x-Cookbook

Code repository for NHibernate 4.x Cookbook, published by Packt publishing

MIT LicenseMIT

#NHibernate 4.x Cookbook This is the code repository forNHibernate 4.x Cookbook,published by Packt.It contains all the supporting project files necessary to work through the book from start to finish.

Instructions and Navigation

All of the code is organized into folders.Each folder starts with a number followed by the application name. The commands and instructions will look like the following:

using System.IO; using log4net; namespace MyApp.Project.SomeNamespace {

public class Foo
{
    private static ILog log = LogManag-er.GetLogger(typeof(Foo));

    public string DoSomething()
    {
        log.Debug("We're doing something.");
        try
        {
            return File.ReadAllText("cheese.txt");
        }
        catch (FileNotFoundException)
        {
            log.Error("Somebody moved my cheese.txt");
            throw;
        }
    }
}

}

Related products: