public virtual bool addOperation(DbBulkOperation newOperation) { SortedSet <DbBulkOperation> bulksByType = bulkOperations[newOperation.EntityType]; if (bulksByType == null) { bulksByType = new SortedSet <DbBulkOperation>(BULK_OPERATION_COMPARATOR); bulkOperations[newOperation.EntityType] = bulksByType; } return(bulksByType.Add(newOperation)); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } DbBulkOperation other = (DbBulkOperation)obj; if (parameter == null) { if (other.parameter != null) { return(false); } } else if (!parameter.Equals(other.parameter)) { return(false); } if (string.ReferenceEquals(statement, null)) { if (!string.ReferenceEquals(other.statement, null)) { return(false); } } else if (!statement.Equals(other.statement)) { return(false); } return(true); }
public virtual bool addOperationPreserveOrder(DbBulkOperation newOperation) { return(bulkOperationsInsertionOrder.add(newOperation)); }