Breaking Changes. Upgrade Script in Sql directory. Deployed

This commit is contained in:
unknown committed 2011-02-18 22:24:48 +05:30
1 parent d4cfa92848
commit 9ed5843dbd
86 files changed
+2616 -2358

No files matched your search

@@ -5,6 +5,7 @@ using FluentNHibernate;
using FluentNHibernate.Conventions.Instances;
using FluentNHibernate.Conventions.Inspections;
using FluentNHibernate.Conventions.AcceptanceCriteria;
using System.Diagnostics;
namespace Tanshu.Accounts.Conventions
{
@@ -16,39 +17,12 @@ namespace Tanshu.Accounts.Conventions
|| (x.Property.PropertyType.IsGenericType &&
x.Property.PropertyType.GetGenericTypeDefinition() == typeof(Nullable<>) &&
x.Property.PropertyType.GetGenericArguments()[0].IsEnum)));
//criteria.Expect(x => x.Property.PropertyType.IsEnum);
}
public void Apply(IPropertyInstance target)
{
Trace.TraceInformation(string.Format("Custom Enum for {0}.{1}", target.EntityType.Name, target.Property.Name));
target.CustomType(target.Property.PropertyType);
}
}
//public class EnumConvention : IPropertyConvention, IPropertyConventionAcceptance
//{
// #region IPropertyConvention Members
// public void Apply(IPropertyInstance instance)
// {
// instance.CustomType(instance.Property.PropertyType);
// }
// #endregion
// #region IPropertyConventionAcceptance Members
// public void Accept(IAcceptanceCriteria<IPropertyInspector> criteria)
// {
// criteria.Expect(x => x.Property.PropertyType.IsEnum ||
// (x.Property.PropertyType.IsGenericType &&
// x.Property.PropertyType.GetGenericTypeDefinition() == typeof(Nullable<>) &&
// x.Property.PropertyType.GetGenericArguments()[0].IsEnum)
// );
// }
// #endregion
//}
}