Ejemplo n.º 1
0
 /// <summary>
 /// Create a strongly typed string representation of the name to a property
 /// <para>i.e p => p.Arrary.First().SubProperty.Field will return '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 PropertyNameMarker Name <T>(Expression <Func <T, object> > path, double?boost = null)
     where T : class
 {
     return(PropertyNameMarker.Create(path, boost));
 }
Ejemplo n.º 2
0
 internal static bool IsConditionless(this PropertyNameMarker marker)
 {
     return(marker == null || (marker.Name.IsNullOrEmpty() && marker.Expression == null && marker.Type == null));
 }