Moved to fluent. Added support for Modifiers. Fixtures to load intial test data

This commit is contained in:
unknown committed 2011-01-30 12:44:05 +05:30
1 parent c841dc25f4
commit eb48c3754a
272 files changed
+10470 -47160

No files matched your search

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using Tanshu.Data.DAO;
using FluentNHibernate.Automapping;
using FluentNHibernate;
namespace Tanshu.Accounts.SqlDAO
{
public class StoreConfiguration : DefaultAutomappingConfiguration
{
public override bool ShouldMap(Type type)
{
return type.Namespace.StartsWith("Tanshu.Accounts.Entities");
}
public override bool IsId(Member member)
{
string key = member.DeclaringType.Name + "ID";
return key == member.Name;
}
public override bool IsDiscriminated(Type type)
{
return true;
}
}
}