/// <summary> /// Determine whether specified <paramref name="modelMember"/> changes should not be registered in protocol. /// </summary> /// <param name="modelMember">The model member.</param> /// <returns>NotForProtocol attribute value</returns> public static bool NotForProtocol(this IModelMember modelMember) { return(modelMember == null || modelMember.GetValue <bool>("NotForProtocol")); }
/// <summary> /// Determine whether specified <paramref name="modelMember"/> should not be included in snapshots. /// </summary> /// <param name="modelMember">The model member.</param> /// <returns>NonSnapshot attribute value</returns> public static bool NonSnapshot(this IModelMember modelMember) { return(modelMember == null || modelMember.GetValue <bool>("NonSnapshot")); }