Skip to content

Commit

Permalink
Merge pull request #417 from Geeksltd/fix-audit-isentity
Browse files Browse the repository at this point in the history
fix IsEntity
  • Loading branch information
atir-naveed-geeksltd authored Sep 21, 2023
2 parents 811310a + 6661793 commit 56d3c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Olive.Audit/AuditExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static bool IsEntity(this PropertyInfo property, object obj)

var type = property.PropertyType;

return (property.GetValue(obj) is IEntity) || (type.IsClass
return (type.InhritsFrom(typeof(IEntity))) || (type.IsClass
&& !type.Assembly.FullName.StartsWith("Olive.Entities")
&& !type.Assembly.FullName.StartsWith("System"));
}
Expand Down

0 comments on commit 56d3c9e

Please sign in to comment.