Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kyle Pace kylepace

🏠
Working from home
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am kylepace on github.
  • I am kylepace (https://keybase.io/kylepace) on keybase.
  • I have a public key ASDJKJta_wDsD3Z9pKXUque2yY4PzOuhZSlNl4Gn0tnOBwo

To claim this, I am signing this object:

@kylepace
kylepace / LunchangeNHibernateTestSetUp.cs
Created Oct 10, 2011
Lunchage NHibernate Base Set Up
View LunchangeNHibernateTestSetUp.cs
[TestClass]
public class BaseNhTest
{
protected Configuration Config;
private ISession session;
[TestInitialize]
public void Setup()
{
@kylepace
kylepace / LunchageCreateSchema.cs
Created Oct 10, 2011
Export Schema Test Class
View LunchageCreateSchema.cs
[TestClass]
public class CreateSchemaTests : BaseNhTest
{
[TestMethod]
public void ExportSchema()
{
new SchemaExport(Config).Create(false, false);
}
}
@kylepace
kylepace / LunchageRestaurantMapper.cs
Created Oct 10, 2011
Lunchage Restaurant Mapper
View LunchageRestaurantMapper.cs
public class RestaurantMappings : ClassMapping<Restaurant>
{
public RestaurantMappings()
{
Bag(x => x.Tags, x => { }, x => x.ManyToMany(z => z.Column("TagId")));
}
}
@kylepace
kylepace / LunchageConventionMapper.cs
Created Oct 10, 2011
NHibernate 3.2 Convention Mapper
View LunchageConventionMapper.cs
using NHibernate.Mapping.ByCode;
namespace Lunchage.Domain.DataAccess.Mappings
{
public class ConventionsMapper
{
private readonly ConventionModelMapper conventionModelMapper;
private readonly HbmMapping mapping;