Invalidating sesion configuration when a record is changed

This commit is contained in:
sword
2013-08-12 14:36:01 +08:00
committed by Sebastien Ros
parent 5ed51769ab
commit a7ffb31a57

View File

@@ -154,7 +154,7 @@ namespace Orchard.Data {
if (recordType.BaseType != null)
hash.AddTypeReference(recordType.BaseType);
foreach (var property in recordType.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public)) {
foreach (var property in recordType.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance)) {
hash.AddString(property.Name);
hash.AddTypeReference(property.PropertyType);