private AdomdCommand(AdomdCommand originalCommand) { this.Connection = originalCommand.Connection; this.CommandText = originalCommand.CommandText; this.CommandStream = originalCommand.CommandStream; this.CommandTimeout = originalCommand.CommandTimeout; this.CommandType = originalCommand.CommandType; if (originalCommand.Parameters.Count > 0) { AdomdParameterCollection adomdParameterCollection = this.Parameters; foreach (AdomdParameter adomdParameter in ((IEnumerable)originalCommand.Parameters)) { adomdParameterCollection.Add(adomdParameter.Clone()); } } if (originalCommand.Properties.Count > 0) { AdomdPropertyCollection properties = this.Properties; AdomdPropertyCollection.Enumerator enumerator2 = originalCommand.Properties.GetEnumerator(); while (enumerator2.MoveNext()) { AdomdProperty current = enumerator2.Current; properties.Add(new AdomdProperty(current.Name, current.Namespace, current.Value)); } } }
public AdomdCommand() { this.commandStream = null; this.commandText = null; this.timeOut = 0; this.connection = null; this.parameters = null; this.commandProperties = null; this.transaction = null; }