mirror of https://github.com/Squidex/squidex.git
3 changed files with 26 additions and 5 deletions
@ -0,0 +1,23 @@ |
|||||
|
// ==========================================================================
|
||||
|
// EdmExtensions.cs
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
namespace Squidex.Domain.Apps.Core.Schemas |
||||
|
{ |
||||
|
public static class EdmExtensions |
||||
|
{ |
||||
|
public static string EscapeEdmField(this string field) |
||||
|
{ |
||||
|
return field.Replace("-", "_"); |
||||
|
} |
||||
|
|
||||
|
public static string UnescapeEdmField(this string field) |
||||
|
{ |
||||
|
return field.Replace("_", "-"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue