This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find the first annotations that target the entitycontainer by name | |
<Schema .*Namespace="(.*?)"(?:.*\n)+?\s*<EntityContainer Name="(.*?)"(?:.*\n)+?.*<Annotations Target="\1\.\2\/ | |
// Find truly deprecated items (not hidden) | |
<(Entity|Complex|Enum)(?!.*ags:IsHidden="true").+\r\n.*Ann.*\r\n.*Collec.*\r\n.*Record.*\r\n.*Deprec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Reflection; | |
using Microsoft.AspNet.OData; | |
using Microsoft.AspNet.OData.Formatter; | |
using Microsoft.AspNetCore.Http.Extensions; | |
using Microsoft.OData; | |
namespace SMSOrgView | |
{ | |
using Microsoft.AspNet.OData.Formatter.Serialization; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = get-location | |
$files = get-Childitem $path -recurse -include *.dll | |
$content = "[.NET Framework Debugging Control]`r`nGenerateTrackingInfo=1`r`nAllowOptimize=0" | |
$count | |
foreach ($file in $files) | |
{ | |
if ($file.fullname.contains(".dll") -or $file.fullname.contains(".DLL")) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Path handler to switch to using segment notation for collection IDs | |
/// </summary> | |
internal class SegmentIdPathHandler : DefaultODataPathHandler | |
{ | |
/// <summary> | |
/// Handle URI's using either ID format on the way in to the API | |
/// </summary> | |
protected override ODataPathSegment ParseAtCollection(IEdmModel model, ODataPathSegment previous, IEdmType previousEdmType, string segment, Queue<string> segments) | |
{ |