예제 #1
0
 internal static void MergeBasRefMatch(BasRefMatch brm, int id)
 {
     db.Cypher
     .Create("(nm:BRGame{newUser})")
     .WithParam("newUser", brm)
     .With("nm")
     .Match("(om:Game{Id:{_id}})")
     .WithParam("_id", id)
     .Merge("(om)-[:mm]->(nm)")
     .ExecuteWithoutResults();
 }
예제 #2
0
파일: Program.cs 프로젝트: a1oleg/MatcheZ
        static void Main(string[] args)
        {
            Repo.StartLocale();

            var oms = Repo.GetExist("Orlando Magic");

            //Orlando Magic
            foreach (ThuuzMatch tm in oms)
            {
                var    s     = tm.Date.Split('/');
                string year  = "20" + s[2];
                string month = s[0].Length == 1 ? ("0" + s[0]) : s[0];
                string day   = s[1].Length == 1 ? ("0" + s[1]) : s[1];

                string ss = year + month + day;

                BasRefMatch fm = new BasRefMatch(ss, tm.T2s);

                Repo.MergeBasRefMatch(fm, tm.Id);
            }
        }