Пример #1
0
        public static CypherReturn Property <T>(this CypherReturn cypherReturn, string name, bool optional)
        {
            // Remove the Previous type of Node or Relationship
            cypherReturn.ReturnTypes.RemoveAt(cypherReturn.ReturnTypes.Count - 1);

            // Add the correct Property Return Type
            cypherReturn.ReturnTypes.Add(typeof(T));

            return((CypherReturn)cypherReturn.Append(".{0}{1}", name, optional ? "?" : string.Empty));
        }
Пример #2
0
 public static CypherReturn Property <T>(this CypherReturn cypherReturn, Enum name)
 {
     return(Property <T>(cypherReturn, name.ToString(), false));
 }
Пример #3
0
 public static CypherReturn Property <T>(this CypherReturn cypherReturn, Enum name, bool optional)
 {
     return(Property <T>(cypherReturn, name.ToString(), optional));
 }
Пример #4
0
 public static CypherReturn Property <T>(this CypherReturn cypherReturn, string name)
 {
     return(Property <T>(cypherReturn, name, false));
 }