private ICrmOperation GetOperationFromTableDirectCommand(CrmDbCommand command, CommandBehavior behavior) { // No need to parse the command text as SQL because table direct commands should just contain the table name. // Therefore just construct a command that will execute a retreive multiple for the entity name specified. var request = GetRetrieveMultipleRequest(command, behavior); var result = new SelectMultipleEntitiesOperation(null, request); result.CommandBehavior = behavior; result.DbCommand = command; // result.OperationType = Enums.CrmOperation.RetrieveMultiple; return(result); }
public override ICrmOperation GetCommand() { var orgCommand = new SelectMultipleEntitiesOperation(ResultColumnMetadata, Request); return(orgCommand); }