/// <summary> /// Creates a command definition object for the specified provider manifest and /// command tree. /// </summary> /// <param name="providerManifest"> /// Provider manifest previously retrieved from the store provider. /// </param> /// <param name="commandTree"> /// Command tree for the statement. /// </param> /// <returns> /// An executable command definition object. /// </returns> protected override DbCommandDefinition CreateDbCommandDefinition( DbProviderManifest providerManifest, DbCommandTree commandTree) { EffortEntityCommand command = new EffortEntityCommand(commandTree); return(new EffortCommandDefinition(command)); }
/// <summary> /// Initializes a new instance of the <see cref="EffortEntityCommand" /> class /// based on a prototype instance. /// </summary> /// <param name="prototype"> /// The prototype <see cref="EffortEntityCommand" /> object. /// </param> private EffortEntityCommand(EffortEntityCommand prototype) { this.commandAction = prototype.commandAction; foreach (EffortParameter parameter in prototype.Parameters) { this.AddParameter(parameter.ParameterName); } }