internal static bool IsConditionless(this PropertyPathMarker marker) { return(marker == null || (marker.Name.IsNullOrEmpty() && marker.Type == null)); }
/// <summary> /// Create a strongly typed string representation of the path to a property /// <para>i.e p => p.Arrary.First().SubProperty.Field will return 'array.subProperty.field'</para> /// </summary> /// <typeparam name="T">The type of the object</typeparam> /// <param name="path">The path we want to specify</param> /// <param name="boost">An optional ^boost postfix, only make sense with queries</param> public static PropertyPathMarker Path <T>(Expression <Func <T, object> > path, double?boost = null) where T : class { return(PropertyPathMarker.Create(path, boost)); }