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; }
private void AddCommandProperty(string propKey, object propValue) { AdomdProperty adomdProperty = new AdomdProperty(propKey, propValue); if (this.commandProperties == null) { this.commandProperties = new AdomdPropertyCollection(); } else { int num = this.commandProperties.InternalCollection.IndexOf(adomdProperty); if (num != -1) { this.commandProperties.InternalCollection.RemoveAt(num); } } this.commandProperties.Add(adomdProperty); }
internal Enumerator(AdomdPropertyCollection properties) { this.properties = properties; this.currentIndex = -1; }
internal AdomdPropertyCollectionInternal(AdomdPropertyCollection parentCollection) { this.parentCollection = parentCollection; }