/// <summary> /// Returns a value indicating whether this item can be inserted /// </summary> /// <param name="annotatedItem">The metadata item to check insert support for </param> /// <returns>A value indicating whether this item can be inserted</returns> public static bool SupportsInsert(this IAnnotatedItem annotatedItem) { return(annotatedItem.SupportsOperation(annotation => annotation.SupportsInsert)); }
/// <summary> /// Returns a value indicating whether this item can be deleted /// </summary> /// <param name="annotatedItem">The metadata item to check delete support for </param> /// <returns>A value indicating whether this item can be deleted</returns> public static bool SupportsDelete(this IAnnotatedItem annotatedItem) { return(annotatedItem.SupportsOperation(annotation => annotation.SupportsDelete)); }
/// <summary> /// Returns a value indicating whether this item can be queried /// </summary> /// <param name="annotatedItem">The metadata item to check querying support for </param> /// <returns>A value indicating whether this item can be queried</returns> public static bool SupportsQuery(this IAnnotatedItem annotatedItem) { return(annotatedItem.SupportsOperation(annotation => annotation.SupportsQuery)); }