Misc. forgot all changes

Working on Cashier Checkout
This commit is contained in:
unknown committed 2011-02-05 01:00:55 +05:30
1 parent 0f323f8fab
commit 1400f42989
32 files changed
+4591 -255

No files matched your search

@@ -0,0 +1,33 @@
//using System;
//using FluentNHibernate.Conventions;
//using System.Reflection;
//using FluentNHibernate;
//using FluentNHibernate.Conventions.Instances;
//using FluentNHibernate.Conventions.Inspections;
//using FluentNHibernate.Conventions.AcceptanceCriteria;
//using Tanshu.Accounts.Contracts;
//namespace Tanshu.Accounts.Conventions
//{
// public class AllowNullConvention : IPropertyConvention, IPropertyConventionAcceptance
// {
// public void Accept(IAcceptanceCriteria<IPropertyInspector> criteria)
// {
// criteria.Expect(
// x => !this.IsNullableProperty(x)
// || x.Property.MemberInfo.GetCustomAttributes(typeof(AllowNullAttribute), true).Length > 0);
// }
// public void Apply(IPropertyInstance instance)
// {
// instance.Nullable();
// }
// private bool IsNullableProperty(IExposedThroughPropertyInspector target)
// {
// var type = target.Property.PropertyType;
// return type.Equals(typeof(string)) || (type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>)));
// }
// }
//}