Example #1
0
        private void Derive(Extent extent)
        {
            var derivation = new Domain.Derivations.Default.Derivation(this.session);

            derivation.Mark(extent.Cast <Domain.Object>().ToArray());
            var validation = derivation.Derive();

            if (validation.HasErrors)
            {
                foreach (var error in validation.Errors)
                {
                    Console.WriteLine(error.Message);
                }

                throw new Exception("Derivation Error");
            }
        }
Example #2
0
        private void Derive(Extent extent)
        {
            var derivation = new Domain.NonLogging.Derivation(this.session, new DerivationConfig());

            derivation.AddDerivables(extent.Cast <Domain.Object>());

            var validation = derivation.Derive();

            if (validation.HasErrors)
            {
                foreach (var error in validation.Errors)
                {
                    Console.WriteLine(error.Message);
                }

                throw new Exception("Derivation Error");
            }
        }