예제 #1
0
        protected void Derive(ISession session, Extent extent)
        {
            var derivation = new Domain.NonLogging.Derivation(session, extent.ToArray());
            var validation = derivation.Derive();

            if (validation.HasErrors)
            {
                foreach (var error in validation.Errors)
                {
                    this.Logger.Error(error.Message);
                }

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

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

                throw new Exception("Derivation Error");
            }
        }
예제 #3
0
파일: Upgrade.cs 프로젝트: lulzzz/allors2
        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");
            }
        }