public string GetFeedName() { if (ResourceType != null) { return($"{OpenApiMetadataSections.SwaggerUi}-{ResourceType}"); } if (ProfileName != null) { return($"{OpenApiMetadataSections.Profiles}-{ProfileName}"); } if (CompositeCategoryName != null) { return($"{OpenApiMetadataSections.Composites}-{CompositeCategoryName}"); } if (OtherName != null) { return($"{OpenApiMetadataSections.Other}-{OtherName}"); } if (SchemaName != null) { var section = !SchemaName.Equals(EdFiConventions.UriSegment) ? OpenApiMetadataSections.Extensions : OpenApiMetadataSections.SdkGen; return($"{section}-{SchemaName}"); } return($"{OpenApiMetadataSections.SdkGen}-all"); }
public override bool Equals(object obj) { EnsureSchemaResult compareTo = obj as EnsureSchemaResult; if (compareTo != null) { return(Database.Equals(compareTo.Database) && SchemaName.Equals(compareTo.SchemaName)); } return(base.Equals(obj)); }
public override bool Equals(object obj) { var query2 = (SearchQuery)obj; var result = SchemaName.Equals(query2.SchemaName); result = result && Columns.All(query2.Columns.Contains) && Columns.Count == query2.Columns.Count; var firstRulesHashSet = new HashSet <SearchQueryRule>(Rules); result = result && firstRulesHashSet.SetEquals(query2.Rules); result = result && From.Equals(query2.From); result = result && Size.Equals(query2.Size); result = result && PrimaryColumnValue.Equals(query2.PrimaryColumnValue); return(result); }
public bool Equals(IndexSet other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(SchemaName.Equals(other.SchemaName) && TableName.Equals(other.TableName) && IndexName.Equals(other.IndexName)); }
protected override MergeResult DoMerge(Operation operation) { if (base.DoMerge(operation) == MergeResult.Stop) { return(MergeResult.Stop); } switch (operation) { case RemoveExtendedPropertyOperation otherAsRemovePropertyOp: { var thisPropertyName = GetPropertyName(this); var otherPropertyName = GetPropertyName(otherAsRemovePropertyOp); if (thisPropertyName.Equals(otherPropertyName, StringComparison.InvariantCultureIgnoreCase)) { Disabled = operation.Disabled = true; return(MergeResult.Stop); } break; } case RemoveSchemaOperation otherAsRemoveSchemaOp when ForSchema && SchemaName.Equals(otherAsRemoveSchemaOp.Name, StringComparison.InvariantCultureIgnoreCase): Disabled = true; break; case RemoveTableOperation otherAsRemoveTableOp when ForTable && TableViewObjectName.Equals(otherAsRemoveTableOp.ObjectName, StringComparison.InvariantCultureIgnoreCase): Disabled = true; break; case RemoveViewOperation otherAsRemoveViewOp when ForView && TableViewObjectName.Equals(otherAsRemoveViewOp.ObjectName, StringComparison.InvariantCultureIgnoreCase): Disabled = true; break; case RenameColumnOperation otherAsRenameColumnOp when TableViewObjectName.Equals(otherAsRenameColumnOp.TableObjectName, StringComparison.InvariantCultureIgnoreCase) && ForColumn && ColumnName.Equals(otherAsRenameColumnOp.Name, StringComparison.InvariantCultureIgnoreCase): ColumnName = otherAsRenameColumnOp.NewName; break; case RenameObjectOperation otherAsRenameOp when TableViewObjectName.Equals(otherAsRenameOp.ObjectName, StringComparison.InvariantCultureIgnoreCase): TableViewName = otherAsRenameOp.NewName; break; case UpdateExtendedPropertyOperation updateExtendedPropOp when !(this is RemoveExtendedPropertyOperation): { var thisPropertyName = GetPropertyName(this); var otherPropertyName = GetPropertyName(updateExtendedPropOp); if (thisPropertyName.Equals(otherPropertyName, StringComparison.InvariantCultureIgnoreCase)) { Value = updateExtendedPropOp.Value; updateExtendedPropOp.Disabled = true; return(MergeResult.Continue); } break; } case UpdateTableOperation otherAsUpdateTableOp when ForTable && ForColumn && TableViewObjectName.Equals(otherAsUpdateTableOp.ObjectName, StringComparison.InvariantCultureIgnoreCase): { foreach (var deletedColumnName in otherAsUpdateTableOp.RemoveColumns) { if (ColumnName.Equals(deletedColumnName, StringComparison.InvariantCultureIgnoreCase)) { Disabled = true; return(MergeResult.Stop); } } break; } } return(MergeResult.Continue); }