using System.Reflection; namespace Abp.Domain.Uow { /// /// A helper class to simplify unit of work process. /// internal static class UnitOfWorkHelper { /// /// Returns true if given method has UnitOfWorkAttribute attribute. /// /// Method info to check public static bool HasUnitOfWorkAttribute(MemberInfo memberInfo) { return memberInfo.IsDefined(typeof(UnitOfWorkAttribute), true); } } }