Exemplo n.º 1
0
        public void RecurrenceParentTest()
        {
            var dept      = db.Depts.FirstOrDefault(s => s.Code == "000100010001");
            var persister = db.CreateTreePersister <Dept>();

            foreach (var item in persister.RecurrenceParent(dept).Select(s => s.Code))
            {
                Console.WriteLine(item);
            }
        }