private static bool SchemaExistsForItem(string itemKey, Dictionary <string, object> itemData) { bool result = false; object schemaType; if (itemData.TryGetValue(GDEConstants.SchemaKey, out schemaType)) { string schemaKey = schemaType as string; if (AllSchemas.ContainsKey(schemaKey)) { result = true; } } return(result); }
public static bool IsSchemaNameValid(string name, out string error) { bool result = true; error = ""; if (AllSchemas.ContainsKey(name)) { error = "Schema name already exists."; result = false; } else if (!GDEValidateIdentifier.IsValidIdentifier(name)) { error = "Schema name is invalid."; result = false; } return(result); }
public bool ExistsSchema(string schemaName) { return(AllSchemas.ContainsKey(schemaName.ToQuotedIdentifier())); }