예제 #1
0
        private void AddEmployee()
        {
            using (var session = this.database.CreateSession())
            {
                var acme = new Organisations(session).FindBy(M.Organisation.Name, "Acme");
                var jude = new People(session).FindBy(M.Person.FirstName, "Jude");

                acme.AddEmployee(jude);

                var derivationLog = new DerivationLog();
                var derivation    = new Derivation(session, derivationLog);
                var validation    = derivation.Derive();

                var list = derivationLog.List;
                //derivationLog.List.RemoveAll(v => !v.StartsWith("Dependency"));
            }
        }