Beispiel #1
0
        public void TestConstructors()
        {
            Context.Validate();

            var smoConf = new SmoConfiguration(Context.Connection.Configuration);

            Assert.IsNotNull(smoConf);
        }
Beispiel #2
0
 protected override void ProcessRecord()
 {
     foreach (KeyValuePair <string, object> entry in this.MyInvocation.BoundParameters.Where(x => !SkipThese.Contains(x.Key)))
     {
         SmoConfiguration.SetPropertyValue(SmoContext.Connection.Configuration, entry.Key, entry.Value);
     }
     try
     {
         SmoContext.Connection.Configuration.Alter();
     }
     catch (Exception e)
     {
         base.ThrowInnerException(e);
     }
 }