This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// http://stackoverflow.com/questions/26818882 | |
/// Neo4jClient: Wild char Search do not work when parametarized | |
/// </summary> | |
namespace Question_26818882 | |
{ | |
using Neo4jClient; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq.Expressions; | |
public class CSharpLibrary | |
{ | |
public static bool CheckCompatibility<TResult>(Expression<Func<TResult>> expression) | |
{ | |
if (expression.Body.NodeType != ExpressionType.MemberInit) | |
return false; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Neo4jClient; | |
using Neo4jClient.Cypher; | |
internal class Question_22041696 | |
{ | |
private class CityEntity { public int Id { get; set; } } | |
private class CompanyEntity { public int Id { get; set; } } | |
private class ProfessionEntity { public int Id { get; set; } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Wikipedia Trie* | |
This will generate a super simple (and it is super simple) Trie based on the Wikipedia entry on, well, Tries (see http://en.wikipedia.org/wiki/Trie), and _then_ look at how we can use that to do some simple things like intellisense and spelling guidance. | |
//hide | |
//setup | |
[source,cypher] | |
---- | |
CREATE | |
(initial:en_GB), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open Neo4jClient | |
open Neo4jClient.Cypher | |
open System.Linq | |
open Microsoft.FSharp.Linq.RuntimeHelpers | |
[<CLIMutable>] | |
type Person = { Name:string; Twitter:string } | |
[<CLIMutable>] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using Neo4jClient; | |
using Neo4jClient.Cypher; | |
using Newtonsoft.Json; | |
#region Data objects | |
public enum Relationship | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using Neo4jClient; | |
using Neo4jClient.Cypher; | |
using Newtonsoft.Json; | |
public class LikesAndDislikes | |
{ | |
#region Data objects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open Neo4jClient | |
open System.Linq | |
[<CLIMutable>] | |
type Person = { Name:string; Twitter:string } | |
[<CLIMutable>] | |
type Knows = { How:string } |
NewerOlder