├── .nuget
├── NuGet.exe
├── packages.config
└── NuGet.Config
├── ODataConnectedService
├── .nuget
│ ├── NuGet.exe
│ ├── packages.config
│ └── NuGet.Config
├── src
│ ├── Resources
│ │ ├── Icon.png
│ │ └── ExtensionIcon.png
│ ├── Templates
│ │ ├── IODataT4CodeGeneratorFactory.cs
│ │ └── ODataT4CodeGeneratorFactory.cs
│ ├── CodeGeneration
│ │ ├── ICodeGenDescriptorFactory.cs
│ │ └── CodeGenDescriptorFactory.cs
│ ├── ODataConnectedServiceInstance.cs
│ ├── Views
│ │ ├── ConfigODataEndpoint.xaml.cs
│ │ ├── AdvancedSettings.xaml.cs
│ │ └── ConfigODataEndpoint.xaml
│ ├── app.config
│ ├── Models
│ │ └── ServiceConfiguration.cs
│ ├── License.txt
│ ├── Common
│ │ ├── CodeGeneratorUtils.cs
│ │ └── ProjectHelper.cs
│ ├── source.extension.vsixmanifest
│ └── ODataConnectedServiceProvider.cs
├── tools
│ ├── 35MSSharedLib1024.snk
│ ├── SkipStrongNames.xml
│ └── src
│ │ └── Microsoft.Web.FxCop
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── IntrospectionRule.cs
│ │ ├── DoNotUseFinalizersRule.cs
│ │ └── DoNotConstructTaskInstancesRule.cs
├── external
│ └── Binaries
│ │ ├── V3
│ │ ├── System.Spatial.dll
│ │ ├── Microsoft.Data.Edm.dll
│ │ ├── Microsoft.Data.OData.dll
│ │ ├── Microsoft.Data.Services.Client.dll
│ │ └── Microsoft.Data.Services.Design.dll
│ │ └── V4
│ │ └── Microsoft.OData.Edm.dll
├── test
│ └── ODataConnectedService.Tests
│ │ ├── 35MSSharedLib1024.snk
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ └── TestHelpers
│ │ ├── TestConnectedServiceHandlerHelper.cs
│ │ └── TestConnectedServiceHandlerContext.cs
├── ODataConnectedService.sln
├── build.cmd
└── ODataConnectedService.Tests.sln
├── RestierScaffolding
├── tools
│ ├── 35MSSharedLib1024.snk
│ ├── NuGet
│ │ └── NuGet.Config
│ ├── SkipStrongNames.xml
│ ├── src
│ │ └── Microsoft.Web.FxCop
│ │ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ │ ├── IntrospectionRule.cs
│ │ │ ├── DoNotUseFinalizersRule.cs
│ │ │ └── DoNotConstructTaskInstancesRule.cs
│ └── Scaffolding.settings.targets
├── src
│ ├── Microsoft.Restier.Scaffolding
│ │ ├── Resources
│ │ │ └── _TemplateIconSample.ico
│ │ ├── packages.config
│ │ ├── ReferencePackages
│ │ │ ├── entityframework.6.1.1.nupkg
│ │ │ ├── newtonsoft.json.6.0.4.nupkg
│ │ │ ├── microsoft.spatial.6.13.0.nupkg
│ │ │ ├── microsoft.odata.core.6.13.0.nupkg
│ │ │ ├── microsoft.odata.edm.6.13.0.nupkg
│ │ │ ├── microsoft.restier.0.4.0-rc.nupkg
│ │ │ ├── microsoft.aspnet.odata.5.7.0.nupkg
│ │ │ ├── microsoft.aspnet.webapi.5.2.2.nupkg
│ │ │ ├── microsoft.restier.core.0.4.0-rc.nupkg
│ │ │ ├── microsoft.aspnet.webapi.core.5.2.2.nupkg
│ │ │ ├── microsoft.restier.webapi.0.4.0-rc.nupkg
│ │ │ ├── microsoft.aspnet.webapi.client.5.2.2.nupkg
│ │ │ ├── microsoft.aspnet.webapi.webhost.5.2.2.nupkg
│ │ │ └── microsoft.restier.entityframework.0.4.0-rc.nupkg
│ │ ├── UI
│ │ │ ├── DefaultDialogSize.cs
│ │ │ ├── ContextControl.xaml.cs
│ │ │ ├── VSPlatformDialogWindow.cs
│ │ │ ├── WebApiConfigNameControl.xaml.cs
│ │ │ ├── IDialogSettings.cs
│ │ │ ├── InverseBooleanConverter.cs
│ │ │ ├── ApplicationResources.xaml
│ │ │ ├── ConfigScaffolderDialog.xaml.cs
│ │ │ ├── InverseBooleanToVisibilityConverter.cs
│ │ │ ├── ChangeCancelButtonControl.xaml.cs
│ │ │ ├── ChangeCancelButtonControl.xaml
│ │ │ ├── DataContextModelTypeComparer.cs
│ │ │ ├── MultiAndBooleanConverter.cs
│ │ │ ├── NotifyPropertyChanged.cs
│ │ │ ├── ModelType.cs
│ │ │ └── RelayCommand.cs
│ │ ├── Scaffolders
│ │ │ ├── ScaffoldingGestures.cs
│ │ │ ├── ScaffolderVersions.cs
│ │ │ ├── IScaffoldingSettings.cs
│ │ │ ├── CommonFilenames.cs
│ │ │ ├── CommonFolderNames.cs
│ │ │ ├── ContextKeys.cs
│ │ │ ├── TemplateSearchDirectories.cs
│ │ │ ├── Restier
│ │ │ │ ├── ODataDependencyInstaller.cs
│ │ │ │ └── RestierConfigScaffolderFactory.cs
│ │ │ └── FrameworkDependencyStatus.cs
│ │ ├── VisualStudio
│ │ │ ├── IProjectSettings.cs
│ │ │ ├── INuGetRepository.cs
│ │ │ ├── IEditorInterfaces.cs
│ │ │ ├── IEditorIntegration.cs
│ │ │ ├── IVisualStudioIntegration.cs
│ │ │ └── ProjectSettingsExtensions.cs
│ │ ├── Telemetry
│ │ │ ├── DependencyScaffolderOptions.cs
│ │ │ ├── TelemetrySharedKeys.cs
│ │ │ └── CodeGenerationContextExtensions.cs
│ │ ├── ReadMe
│ │ │ └── ODataReadMe.cs
│ │ ├── Interop
│ │ │ ├── IProjectItemSelector_Class.cs
│ │ │ ├── ProjectItemSelectorFlags.cs
│ │ │ └── IProjectItemSelector.cs
│ │ ├── SavedSettingsKeys.cs
│ │ ├── Templates
│ │ │ ├── PackageVersions5.2.2.xml
│ │ │ └── PackageVersions5.2.3.xml
│ │ ├── ServiceProviderExtensions.cs
│ │ ├── NativeMethods.cs
│ │ ├── ProjectItemExtensions.cs
│ │ ├── CodeTypeExtension.cs
│ │ ├── SemanticVersionParser.cs
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ └── Microsoft.Restier.Scaffolding.Extension
│ │ ├── License.txt
│ │ ├── source.extension.vsixmanifest
│ │ └── Properties
│ │ └── AssemblyInfo.cs
├── Scaffolding.sln
├── build.cmd
└── ScaffoldingVSix.sln
├── WebAPIODataV4Scaffolding
├── tools
│ ├── 35MSSharedLib1024.snk
│ ├── NuGet
│ │ └── NuGet.Config
│ ├── SkipStrongNames.xml
│ ├── src
│ │ └── Microsoft.Web.FxCop
│ │ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ │ ├── IntrospectionRule.cs
│ │ │ ├── DoNotUseFinalizersRule.cs
│ │ │ └── DoNotConstructTaskInstancesRule.cs
│ └── Scaffolding.settings.targets
├── src
│ ├── System.Web.OData.Design.Scaffolding
│ │ ├── Resources
│ │ │ └── _TemplateIconSample.ico
│ │ ├── ReferencePackages
│ │ │ ├── Newtonsoft.Json.4.5.11.nupkg
│ │ │ ├── Newtonsoft.Json.6.0.4.nupkg
│ │ │ ├── Microsoft.OData.Edm.6.4.0.nupkg
│ │ │ ├── Microsoft.Spatial.6.10.0.nupkg
│ │ │ ├── Microsoft.Spatial.6.4.0.nupkg
│ │ │ ├── Microsoft.OData.Core.6.10.0.nupkg
│ │ │ ├── Microsoft.OData.Core.6.4.0.nupkg
│ │ │ ├── Microsoft.OData.Edm.6.10.0.nupkg
│ │ │ ├── Microsoft.AspNet.OData.5.2.1.nupkg
│ │ │ ├── Microsoft.AspNet.OData.5.5.1.nupkg
│ │ │ ├── Microsoft.AspNet.WebApi.5.2.2.nupkg
│ │ │ ├── Microsoft.AspNet.WebApi.Core.5.2.0.nupkg
│ │ │ ├── Microsoft.AspNet.WebApi.Core.5.2.2.nupkg
│ │ │ ├── Microsoft.AspNet.WebApi.Client.5.2.0.nupkg
│ │ │ ├── Microsoft.AspNet.WebApi.Client.5.2.2.nupkg
│ │ │ └── Microsoft.AspNet.WebApi.WebHost.5.2.2.nupkg
│ │ ├── packages.config
│ │ ├── UI
│ │ │ ├── DefaultDialogSize.cs
│ │ │ ├── ControllerNameControl.xaml.cs
│ │ │ ├── VSPlatformDialogWindow.cs
│ │ │ ├── ControllerWithContextControl.xaml.cs
│ │ │ ├── IDialogSettings.cs
│ │ │ ├── InverseBooleanConverter.cs
│ │ │ ├── ControllerScaffolderDialog.xaml.cs
│ │ │ ├── AddCancelButtonControl.xaml.cs
│ │ │ ├── InverseBooleanToVisibilityConverter.cs
│ │ │ ├── CreateDataContextDialog.xaml.cs
│ │ │ ├── ApplicationResources.xaml
│ │ │ ├── AddCancelButtonControl.xaml
│ │ │ ├── DataContextModelTypeComparer.cs
│ │ │ ├── MultiAndBooleanConverter.cs
│ │ │ ├── NotifyPropertyChanged.cs
│ │ │ ├── ModelType.cs
│ │ │ ├── RelayCommand.cs
│ │ │ └── ControllerNameControl.xaml
│ │ ├── ScaffolderVersions.cs
│ │ ├── VisualStudio
│ │ │ ├── IProjectSettings.cs
│ │ │ ├── INuGetRepository.cs
│ │ │ ├── IEditorIntegration.cs
│ │ │ ├── IEditorInterfaces.cs
│ │ │ └── IVisualStudioIntegration.cs
│ │ ├── Telemetry
│ │ │ ├── WebApiControllerScaffolderOptions.cs
│ │ │ ├── DependencyScaffolderOptions.cs
│ │ │ ├── TelemetrySharedKeys.cs
│ │ │ └── CodeGenerationContextExtensions.cs
│ │ ├── Scaffolders
│ │ │ ├── ScaffoldingGestures.cs
│ │ │ ├── IScaffoldingSettings.cs
│ │ │ ├── TelemetryEventNames.cs
│ │ │ ├── ContextKeys.cs
│ │ │ ├── CommonFilenames.cs
│ │ │ ├── StringUtil.cs
│ │ │ ├── CommonFolderNames.cs
│ │ │ ├── TemplateSearchDirectories.cs
│ │ │ ├── OData
│ │ │ │ ├── ODataControllerWithContextScaffolder.cs
│ │ │ │ ├── ODataControllerWithContextScaffolderFactory.cs
│ │ │ │ └── ODataControllerWithActionsScaffolderFactory.cs
│ │ │ ├── FrameworkDependencyStatus.cs
│ │ │ └── OverpostingProtection.cs
│ │ ├── ReadMe
│ │ │ └── ODataReadMe.cs
│ │ ├── Interop
│ │ │ ├── IProjectItemSelector_Class.cs
│ │ │ ├── ProjectItemSelectorFlags.cs
│ │ │ └── IProjectItemSelector.cs
│ │ ├── Templates
│ │ │ ├── PackageVersions5.2.0.xml
│ │ │ ├── PackageVersions5.2.2.xml
│ │ │ └── PackageVersions5.2.3.xml
│ │ ├── Metadata
│ │ │ └── TypeNames.cs
│ │ ├── ServiceProviderExtensions.cs
│ │ ├── NativeMethods.cs
│ │ ├── ProjectItemExtensions.cs
│ │ ├── SavedSettingsKeys.cs
│ │ ├── NuGetPackages.cs
│ │ ├── SemanticVersionParser.cs
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ └── System.Web.OData.Design.Scaffolding.Extension
│ │ ├── License.txt
│ │ ├── source.extension.vsixmanifest
│ │ └── Properties
│ │ └── AssemblyInfo.cs
├── packages
│ └── Microsoft.ApplicationInsights.1.0.1-beta
│ │ ├── lib
│ │ ├── wp8
│ │ │ └── Microsoft.ApplicationInsights.dll
│ │ ├── net40
│ │ │ └── Microsoft.ApplicationInsights.dll
│ │ ├── net45
│ │ │ └── Microsoft.ApplicationInsights.dll
│ │ ├── dnxcore50
│ │ │ └── Microsoft.ApplicationInsights.dll
│ │ └── portable-win81+wpa81
│ │ │ └── Microsoft.ApplicationInsights.dll
│ │ └── Microsoft.ApplicationInsights.1.0.1-beta.nupkg
├── Scaffolding.sln
├── build.cmd
└── ScaffoldingVSix.sln
├── odata2swagger
├── app.config
├── packages.config
└── OData2Swagger.sln
├── OpenApi
└── OData2OpenApi
│ ├── OData2OpenApi
│ ├── packages.config
│ ├── Abstracts
│ │ ├── IEdmModelProvider.cs
│ │ ├── IConvertSettingProvider.cs
│ │ └── ICommandOptionManager.cs
│ ├── App.config
│ ├── ConvertSettingProvider.cs
│ ├── OpenApiGenerator.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── EdmModelProvider.cs
│ └── CommandOptionAttribute.cs
│ └── OData2OpenApi.sln
├── .gitattributes
└── License.txt
/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/ODataConnectedService/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/ODataConnectedService/.nuget/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/Resources/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/src/Resources/Icon.png
--------------------------------------------------------------------------------
/RestierScaffolding/tools/35MSSharedLib1024.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/tools/35MSSharedLib1024.snk
--------------------------------------------------------------------------------
/ODataConnectedService/tools/35MSSharedLib1024.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/tools/35MSSharedLib1024.snk
--------------------------------------------------------------------------------
/ODataConnectedService/src/Resources/ExtensionIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/src/Resources/ExtensionIcon.png
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/35MSSharedLib1024.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/tools/35MSSharedLib1024.snk
--------------------------------------------------------------------------------
/.nuget/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ODataConnectedService/external/Binaries/V3/System.Spatial.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/external/Binaries/V3/System.Spatial.dll
--------------------------------------------------------------------------------
/ODataConnectedService/external/Binaries/V3/Microsoft.Data.Edm.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/external/Binaries/V3/Microsoft.Data.Edm.dll
--------------------------------------------------------------------------------
/ODataConnectedService/external/Binaries/V4/Microsoft.OData.Edm.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/external/Binaries/V4/Microsoft.OData.Edm.dll
--------------------------------------------------------------------------------
/ODataConnectedService/external/Binaries/V3/Microsoft.Data.OData.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/external/Binaries/V3/Microsoft.Data.OData.dll
--------------------------------------------------------------------------------
/ODataConnectedService/test/ODataConnectedService.Tests/35MSSharedLib1024.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/test/ODataConnectedService.Tests/35MSSharedLib1024.snk
--------------------------------------------------------------------------------
/odata2swagger/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ODataConnectedService/external/Binaries/V3/Microsoft.Data.Services.Client.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/external/Binaries/V3/Microsoft.Data.Services.Client.dll
--------------------------------------------------------------------------------
/ODataConnectedService/external/Binaries/V3/Microsoft.Data.Services.Design.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/ODataConnectedService/external/Binaries/V3/Microsoft.Data.Services.Design.dll
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Resources/_TemplateIconSample.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Resources/_TemplateIconSample.ico
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ODataConnectedService/tools/SkipStrongNames.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/entityframework.6.1.1.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/entityframework.6.1.1.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/newtonsoft.json.6.0.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/newtonsoft.json.6.0.4.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Resources/_TemplateIconSample.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Resources/_TemplateIconSample.ico
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.spatial.6.13.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.spatial.6.13.0.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.odata.core.6.13.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.odata.core.6.13.0.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.odata.edm.6.13.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.odata.edm.6.13.0.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.0.4.0-rc.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.0.4.0-rc.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.odata.5.7.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.odata.5.7.0.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.5.2.2.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.core.0.4.0-rc.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.core.0.4.0-rc.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.core.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.core.5.2.2.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.webapi.0.4.0-rc.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.webapi.0.4.0-rc.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Newtonsoft.Json.4.5.11.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Newtonsoft.Json.4.5.11.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Newtonsoft.Json.6.0.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Newtonsoft.Json.6.0.4.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.client.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.client.5.2.2.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.webhost.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.aspnet.webapi.webhost.5.2.2.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Edm.6.4.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Edm.6.4.0.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.Spatial.6.10.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.Spatial.6.10.0.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.Spatial.6.4.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.Spatial.6.4.0.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/wp8/Microsoft.ApplicationInsights.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/wp8/Microsoft.ApplicationInsights.dll
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Core.6.10.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Core.6.10.0.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Core.6.4.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Core.6.4.0.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Edm.6.10.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.OData.Edm.6.10.0.nupkg
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.entityframework.0.4.0-rc.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReferencePackages/microsoft.restier.entityframework.0.4.0-rc.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/net40/Microsoft.ApplicationInsights.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/net40/Microsoft.ApplicationInsights.dll
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/net45/Microsoft.ApplicationInsights.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/net45/Microsoft.ApplicationInsights.dll
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.OData.5.2.1.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.OData.5.2.1.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.OData.5.5.1.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.OData.5.5.1.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.5.2.2.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/Microsoft.ApplicationInsights.1.0.1-beta.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/Microsoft.ApplicationInsights.1.0.1-beta.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/dnxcore50/Microsoft.ApplicationInsights.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/dnxcore50/Microsoft.ApplicationInsights.dll
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Core.5.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Core.5.2.0.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Core.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Core.5.2.2.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Client.5.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Client.5.2.0.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Client.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.Client.5.2.2.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.WebHost.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReferencePackages/Microsoft.AspNet.WebApi.WebHost.5.2.2.nupkg
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/portable-win81+wpa81/Microsoft.ApplicationInsights.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OData/lab/HEAD/WebAPIODataV4Scaffolding/packages/Microsoft.ApplicationInsights.1.0.1-beta/lib/portable-win81+wpa81/Microsoft.ApplicationInsights.dll
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/RestierScaffolding/tools/NuGet/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/NuGet/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/RestierScaffolding/tools/SkipStrongNames.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/odata2swagger/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/Templates/IODataT4CodeGeneratorFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.OData.ConnectedService.Templates
5 | {
6 | interface IODataT4CodeGeneratorFactory
7 | {
8 | ODataT4CodeGenerator Create();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/SkipStrongNames.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/DefaultDialogSize.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | internal static class DefaultDialogSize
7 | {
8 | public const double DialogWidth = 600;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ODataConnectedService/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/ScaffoldingGestures.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | internal static class ScaffoldingGestures
7 | {
8 | public const string Config = "App_Start";
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/DefaultDialogSize.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.UI
5 | {
6 | internal static class DefaultDialogSize
7 | {
8 | public const double DialogWidth = 600;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ScaffolderVersions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class ScaffolderVersions
7 | {
8 | public static readonly Version WebApiODataScaffolderVersion = new Version(0, 1, 3, 0);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/VisualStudio/IProjectSettings.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.VisualStudio
5 | {
6 | public interface IProjectSettings
7 | {
8 | string this[string key]
9 | {
10 | get;
11 | set;
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/ScaffolderVersions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 |
8 | internal static class ScaffolderVersions
9 | {
10 | public static readonly Version RestierScaffolderVersion = new Version(0, 1, 0, 0);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/VisualStudio/IProjectSettings.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.VisualStudio
5 | {
6 | public interface IProjectSettings
7 | {
8 | string this[string key]
9 | {
10 | get;
11 | set;
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/RestierScaffolding/tools/src/Microsoft.Web.FxCop/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Reflection;
5 |
6 | [assembly: AssemblyProduct("Microsoft.Web.FxCop")]
7 | [assembly: AssemblyDescription("FxCop rules used by the RESTier projects")]
8 | [assembly: AssemblyCompany("Microsoft")]
9 | [assembly: AssemblyCopyright("Copyright © Microsoft Corporation 2014")]
--------------------------------------------------------------------------------
/ODataConnectedService/tools/src/Microsoft.Web.FxCop/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Reflection;
5 |
6 | [assembly: AssemblyProduct("Microsoft.Web.FxCop")]
7 | [assembly: AssemblyDescription("FxCop rules used by the RESTier projects")]
8 | [assembly: AssemblyCompany("Microsoft")]
9 | [assembly: AssemblyCopyright("Copyright © Microsoft Corporation 2014")]
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/src/Microsoft.Web.FxCop/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Reflection;
5 |
6 | [assembly: AssemblyProduct("Microsoft.Web.FxCop")]
7 | [assembly: AssemblyDescription("FxCop rules used by the RESTier projects")]
8 | [assembly: AssemblyCompany("Microsoft")]
9 | [assembly: AssemblyCopyright("Copyright © Microsoft Corporation 2014")]
--------------------------------------------------------------------------------
/ODataConnectedService/src/Templates/ODataT4CodeGeneratorFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.OData.ConnectedService.Templates
5 | {
6 | class ODataT4CodeGeneratorFactory: IODataT4CodeGeneratorFactory
7 | {
8 | public ODataT4CodeGenerator Create()
9 | {
10 | return new ODataT4CodeGenerator();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Telemetry/DependencyScaffolderOptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.Telemetry
5 | {
6 | internal enum DependencyScaffolderOptions : uint
7 | {
8 | None = 0u,
9 | AlreadyInstalled = 1u,
10 | MvcMinimal = 2u,
11 | MvcFull = 3u,
12 | WebApi = 4u
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Telemetry/WebApiControllerScaffolderOptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.Telemetry
5 | {
6 | [Flags]
7 | internal enum WebApiControllerScaffolderOptions : uint
8 | {
9 | None = 0u,
10 | CreatedController = 1u,
11 | IsAsyncSelected = 2u,
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/ScaffoldingGestures.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class ScaffoldingGestures
7 | {
8 | public const string Area = "Area";
9 | public const string Controller = "Controller";
10 | public const string View = "View";
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Telemetry/DependencyScaffolderOptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.Telemetry
5 | {
6 | internal enum DependencyScaffolderOptions : uint
7 | {
8 | None = 0u,
9 | AlreadyInstalled = 1u,
10 | MvcMinimal = 2u,
11 | MvcFull = 3u,
12 | WebApi = 4u
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/IScaffoldingSettings.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using Microsoft.Restier.Scaffolding.VisualStudio;
7 |
8 | public interface IScaffoldingSettings
9 | {
10 | void LoadSettings(IProjectSettings settings);
11 |
12 | void SaveSettings(IProjectSettings settings);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/ControllerNameControl.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Windows.Controls;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.UI
7 | {
8 | internal partial class ControllerNameControl : UserControl
9 | {
10 | public ControllerNameControl()
11 | {
12 | InitializeComponent();
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/IScaffoldingSettings.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Web.OData.Design.Scaffolding.VisualStudio;
5 |
6 | namespace System.Web.OData.Design.Scaffolding
7 | {
8 | public interface IScaffoldingSettings
9 | {
10 | void LoadSettings(IProjectSettings settings);
11 |
12 | void SaveSettings(IProjectSettings settings);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/ContextControl.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System.Windows.Controls;
7 |
8 | // Interaction logic for ContextControl.xaml
9 | internal partial class ContextControl : UserControl
10 | {
11 | public ContextControl()
12 | {
13 | InitializeComponent();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/RestierScaffolding/tools/src/Microsoft.Web.FxCop/IntrospectionRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public abstract class IntrospectionRule : BaseIntrospectionRule
9 | {
10 | protected IntrospectionRule(string name)
11 | : base(name, "Microsoft.Web.FxCop.Rules", typeof(IntrospectionRule).Assembly)
12 | {
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ReadMe/ODataReadMe.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.ReadMe
5 | {
6 | internal static class ODataReadMe
7 | {
8 | public static string CreateReadMeText()
9 | {
10 | return Environment.NewLine + Resources.ScaffoldODataReadMeText + Environment.NewLine + Environment.NewLine;
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ODataConnectedService/tools/src/Microsoft.Web.FxCop/IntrospectionRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public abstract class IntrospectionRule : BaseIntrospectionRule
9 | {
10 | protected IntrospectionRule(string name)
11 | : base(name, "Microsoft.Web.FxCop.Rules", typeof(IntrospectionRule).Assembly)
12 | {
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ReadMe/ODataReadMe.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.ReadMe
5 | {
6 | using System;
7 |
8 | internal class ODataReadMe
9 | {
10 | internal static string CreateReadMeText()
11 | {
12 | return Environment.NewLine + Resources.ScaffoldODataReadMeText + Environment.NewLine + Environment.NewLine;
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/src/Microsoft.Web.FxCop/IntrospectionRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public abstract class IntrospectionRule : BaseIntrospectionRule
9 | {
10 | protected IntrospectionRule(string name)
11 | : base(name, "Microsoft.Web.FxCop.Rules", typeof(IntrospectionRule).Assembly)
12 | {
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Interop/IProjectItemSelector_Class.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.Interop
5 | {
6 | using System.Runtime.InteropServices;
7 |
8 | [ComImport]
9 | [Guid("12B0F5C6-9514-49ef-A27F-6BAE455079B4")]
10 | [InterfaceType(ComInterfaceType.InterfaceIsDual)]
11 | internal interface IProjectItemSelector_Class : IProjectItemSelector
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/CodeGeneration/ICodeGenDescriptorFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System;
5 | using EnvDTE;
6 | using Microsoft.VisualStudio.ConnectedServices;
7 |
8 | namespace Microsoft.OData.ConnectedService.CodeGeneration
9 | {
10 | interface ICodeGenDescriptorFactory
11 | {
12 | BaseCodeGenDescriptor Create(Version edmxVersion, string metadataUri, ConnectedServiceHandlerContext context, Project project);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/VSPlatformDialogWindow.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | // Avoid referencing the assembly of "Microsoft.VisualStudio.shell..dll" in xaml,
7 | // the same xaml source will be used by all versions of visual studio we ship on.
8 | public class VSPlatformDialogWindow : Microsoft.VisualStudio.PlatformUI.DialogWindow
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Interop/IProjectItemSelector_Class.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Runtime.InteropServices;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.Interop
7 | {
8 | [ComImport]
9 | [Guid("12B0F5C6-9514-49ef-A27F-6BAE455079B4")]
10 | [InterfaceType(ComInterfaceType.InterfaceIsDual)]
11 | internal interface IProjectItemSelector_Class : IProjectItemSelector
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/ODataConnectedServiceInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.OData.ConnectedService.Models;
5 | using Microsoft.VisualStudio.ConnectedServices;
6 |
7 | namespace Microsoft.OData.ConnectedService
8 | {
9 | internal class ODataConnectedServiceInstance : ConnectedServiceInstance
10 | {
11 | public ServiceConfiguration ServiceConfig { get; set; }
12 | public string MetadataTempFilePath { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/WebApiConfigNameControl.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System.Windows.Controls;
7 |
8 | // Interaction logic for WebApiConfigNameControl.xaml
9 | internal partial class WebApiConfigNameControl : UserControl
10 | {
11 | public WebApiConfigNameControl()
12 | {
13 | InitializeComponent();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/VSPlatformDialogWindow.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.UI
5 | {
6 | // Avoid referencing the assembly of "Microsoft.VisualStudio.shell..dll" in xaml,
7 | // the same xaml source will be used by all versions of visual studio we ship on.
8 | public class VSPlatformDialogWindow : Microsoft.VisualStudio.PlatformUI.DialogWindow
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Interop/ProjectItemSelectorFlags.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.Interop
5 | {
6 | [Flags]
7 | internal enum ProjectItemSelectorFlags : int
8 | {
9 | PISF_ReturnAppRelativeUrls = 0, // Default. Dialog returns application (~/) urls
10 | PSIF_ReturnDocRelativeUrls = 1, // Dialog returns document relative URLS. Requires pszBaseUrl to be set
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/VisualStudio/INuGetRepository.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.VisualStudio
5 | {
6 | using Microsoft.AspNet.Scaffolding;
7 | using Microsoft.AspNet.Scaffolding.NuGet;
8 |
9 | public interface INuGetRepository
10 | {
11 | NuGetPackage GetPackage(CodeGenerationContext context, string id);
12 | string GetPackageVersion(CodeGenerationContext context, string id);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Interop/ProjectItemSelectorFlags.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.Interop
5 | {
6 | using System;
7 |
8 | [Flags]
9 | internal enum ProjectItemSelectorFlags : int
10 | {
11 | PISF_ReturnAppRelativeUrls = 0, // Default. Dialog returns application (~/) urls
12 | PSIF_ReturnDocRelativeUrls = 1, // Dialog returns document relative URLS. Requires pszBaseUrl to be set
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/VisualStudio/INuGetRepository.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.AspNet.Scaffolding;
5 | using Microsoft.AspNet.Scaffolding.NuGet;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.VisualStudio
8 | {
9 | public interface INuGetRepository
10 | {
11 | NuGetPackage GetPackage(CodeGenerationContext context, string id);
12 | string GetPackageVersion(CodeGenerationContext context, string id);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/Views/ConfigODataEndpoint.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Windows;
5 | using System.Windows.Controls;
6 |
7 | namespace Microsoft.OData.ConnectedService.Views
8 | {
9 | ///
10 | /// Interaction logic for ConfigODataEndpoint.xaml
11 | ///
12 | public partial class ConfigODataEndpoint : UserControl
13 | {
14 | public ConfigODataEndpoint()
15 | {
16 | InitializeComponent();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/ControllerWithContextControl.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Windows.Controls;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.UI
7 | {
8 | // Interaction logic for ControllerWithContextControl.xaml
9 | internal partial class ControllerWithContextControl : UserControl
10 | {
11 | public ControllerWithContextControl()
12 | {
13 | InitializeComponent();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/IDialogSettings.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using Microsoft.Restier.Scaffolding.VisualStudio;
7 |
8 | ///
9 | /// An interface for Scaffolder Models that read and write dialog settings.
10 | ///
11 | public interface IDialogSettings
12 | {
13 | void LoadDialogSettings(IProjectSettings settings);
14 |
15 | void SaveDialogSettings(IProjectSettings settings);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/Abstracts/IEdmModelProvider.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.OData.Edm;
5 |
6 | namespace Microsoft.OData2OpenApi.ConsoleApp.Abstracts
7 | {
8 | ///
9 | /// Interface to provide the
10 | ///
11 | public interface IEdmModelProvider
12 | {
13 | ///
14 | /// Gets the .
15 | ///
16 | /// The Edm model.
17 | IEdmModel GetEdmModel();
18 | }
19 | }
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/SavedSettingsKeys.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | internal static class SavedSettingsKeys
7 | {
8 | private const string Prefix = "WebStackScaffolding_";
9 |
10 | public const string DbContextTypeFullNameKey = Prefix + "DbContextTypeFullName";
11 | public const string ConfigTypeFullNameKey = Prefix + "ConfigTypeFullName";
12 | public const string ConfigDialogWidthKey = Prefix + "ControllerDialogWidth";
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/IDialogSettings.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Web.OData.Design.Scaffolding.VisualStudio;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.UI
7 | {
8 | ///
9 | /// An interface for Scaffolder Models that read and write dialog settings.
10 | ///
11 | public interface IDialogSettings
12 | {
13 | void LoadDialogSettings(IProjectSettings settings);
14 |
15 | void SaveDialogSettings(IProjectSettings settings);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/TelemetryEventNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class TelemetryEventNames
7 | {
8 | public const string AddControllerWithAction = "AddControllerWithAction";
9 | public const string AddControllerWithContext = "AddControllerWithContext";
10 | public const string ActionScaffolderFailure = "ActionScaffolderFailure";
11 | public const string ContextScaffolderFailure = "ContextScaffolderFailure";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/Abstracts/IConvertSettingProvider.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.OpenApi.OData;
5 |
6 | namespace Microsoft.OData2OpenApi.ConsoleApp.Abstracts
7 | {
8 | ///
9 | /// Interface to .
10 | ///
11 | public interface IConvertSettingsProvider
12 | {
13 | ///
14 | /// Gets the .
15 | ///
16 | /// The settings.
17 | OpenApiConvertSettings GetConvertSettings();
18 | }
19 | }
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/ContextKeys.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | public static class ContextKeys
7 | {
8 | public const string IsControllersFolderCreated = "MVC_IsControllersFolderCreated";
9 | public const string IsLayoutPageCreated = "MVC_IsLayoutPageCreated";
10 | public const string IsODataAssemblyReferencedKey = "MVC_IsODataAssemblyReferenced";
11 | public const string IsWebApiAssemblyReferencedKey = "MVC_IsWebApiAssemblyReferenced";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Templates/PackageVersions5.2.0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Templates/PackageVersions5.2.2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Templates/PackageVersions5.2.3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/VisualStudio/IEditorInterfaces.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.VisualStudio
5 | {
6 | using Microsoft.VisualStudio.Text;
7 | using Microsoft.VisualStudio.TextManager.Interop;
8 |
9 | public interface IEditorInterfaces
10 | {
11 | ITextBuffer TextBuffer
12 | {
13 | get;
14 | }
15 |
16 | ITextDocument TextDocument
17 | {
18 | get;
19 | }
20 |
21 | IVsTextBuffer VsTextBuffer
22 | {
23 | get;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/VisualStudio/IEditorIntegration.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.VisualStudio.Shell.Interop;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.VisualStudio
7 | {
8 | public interface IEditorIntegration
9 | {
10 | IEditorInterfaces GetOrOpenDocument(string path);
11 |
12 | IVsWindowFrame CreateAndOpenReadme(string text);
13 |
14 | void OpenFileInEditor(string filePath);
15 |
16 | void FormatDocument(string filePath);
17 |
18 | IDisposable SuppressChangeNotifications(string filePath);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/VisualStudio/IEditorInterfaces.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.VisualStudio.Text;
5 | using Microsoft.VisualStudio.TextManager.Interop;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.VisualStudio
8 | {
9 | public interface IEditorInterfaces
10 | {
11 | ITextBuffer TextBuffer
12 | {
13 | get;
14 | }
15 |
16 | ITextDocument TextDocument
17 | {
18 | get;
19 | }
20 |
21 | IVsTextBuffer VsTextBuffer
22 | {
23 | get;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/VisualStudio/IEditorIntegration.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.VisualStudio
5 | {
6 | using System;
7 | using Microsoft.VisualStudio.Shell.Interop;
8 |
9 | public interface IEditorIntegration
10 | {
11 | IEditorInterfaces GetOrOpenDocument(string path);
12 |
13 | IVsWindowFrame CreateAndOpenReadme(string text);
14 |
15 | void OpenFileInEditor(string filePath);
16 |
17 | void FormatDocument(string filePath);
18 |
19 | IDisposable SuppressChangeNotifications(string filePath);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/CommonFilenames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | internal static class CommonFilenames
7 | {
8 | public const string WebConfig = "web.config";
9 |
10 | public const string GlobalAsax = "Global";
11 | public const string GlobalAsaxCodeBehind = "Global.asax";
12 | public const string WebApiConfig = "WebApiConfig";
13 | public const string BundleConfig = "BundleConfig";
14 | public const string FilterConfig = "FilterConfig";
15 | public const string RouteConfig = "RouteConfig";
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/ODataConnectedService/test/ODataConnectedService.Tests/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | [assembly: AssemblyTitle("ODataConnectedService.Tests")]
6 | [assembly: AssemblyDescription("")]
7 | [assembly: AssemblyConfiguration("")]
8 | [assembly: AssemblyCompany("")]
9 | [assembly: AssemblyProduct("ODataConnectedService.Tests")]
10 | [assembly: AssemblyCopyright("Copyright © 2020")]
11 | [assembly: AssemblyTrademark("")]
12 | [assembly: AssemblyCulture("")]
13 |
14 | [assembly: ComVisible(false)]
15 |
16 | [assembly: Guid("903b31d0-be14-4d9e-ba76-186fa82b3a37")]
17 |
18 | // [assembly: AssemblyVersion("1.0.*")]
19 | [assembly: AssemblyVersion("1.0.0.0")]
20 | [assembly: AssemblyFileVersion("1.0.0.0")]
21 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text
2 |
3 | *.bmp binary
4 | *.dll binary
5 | *.gif binary
6 | *.jpg binary
7 | *.png binary
8 | *.snk binary
9 | *.mdf binary
10 | *.ldf binary
11 | *.sql binary
12 | *.nupkg binary
13 | *.exe binary
14 |
15 | *.ascx text
16 | *.cd text
17 | *.cmd text
18 | *.coffee text
19 | *.config text
20 | *.cs text diff=csharp
21 | *.csproj text merge=union
22 | *.cshtml text
23 | *.css text
24 | *.dtd text
25 | *.edmx text
26 | *.htm text
27 | *.html text
28 | *.js text
29 | *.json text
30 | *.msbuild text
31 | *.nuspec text
32 | *.resx text
33 | *.ruleset text
34 | *.StyleCop text
35 | *.targets text
36 | *.tt text
37 | *.txt text
38 | *.vb text
39 | *.vbhtml text
40 | *.vbproj text merge=union
41 | *.vbs text
42 | *.wsf text
43 | *.xml text
44 | *.xunit text
45 |
46 | *.sln text eol=crlf merge=union
47 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/CommonFilenames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class CommonFilenames
7 | {
8 | public const string WebConfig = "web.config";
9 |
10 | public const string GlobalAsax = "Global";
11 | public const string GlobalAsaxCodeBehind = "Global.asax";
12 | public const string WebApiConfig = "WebApiConfig";
13 | public const string BundleConfig = "BundleConfig";
14 | public const string FilterConfig = "FilterConfig";
15 | public const string RouteConfig = "RouteConfig";
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/StringUtil.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class StringUtil
7 | {
8 | internal static string ToLowerInvariantFirstChar(this string input)
9 | {
10 | if (input == null)
11 | {
12 | throw new ArgumentNullException("input");
13 | }
14 |
15 | if (String.IsNullOrEmpty(input))
16 | {
17 | return input;
18 | }
19 |
20 | return input.Substring(0, length: 1).ToLowerInvariant() + input.Substring(1);
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/InverseBooleanConverter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Globalization;
5 | using System.Windows.Data;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.UI
8 | {
9 | internal class InverseBooleanConverter : IValueConverter
10 | {
11 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
12 | {
13 | return !((bool)value);
14 | }
15 |
16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
17 | {
18 | throw new NotImplementedException();
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/CommonFolderNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | ///
7 | /// Constants for common folder names used in scaffolding.
8 | ///
9 | internal static class CommonFolderNames
10 | {
11 | public const string AppStart = "App_Start";
12 | public const string Areas = "Areas";
13 | public const string Controllers = "Controllers";
14 | public const string Views = "Views";
15 | public const string Models = "Models";
16 | public const string Shared = "Shared";
17 | public const string Content = "Content";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/ContextKeys.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | public static class ContextKeys
7 | {
8 | public const string IsODataLibAssemblyReferencedKey = "RestierScaffolding_IsODataLibAssemblyReferenced";
9 | public const string IsODataWebApiAssemblyReferencedKey = "RestierScaffolding_IsODataWebApiAssemblyReferenced";
10 | public const string IsODataRestierAssemblyReferencedKey = "RestierScaffolding_IsODataRestierAssemblyReferenced";
11 | public const string IsEntityFrameworkAssemblyReferencedKey = "RestierScaffolding_IsEntityFrameworkAssemblyReferencedKey";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/InverseBooleanConverter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System;
7 | using System.Globalization;
8 | using System.Windows.Data;
9 |
10 | internal class InverseBooleanConverter : IValueConverter
11 | {
12 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
13 | {
14 | return !((bool)value);
15 | }
16 |
17 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
18 | {
19 | throw new NotImplementedException();
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Metadata/TypeNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.Metadata
5 | {
6 | internal static class TypeNames
7 | {
8 | public const string KeyAttributeTypeName = "System.ComponentModel.DataAnnotations.KeyAttribute";
9 | public const string ColumnAttributeTypeName = "System.Data.Linq.Mapping.ColumnAttribute";
10 | public const string EdmScalarPropertyAttributeTypeName = "System.Data.Entity.Core.Objects.DataClasses.EdmScalarPropertyAttribute";
11 | public const string ScaffoldColumnAttributeTypeName = "System.ComponentModel.DataAnnotations.ScaffoldColumnAttribute";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/CommonFolderNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | ///
7 | /// Constants for common folder names used in scaffolding.
8 | ///
9 | internal static class CommonFolderNames
10 | {
11 | public const string AppStart = "App_Start";
12 | public const string Areas = "Areas";
13 | public const string Controllers = "Controllers";
14 | public const string Views = "Views";
15 | public const string Models = "Models";
16 | public const string Shared = "Shared";
17 | public const string Content = "Content";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/ODataConnectedService/tools/src/Microsoft.Web.FxCop/DoNotUseFinalizersRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public class DoNotUseFinalizersRule : IntrospectionRule
9 | {
10 | public DoNotUseFinalizersRule()
11 | : base("DoNotUseFinalizers")
12 | {
13 | }
14 |
15 | public override ProblemCollection Check(Member member)
16 | {
17 | if (member.NodeType == NodeType.Method && member.Name.Name == "Finalize")
18 | {
19 | Problems.Add(new Problem(GetResolution(member.DeclaringType.FullName), member));
20 | }
21 |
22 | return Problems;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/RestierScaffolding/tools/src/Microsoft.Web.FxCop/DoNotUseFinalizersRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public class DoNotUseFinalizersRule : IntrospectionRule
9 | {
10 | public DoNotUseFinalizersRule()
11 | : base("DoNotUseFinalizers")
12 | {
13 | }
14 |
15 | public override ProblemCollection Check(Member member)
16 | {
17 | if (member.NodeType == NodeType.Method && member.Name.Name == "Finalize")
18 | {
19 | Problems.Add(new Problem(GetResolution(member.DeclaringType.FullName), member));
20 | }
21 |
22 | return Problems;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/ControllerScaffolderDialog.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using System.Windows;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.UI
8 | {
9 | internal partial class ControllerScaffolderDialog : ValidatingDialogWindow
10 | {
11 | public ControllerScaffolderDialog()
12 | {
13 | InitializeComponent();
14 | }
15 |
16 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "This is called in xaml.")]
17 | private void AddButton_Click(object sender, RoutedEventArgs e)
18 | {
19 | TryClose();
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/AddCancelButtonControl.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Windows;
5 | using System.Windows.Controls;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.UI
8 | {
9 | internal partial class AddCancelButtonControl : UserControl
10 | {
11 | public event RoutedEventHandler AddButtonClick;
12 |
13 | public AddCancelButtonControl()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | public void AddButton_Click(object sender, RoutedEventArgs e)
19 | {
20 | if (AddButtonClick != null)
21 | {
22 | AddButtonClick(sender, e);
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/src/Microsoft.Web.FxCop/DoNotUseFinalizersRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public class DoNotUseFinalizersRule : IntrospectionRule
9 | {
10 | public DoNotUseFinalizersRule()
11 | : base("DoNotUseFinalizers")
12 | {
13 | }
14 |
15 | public override ProblemCollection Check(Member member)
16 | {
17 | if (member.NodeType == NodeType.Method && member.Name.Name == "Finalize")
18 | {
19 | Problems.Add(new Problem(GetResolution(member.DeclaringType.FullName), member));
20 | }
21 |
22 | return Problems;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/ApplicationResources.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
13 |
14 |
16 |
17 |
19 |
20 |
22 |
23 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/InverseBooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Globalization;
5 | using System.Windows;
6 | using System.Windows.Data;
7 |
8 | namespace System.Web.OData.Design.Scaffolding.UI
9 | {
10 | internal class InverseBooleanToVisibilityConverter : IValueConverter
11 | {
12 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
13 | {
14 | return (bool)value ? Visibility.Collapsed : Visibility.Visible;
15 | }
16 |
17 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
18 | {
19 | throw new NotImplementedException();
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/ConfigScaffolderDialog.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System.Diagnostics.CodeAnalysis;
7 | using System.Windows;
8 |
9 | // Interaction logic for ConfigScaffolderDialog.xaml
10 | internal partial class ConfigScaffolderDialog : ValidatingDialogWindow
11 | {
12 | public ConfigScaffolderDialog()
13 | {
14 | InitializeComponent();
15 | }
16 |
17 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "This is called in xaml.")]
18 | private void ChangeButton_Click(object sender, RoutedEventArgs e)
19 | {
20 | TryClose();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/CreateDataContextDialog.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using System.Windows;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.UI
8 | {
9 | // Interaction logic for CreateDataContextDialog.xaml
10 | internal partial class CreateDataContextDialog : ValidatingDialogWindow
11 | {
12 | public CreateDataContextDialog()
13 | {
14 | InitializeComponent();
15 | }
16 |
17 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "This is called in xaml.")]
18 | private void AddButton_Click(object sender, RoutedEventArgs e)
19 | {
20 | TryClose();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/InverseBooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System;
7 | using System.Globalization;
8 | using System.Windows;
9 | using System.Windows.Data;
10 |
11 | internal class InverseBooleanToVisibilityConverter : IValueConverter
12 | {
13 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
14 | {
15 | return (bool)value ? Visibility.Collapsed : Visibility.Visible;
16 | }
17 |
18 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
19 | {
20 | throw new NotImplementedException();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/ChangeCancelButtonControl.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System.Windows;
7 | using System.Windows.Controls;
8 |
9 | // Interaction logic for ChangeCancelButtonControl.xaml
10 | internal partial class ChangeCancelButtonControl : UserControl
11 | {
12 | public event RoutedEventHandler ChangeButtonClick;
13 |
14 | public ChangeCancelButtonControl()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | public void ChangeButton_Click(object sender, RoutedEventArgs e)
20 | {
21 | if (ChangeButtonClick != null)
22 | {
23 | ChangeButtonClick(sender, e);
24 | }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/Abstracts/ICommandOptionManager.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Reflection;
6 |
7 | namespace Microsoft.OData2OpenApi.ConsoleApp.Abstracts
8 | {
9 | ///
10 | /// Interfaced for the command option.
11 | ///
12 | public interface ICommandOptionManager
13 | {
14 | ///
15 | /// List all the options.
16 | ///
17 | /// The options.
18 | IEnumerable ListOptions();
19 |
20 | ///
21 | /// Get the options property.
22 | ///
23 | /// The option key.
24 | /// The option property info.
25 | PropertyInfo GetOption(string key);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Telemetry/TelemetrySharedKeys.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.Telemetry
5 | {
6 | ///
7 | /// Shared keys for storing SQM data points in the CodeGenerationContext. These values are shared with
8 | /// the Core scaffolding implementation, do not change them.
9 | ///
10 | internal static class TelemetrySharedKeys
11 | {
12 | ///
13 | /// This is the key used to store the dictionary of MVC/Web API specific sqm data in the context.
14 | ///
15 | public const string MvcTelemetryItems = "MSInternal_MvcInfo";
16 | public const string DependencyScaffolderOptions = "DependencyScaffolderOptions";
17 | public const string WebApiControllerScaffolderOptions = "WebApiControllerScaffolderOptions";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/odata2swagger/OData2Swagger.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OData2Swagger", "OData2Swagger.csproj", "{2E9328CA-7324-4965-BC56-9D97B405E378}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x86 = Debug|x86
11 | Release|x86 = Release|x86
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {2E9328CA-7324-4965-BC56-9D97B405E378}.Debug|x86.ActiveCfg = Debug|x86
15 | {2E9328CA-7324-4965-BC56-9D97B405E378}.Debug|x86.Build.0 = Debug|x86
16 | {2E9328CA-7324-4965-BC56-9D97B405E378}.Release|x86.ActiveCfg = Release|x86
17 | {2E9328CA-7324-4965-BC56-9D97B405E378}.Release|x86.Build.0 = Release|x86
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Telemetry/TelemetrySharedKeys.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding.Telemetry
5 | {
6 | ///
7 | /// Shared keys for storing SQM data points in the CodeGenerationContext. These values are shared with
8 | /// the Core scaffolding implementation, do not change them.
9 | ///
10 | internal static class TelemetrySharedKeys
11 | {
12 | ///
13 | /// This is the key used to store the dictionary of MVC/Web API specific sqm data in the context.
14 | ///
15 | public const string MvcTelemetryItems = "MSInternal_MvcInfo";
16 | public const string DependencyScaffolderOptions = "DependencyScaffolderOptions";
17 | public const string WebApiControllerScaffolderOptions = "WebApiControllerScaffolderOptions";
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Templates/PackageVersions5.2.2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Templates/PackageVersions5.2.3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/TemplateSearchDirectories.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.IO;
5 | using EnvDTE;
6 | using Microsoft.AspNet.Scaffolding;
7 |
8 | namespace System.Web.OData.Design.Scaffolding
9 | {
10 | internal static class TemplateSearchDirectories
11 | {
12 | public static string InstalledTemplateRoot
13 | {
14 | get
15 | {
16 | return Path.Combine(Path.GetDirectoryName(typeof(TemplateSearchDirectories).Assembly.Location), "Templates");
17 | }
18 | }
19 |
20 | public static string GetProjectTemplateRoot(Project project)
21 | {
22 | if (project == null)
23 | {
24 | throw new ArgumentNullException("project");
25 | }
26 |
27 | return Path.Combine(project.GetFullPath(), "CodeTemplates");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/Models/ServiceConfiguration.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System;
5 |
6 | namespace Microsoft.OData.ConnectedService.Models
7 | {
8 | internal class ServiceConfiguration
9 | {
10 | public string ServiceName { get; set; }
11 | public string Endpoint { get; set; }
12 | public Version EdmxVersion { get; set; }
13 | public string GeneratedFileNamePrefix { get; set; }
14 | public bool UseNameSpacePrefix { get; set; }
15 | public string NamespacePrefix { get; set; }
16 | public bool UseDataServiceCollection { get; set; }
17 | public bool MakeTypesInternal { get; set; }
18 | }
19 |
20 | internal class ServiceConfigurationV4 : ServiceConfiguration
21 | {
22 | public bool EnableNamingAlias { get; set; }
23 | public bool IgnoreUnexpectedElementsAndAttributes { get; set; }
24 | public bool IncludeT4File { get; set; }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/TemplateSearchDirectories.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 | using System.IO;
8 | using EnvDTE;
9 | using Microsoft.AspNet.Scaffolding;
10 |
11 | internal static class TemplateSearchDirectories
12 | {
13 | public static string InstalledTemplateRoot
14 | {
15 | get
16 | {
17 | return Path.Combine(Path.GetDirectoryName(typeof(TemplateSearchDirectories).Assembly.Location), "Templates");
18 | }
19 | }
20 |
21 | public static string GetProjectTemplateRoot(Project project)
22 | {
23 | if (project == null)
24 | {
25 | throw new ArgumentNullException("project");
26 | }
27 |
28 | return Path.Combine(project.GetFullPath(), "CodeTemplates");
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/ApplicationResources.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
15 |
16 |
18 |
19 |
21 |
22 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/RestierScaffolding/Scaffolding.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.40629.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Restier.Scaffolding", "src\Microsoft.Restier.Scaffolding\Microsoft.Restier.Scaffolding.csproj", "{C5F95FF6-87AD-44E6-A182-486E3254255A}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/Scaffolding.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30723.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Web.OData.Design.Scaffolding", "src\System.Web.OData.Design.Scaffolding\System.Web.OData.Design.Scaffolding.csproj", "{C5F95FF6-87AD-44E6-A182-486E3254255A}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ServiceProviderExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class ServiceProviderExtensions
7 | {
8 | public static T GetService(this IServiceProvider serviceProvider)
9 | {
10 | if (serviceProvider == null)
11 | {
12 | throw new ArgumentNullException("serviceProvider");
13 | }
14 |
15 | return (T)serviceProvider.GetService(typeof(T));
16 | }
17 |
18 | public static TInterface GetService(this IServiceProvider serviceProvider)
19 | where TInterface : class
20 | where TService : class
21 | {
22 | if (serviceProvider == null)
23 | {
24 | throw new ArgumentNullException("serviceProvider");
25 | }
26 |
27 | return (TInterface)serviceProvider.GetService(typeof(TService));
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/License.txt:
--------------------------------------------------------------------------------
1 | odata-lab
2 | Copyright (c) Microsoft Corporation
3 | All rights reserved.
4 | MIT License
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.
23 |
24 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/License.txt:
--------------------------------------------------------------------------------
1 | OData Connected Service ver. 0.3.0
2 |
3 | Copyright (c) Microsoft Corporation
4 |
5 | All rights reserved.
6 |
7 | MIT License
8 |
9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ServiceProviderExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 |
8 | internal static class ServiceProviderExtensions
9 | {
10 | public static T GetService(this IServiceProvider serviceProvider)
11 | {
12 | if (serviceProvider == null)
13 | {
14 | throw new ArgumentNullException("serviceProvider");
15 | }
16 |
17 | return (T)serviceProvider.GetService(typeof(T));
18 | }
19 |
20 | public static TInterface GetService(this IServiceProvider serviceProvider)
21 | where TInterface : class
22 | where TService : class
23 | {
24 | if (serviceProvider == null)
25 | {
26 | throw new ArgumentNullException("serviceProvider");
27 | }
28 |
29 | return (TInterface)serviceProvider.GetService(typeof(TService));
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/ChangeCancelButtonControl.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
13 |
14 |
15 |
16 |
18 |
24 |
27 |
28 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding.Extension/License.txt:
--------------------------------------------------------------------------------
1 | WebAPI OData V4 Scaffolding ver. 0.1.3
2 |
3 | Copyright (c) Microsoft Corporation
4 |
5 | All rights reserved.
6 |
7 | MIT License
8 |
9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/AddCancelButtonControl.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
13 |
14 |
15 |
16 |
18 |
24 |
27 |
28 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/DataContextModelTypeComparer.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.UI
7 | {
8 | ///
9 | /// A comparer implementation for the DataContext menu, that puts the "Add New DataContext"
10 | /// item at the top, and then sorts by type name.
11 | ///
12 | internal class DataContextModelTypeComparer : Comparer
13 | {
14 | public override int Compare(ModelType x, ModelType y)
15 | {
16 | if (x == null && y == null)
17 | {
18 | return 0;
19 | }
20 | else if (x == null)
21 | {
22 | return -1;
23 | }
24 | else if (y == null)
25 | {
26 | return 1;
27 | }
28 | else
29 | {
30 | return StringComparer.CurrentCulture.Compare(x.ShortTypeName, y.ShortTypeName);
31 | }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/DataContextModelTypeComparer.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System;
7 | using System.Collections.Generic;
8 |
9 | ///
10 | /// A comparer implementation for the DataContext menu, that puts the "Add New DataContext"
11 | /// item at the top, and then sorts by type name.
12 | ///
13 | internal class DataContextModelTypeComparer : Comparer
14 | {
15 | public override int Compare(ModelType x, ModelType y)
16 | {
17 | if (x == null && y == null)
18 | {
19 | return 0;
20 | }
21 | else if (x == null)
22 | {
23 | return -1;
24 | }
25 | else if (y == null)
26 | {
27 | return 1;
28 | }
29 | else
30 | {
31 | return StringComparer.CurrentCulture.Compare(x.ShortTypeName, y.ShortTypeName);
32 | }
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding.Extension/License.txt:
--------------------------------------------------------------------------------
1 | WebAPI OData V4 Scaffolding ver. 0.1.3
2 |
3 | Copyright (c) Microsoft Corporation
4 |
5 | All rights reserved.
6 |
7 | MIT License
8 |
9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27703.2042
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OData2OpenApi", "OData2OpenApi\OData2OpenApi.csproj", "{66AB1E32-735B-44D4-9944-93D3D1ED1A2F}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {66AB1E32-735B-44D4-9944-93D3D1ED1A2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {66AB1E32-735B-44D4-9944-93D3D1ED1A2F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {66AB1E32-735B-44D4-9944-93D3D1ED1A2F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {66AB1E32-735B-44D4-9944-93D3D1ED1A2F}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {726EFC65-7FD4-41B6-AB9B-E95BA6F834A2}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/ODataConnectedService/ODataConnectedService.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26730.10
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ODataConnectedService", "src\ODataConnectedService.csproj", "{A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {41B2D57F-50D1-4ADE-838D-F2CC7C0F6958}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class NativeMethods
7 | {
8 | public const int E_FAIL = unchecked((int)0x80004005);
9 |
10 | ///
11 | /// This is the HResult returned by IVsBuildPropertyStorage when attempting to read a property that's
12 | /// not in the file.
13 | ///
14 | ///
15 | /// See: http://connect.microsoft.com/VisualStudio/feedback/details/466725/visual-studio-interoperability-request-for-documentation
16 | ///
17 | public const int E_XML_ATTRIBUTE_NOT_FOUND = unchecked((int)0x8004C738);
18 |
19 | public const int S_OK = unchecked((int)0x00000000);
20 |
21 | public static readonly Guid IID_IUnknown = new Guid("{00000000-0000-0000-C000-000000000046}");
22 |
23 | public const int CLSCTX_INPROC_SERVER = 0x1;
24 |
25 | public static bool Succeeded(int hr)
26 | {
27 | return hr >= 0;
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ProjectItemExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using EnvDTE;
5 | using Microsoft.AspNet.Scaffolding;
6 |
7 | namespace System.Web.OData.Design.Scaffolding
8 | {
9 | internal static class ProjectItemExtensions
10 | {
11 | // TODO: This is a good candidate to get into Core, since this seems like a common thing to do
12 | public static string GetProjectRelativePath(this ProjectItem projectItem)
13 | {
14 | Project project = projectItem.ContainingProject;
15 | string projRelativePath = null;
16 |
17 | string rootProjectDir = project.GetFullPath();
18 | rootProjectDir = MvcProjectUtil.EnsureTrailingBackSlash(rootProjectDir);
19 | string fullPath = projectItem.GetFullPath();
20 |
21 | if (!String.IsNullOrEmpty(rootProjectDir) && !String.IsNullOrEmpty(fullPath))
22 | {
23 | projRelativePath = CoreScaffoldingUtil.MakeRelativePath(fullPath, rootProjectDir);
24 | }
25 |
26 | return projRelativePath;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 |
8 | internal static class NativeMethods
9 | {
10 | public const int E_FAIL = unchecked((int)0x80004005);
11 |
12 | ///
13 | /// This is the HResult returned by IVsBuildPropertyStorage when attempting to read a property that's
14 | /// not in the file.
15 | ///
16 | ///
17 | /// See: http://connect.microsoft.com/VisualStudio/feedback/details/466725/visual-studio-interoperability-request-for-documentation
18 | ///
19 | public const int E_XML_ATTRIBUTE_NOT_FOUND = unchecked((int)0x8004C738);
20 |
21 | public const int S_OK = unchecked((int)0x00000000);
22 |
23 | public static readonly Guid IID_IUnknown = new Guid("{00000000-0000-0000-C000-000000000046}");
24 |
25 | public const int CLSCTX_INPROC_SERVER = 0x1;
26 |
27 | public static bool Succeeded(int hr)
28 | {
29 | return hr >= 0;
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/RestierScaffolding/build.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | pushd %~dp0
3 | setlocal
4 |
5 | if exist bin goto Build
6 | mkdir bin
7 |
8 | :Build
9 |
10 | REM Find the most recent 32bit MSBuild.exe on the system. Require v12.0 (installed with VS2013) or later since .NET 4.0
11 | REM is not supported. Also handle x86 operating systems, where %ProgramFiles(x86)% is not defined. Always quote the
12 | REM %MSBuild% value when setting the variable and never quote %MSBuild% references.
13 | set MSBuild="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
14 | if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe"
15 |
16 | if "%1" == "" goto BuildDefaults
17 |
18 | %MSBuild% Scaffolding.msbuild /m /nr:false /t:%* /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
19 | if %ERRORLEVEL% neq 0 goto BuildFail
20 | goto BuildSuccess
21 |
22 | :BuildDefaults
23 | %MSBuild% Scaffolding.msbuild /m /nr:false /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
24 | if %ERRORLEVEL% neq 0 goto BuildFail
25 | goto BuildSuccess
26 |
27 | :BuildFail
28 | echo.
29 | echo *** BUILD FAILED ***
30 | goto End
31 |
32 | :BuildSuccess
33 | echo.
34 | echo **** BUILD SUCCESSFUL ***
35 | goto End
36 |
37 | :End
38 | popd
39 | endlocal
40 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/ProjectItemExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 | using EnvDTE;
8 | using Microsoft.AspNet.Scaffolding;
9 |
10 | internal static class ProjectItemExtensions
11 | {
12 | // TODO: This is a good candidate to get into Core, since this seems like a common thing to do
13 | public static string GetProjectRelativePath(this ProjectItem projectItem)
14 | {
15 | Project project = projectItem.ContainingProject;
16 | string projRelativePath = null;
17 |
18 | string rootProjectDir = project.GetFullPath();
19 | rootProjectDir = MvcProjectUtil.EnsureTrailingBackSlash(rootProjectDir);
20 | string fullPath = projectItem.GetFullPath();
21 |
22 | if (!String.IsNullOrEmpty(rootProjectDir) && !String.IsNullOrEmpty(fullPath))
23 | {
24 | projRelativePath = CoreScaffoldingUtil.MakeRelativePath(fullPath, rootProjectDir);
25 | }
26 |
27 | return projRelativePath;
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding.Extension/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | OData v4 Web API Scaffolding
5 | The Scaffolding for OData v4 WebAPI.
6 | License.txt
7 | Scaffolding, OData
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/build.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | pushd %~dp0
3 | setlocal
4 |
5 | if exist bin goto Build
6 | mkdir bin
7 |
8 | :Build
9 |
10 | REM Find the most recent 32bit MSBuild.exe on the system. Require v12.0 (installed with VS2013) or later since .NET 4.0
11 | REM is not supported. Also handle x86 operating systems, where %ProgramFiles(x86)% is not defined. Always quote the
12 | REM %MSBuild% value when setting the variable and never quote %MSBuild% references.
13 | set MSBuild="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
14 | if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe"
15 |
16 | if "%1" == "" goto BuildDefaults
17 |
18 | %MSBuild% Scaffolding.msbuild /m /nr:false /t:%* /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
19 | if %ERRORLEVEL% neq 0 goto BuildFail
20 | goto BuildSuccess
21 |
22 | :BuildDefaults
23 | %MSBuild% Scaffolding.msbuild /m /nr:false /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
24 | if %ERRORLEVEL% neq 0 goto BuildFail
25 | goto BuildSuccess
26 |
27 | :BuildFail
28 | echo.
29 | echo *** BUILD FAILED ***
30 | goto End
31 |
32 | :BuildSuccess
33 | echo.
34 | echo **** BUILD SUCCESSFUL ***
35 | goto End
36 |
37 | :End
38 | popd
39 | endlocal
40 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/CodeTypeExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 | using System.Globalization;
8 | using EnvDTE;
9 | using EnvDTE80;
10 |
11 | internal static class CodeTypeExtension
12 | {
13 | public static bool IsValidConfigType(this CodeType codeType)
14 | {
15 | if (codeType == null)
16 | {
17 | throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, Resources.ArgumentNullOrEmpty, "codeType"));
18 | }
19 |
20 | var cc = codeType as CodeClass2;
21 | if (cc != null && cc.IsShared && cc.Name.EndsWith("Config", StringComparison.Ordinal))
22 | {
23 | foreach (CodeElement ce in cc.Children)
24 | {
25 | if (ce.Name.EndsWith("Register", StringComparison.Ordinal) && ce is CodeFunction)
26 | {
27 | return true;
28 | }
29 | }
30 | }
31 |
32 | return false;
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding.Extension/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Restier Scaffolding
6 | The scaffolding that simplifies the process of building the OData service with EF by RestierTAn assistent Scaffolding
7 | License.txt
8 | Scaffolding, OData
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/ConvertSettingProvider.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.OData2OpenApi.ConsoleApp.Abstracts;
5 | using Microsoft.OpenApi.OData;
6 |
7 | namespace Microsoft.OData2OpenApi.ConsoleApp
8 | {
9 | internal class ConvertSettingsProvider : IConvertSettingsProvider
10 | {
11 | private Configuration Config { get; }
12 |
13 | public ConvertSettingsProvider(Configuration config)
14 | {
15 | Config = config;
16 | }
17 |
18 | public virtual OpenApiConvertSettings GetConvertSettings()
19 | {
20 | var settings = new OpenApiConvertSettings();
21 |
22 | settings.EnableKeyAsSegment = Config.KeyAsSegment;
23 | settings.EnableNavigationPropertyPath = Config.NavigationPropertyPath;
24 | settings.EnableOperationPath = Config.OperationPath;
25 | settings.EnableOperationId = Config.OperationId;
26 | settings.PrefixEntityTypeNameBeforeKey = Config.PrefixTypeBeforeKey;
27 | settings.EnableOperationImportPath = Config.OperationImportPath;
28 | settings.EnableUnqualifiedCall = Config.UnqualifiedCall;
29 |
30 | return settings;
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/MultiAndBooleanConverter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System;
7 | using System.Globalization;
8 | using System.Windows.Data;
9 |
10 | internal class MultiAndBooleanConverter : IMultiValueConverter
11 | {
12 | public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
13 | {
14 | bool returnValue = true;
15 |
16 | for (int i = 0; i < values.Length; i++)
17 | {
18 | if (values[i] is bool)
19 | {
20 | returnValue &= (bool)values[i];
21 | }
22 | else
23 | {
24 | throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, "Values must be boolean!. Value {0} had a type of {1}", i, values[i].GetType().ToString()));
25 | }
26 | }
27 |
28 | return returnValue;
29 | }
30 |
31 | public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
32 | {
33 | throw new NotImplementedException();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/RestierScaffolding/tools/src/Microsoft.Web.FxCop/DoNotConstructTaskInstancesRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public class DoNotConstructTaskInstancesRule : IntrospectionRule
9 | {
10 | public DoNotConstructTaskInstancesRule()
11 | : base("DoNotConstructTaskInstances")
12 | {
13 | }
14 |
15 | public override ProblemCollection Check(Member member)
16 | {
17 | var method = member as Method;
18 | if (method != null)
19 | {
20 | VisitStatements(method.Body.Statements);
21 | }
22 |
23 | return Problems;
24 | }
25 |
26 | public override void VisitConstruct(Construct construct)
27 | {
28 | var memberBinding = construct.Constructor as MemberBinding;
29 |
30 | if (memberBinding != null
31 | && memberBinding.BoundMember.Name.Name == ".ctor"
32 | && memberBinding.BoundMember.DeclaringType.IsTask())
33 | {
34 | Problems.Add(new Problem(GetResolution(), construct.UniqueKey.ToString()));
35 | }
36 |
37 | base.VisitConstruct(construct);
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/ODataConnectedService/tools/src/Microsoft.Web.FxCop/DoNotConstructTaskInstancesRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public class DoNotConstructTaskInstancesRule : IntrospectionRule
9 | {
10 | public DoNotConstructTaskInstancesRule()
11 | : base("DoNotConstructTaskInstances")
12 | {
13 | }
14 |
15 | public override ProblemCollection Check(Member member)
16 | {
17 | var method = member as Method;
18 | if (method != null)
19 | {
20 | VisitStatements(method.Body.Statements);
21 | }
22 |
23 | return Problems;
24 | }
25 |
26 | public override void VisitConstruct(Construct construct)
27 | {
28 | var memberBinding = construct.Constructor as MemberBinding;
29 |
30 | if (memberBinding != null
31 | && memberBinding.BoundMember.Name.Name == ".ctor"
32 | && memberBinding.BoundMember.DeclaringType.IsTask())
33 | {
34 | Problems.Add(new Problem(GetResolution(), construct.UniqueKey.ToString()));
35 | }
36 |
37 | base.VisitConstruct(construct);
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/src/Microsoft.Web.FxCop/DoNotConstructTaskInstancesRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using Microsoft.FxCop.Sdk;
5 |
6 | namespace Microsoft.Web.FxCop
7 | {
8 | public class DoNotConstructTaskInstancesRule : IntrospectionRule
9 | {
10 | public DoNotConstructTaskInstancesRule()
11 | : base("DoNotConstructTaskInstances")
12 | {
13 | }
14 |
15 | public override ProblemCollection Check(Member member)
16 | {
17 | var method = member as Method;
18 | if (method != null)
19 | {
20 | VisitStatements(method.Body.Statements);
21 | }
22 |
23 | return Problems;
24 | }
25 |
26 | public override void VisitConstruct(Construct construct)
27 | {
28 | var memberBinding = construct.Constructor as MemberBinding;
29 |
30 | if (memberBinding != null
31 | && memberBinding.BoundMember.Name.Name == ".ctor"
32 | && memberBinding.BoundMember.DeclaringType.IsTask())
33 | {
34 | Problems.Add(new Problem(GetResolution(), construct.UniqueKey.ToString()));
35 | }
36 |
37 | base.VisitConstruct(construct);
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/ODataConnectedService/build.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | pushd %~dp0
3 | setlocal
4 |
5 | if exist bin goto Build
6 | mkdir bin
7 |
8 | :Build
9 |
10 | REM Find one of the Visual Studio 2017 installations.
11 | REM Also handle x86 operating systems, where %ProgramFiles(x86)% is not defined. Always quote the
12 | REM %MSBuild% value when setting the variable and never quote %MSBuild% references.
13 | set MSBuild="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe"
14 | if not exist %MSBuild% @set MSBuild="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe"
15 | if not exist %MSBuild% @set MSBuild="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
16 |
17 | if "%1" == "" goto BuildDefaults
18 |
19 | %MSBuild% ODataConnectedService.msbuild /m /nr:false /t:%* /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
20 | if %ERRORLEVEL% neq 0 goto BuildFail
21 | goto BuildSuccess
22 |
23 | :BuildDefaults
24 | %MSBuild% ODataConnectedService.msbuild /m /nr:false /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal
25 | if %ERRORLEVEL% neq 0 goto BuildFail
26 | goto BuildSuccess
27 |
28 | :BuildFail
29 | echo.
30 | echo *** BUILD FAILED ***
31 | goto End
32 |
33 | :BuildSuccess
34 | echo.
35 | echo **** BUILD SUCCESSFUL ***
36 | goto End
37 |
38 | :End
39 | popd
40 | endlocal
41 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/Restier/ODataDependencyInstaller.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 | using System.IO;
8 | using System.Runtime.Remoting.Contexts;
9 | using Microsoft.AspNet.Scaffolding;
10 | using Microsoft.Restier.Scaffolding.ReadMe;
11 | using Microsoft.Restier.Scaffolding.VisualStudio;
12 |
13 | public class ODataDependencyInstaller : DependencyInstaller
14 | {
15 | public ODataDependencyInstaller(CodeGenerationContext context, IVisualStudioIntegration visualStudioIntegration)
16 | : base(context, visualStudioIntegration)
17 | {
18 | }
19 |
20 | protected override string[] SearchFolders
21 | {
22 | get
23 | {
24 | // TODO: this is temporarily here until we reorganize these dependency folders
25 | return new string[] { Path.Combine(TemplateSearchDirectories.InstalledTemplateRoot, "ODataDependencyCodeGenerator") };
26 | }
27 | }
28 |
29 | protected override FrameworkDependencyStatus GenerateConfiguration()
30 | {
31 | return FrameworkDependencyStatus.FromReadme(ODataReadMe.CreateReadMeText());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/VisualStudio/IVisualStudioIntegration.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using EnvDTE;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.VisualStudio
7 | {
8 | public interface IVisualStudioIntegration
9 | {
10 | IEditorIntegration Editor
11 | {
12 | get;
13 | }
14 |
15 | ///
16 | /// Gets the Visual Studio Shell ServiceProvider.
17 | ///
18 | IServiceProvider ServiceProvider
19 | {
20 | get;
21 | }
22 |
23 | ///
24 | /// Gets a IProjectSettings instance for the given project, or null if the project does not implement
25 | /// IVsBuildPropertyStorage.
26 | ///
27 | /// The project
28 | /// An IProjectSettings instance, or null.
29 | IProjectSettings GetProjectSettings(Project project);
30 |
31 | ///
32 | /// Shows an error message in a modal message box dialog.
33 | ///
34 | /// The dialog caption.
35 | /// The dialog message.
36 | void ShowErrorMessage(string caption, string message);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/VisualStudio/IVisualStudioIntegration.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.VisualStudio
5 | {
6 | using System;
7 | using EnvDTE;
8 |
9 | public interface IVisualStudioIntegration
10 | {
11 | IEditorIntegration Editor
12 | {
13 | get;
14 | }
15 |
16 | ///
17 | /// Gets the Visual Studio Shell ServiceProvider.
18 | ///
19 | IServiceProvider ServiceProvider
20 | {
21 | get;
22 | }
23 |
24 | ///
25 | /// Gets a IProjectSettings instance for the given project, or null if the project does not implement
26 | /// IVsBuildPropertyStorage.
27 | ///
28 | /// The project
29 | /// An IProjectSettings instance, or null.
30 | IProjectSettings GetProjectSettings(Project project);
31 |
32 | ///
33 | /// Shows an error message in a modal message box dialog.
34 | ///
35 | /// The dialog caption.
36 | /// The dialog message.
37 | void ShowErrorMessage(string caption, string message);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/Restier/RestierConfigScaffolderFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System.ComponentModel.Composition;
7 | using Microsoft.AspNet.Scaffolding;
8 |
9 | [Export(typeof(CodeGeneratorFactory))]
10 | internal class RestierConfigScaffolderFactory : ScaffolderFactory
11 | {
12 | private static CodeGeneratorInformation _info = new CodeGeneratorInformation(
13 | displayName: Resources.RestierScaffolderName,
14 | description: Resources.RestierScaffolderDescription,
15 | author: Resources.Scaffold_Auther,
16 | version: ScaffolderVersions.RestierScaffolderVersion,
17 | id: Resources.RestierScaffolderId,
18 | icon: ToImageSource(Resources._TemplateIconSample),
19 | gestures: new[] { ScaffoldingGestures.Config },
20 | categories: new[] { Categories.WebApi });
21 |
22 | public RestierConfigScaffolderFactory()
23 | : base(_info)
24 | {
25 | }
26 |
27 | protected override ICodeGenerator CreateInstanceInternal(CodeGenerationContext context)
28 | {
29 | return new RestierConfigScaffolder(context, Information);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/VisualStudio/ProjectSettingsExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.VisualStudio
5 | {
6 | using System;
7 | using System.Diagnostics.Contracts;
8 | using System.Globalization;
9 |
10 | internal static class ProjectSettingsExtensions
11 | {
12 | public static bool TryGetString(this IProjectSettings settings, string key, out string value)
13 | {
14 | Contract.Assert(settings != null);
15 | Contract.Assert(key != null);
16 |
17 | value = settings[key];
18 | return value != null;
19 | }
20 |
21 | public static bool TryGetDouble(this IProjectSettings settings, string key, out double value)
22 | {
23 | Contract.Assert(settings != null);
24 | Contract.Assert(key != null);
25 |
26 | string storedValue = settings[key];
27 | double parsedValue;
28 | if (storedValue != null && Double.TryParse(storedValue, out parsedValue))
29 | {
30 | value = parsedValue;
31 | return true;
32 | }
33 | else
34 | {
35 | value = default(double);
36 | return false;
37 | }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/Views/AdvancedSettings.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Windows;
5 | using System.Windows.Controls;
6 | using Microsoft.OData.ConnectedService.ViewModels;
7 |
8 | namespace Microsoft.OData.ConnectedService.Views
9 | {
10 | ///
11 | /// Interaction logic for AdvancedSettings.xaml
12 | ///
13 | public partial class AdvancedSettings : UserControl
14 | {
15 | public AdvancedSettings()
16 | {
17 | InitializeComponent();
18 | this.AdvancedSettingsPanel.Visibility = Visibility.Hidden;
19 | }
20 |
21 | internal ODataConnectedServiceWizard ODataConnectedServiceWizard
22 | {
23 | get { return ((AdvancedSettingsViewModel)this.DataContext).Wizard as ODataConnectedServiceWizard; }
24 | }
25 |
26 | private void settings_Click(object sender, RoutedEventArgs e)
27 | {
28 | this.SettingsPanel.Visibility = Visibility.Hidden;
29 |
30 | this.AdvancedSettingsPanel.Margin = new Thickness(10, -125, 0, 0);
31 | this.AdvancedSettingsPanel.Visibility = Visibility.Visible;
32 |
33 | this.AdvancedSettingsForv4.Visibility = this.ODataConnectedServiceWizard.EdmxVersion == Common.Constants.EdmxVersion4
34 | ? Visibility.Visible : Visibility.Hidden;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/SavedSettingsKeys.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class SavedSettingsKeys
7 | {
8 | private const string Prefix = "WebStackScaffolding_";
9 |
10 | public const string IsLayoutPageSelectedKey = Prefix + "IsLayoutPageSelected";
11 | public const string IsReferencingScriptLibrariesSelectedKey = Prefix + "IsReferencingScriptLibrariesSelected";
12 | public const string IsPartialViewSelectedKey = Prefix + "IsPartialViewSelected";
13 | public const string IsAsyncSelectedKey = Prefix + "IsAsyncSelected";
14 | public const string LayoutPageFileKey = Prefix + "LayoutPageFile";
15 | public const string IsViewGenerationSelectedKey = Prefix + "IsViewGenerationSelected";
16 | public const string DbContextTypeFullNameKey = Prefix + "DbContextTypeFullName";
17 | public const string AreaDialogWidthKey = Prefix + "AreaDialogWidth";
18 | public const string ControllerDialogWidthKey = Prefix + "ControllerDialogWidth";
19 | public const string ViewDialogWidthKey = Prefix + "ViewDialogWidth";
20 | public const string DbContextDialogWidthKey = Prefix + "DbContextDialogWidth";
21 | public const string DependencyDialogWidthKey = Prefix + "DependencyDialogWidth";
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Telemetry/CodeGenerationContextExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using Microsoft.AspNet.Scaffolding;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.Telemetry
8 | {
9 | internal static class CodeGenerationContextExtensions
10 | {
11 | public static void AddTelemetryData(this CodeGenerationContext context, string key, object value)
12 | {
13 | if (context == null)
14 | {
15 | throw new ArgumentNullException("context");
16 | }
17 |
18 | if (key == null)
19 | {
20 | throw new ArgumentNullException("key");
21 | }
22 |
23 | if (value == null)
24 | {
25 | throw new ArgumentNullException("value");
26 | }
27 |
28 | Dictionary mvcTelemetryItems;
29 | if (!context.Items.TryGetProperty>(TelemetrySharedKeys.MvcTelemetryItems, out mvcTelemetryItems))
30 | {
31 | mvcTelemetryItems = new Dictionary();
32 | context.Items.AddProperty(TelemetrySharedKeys.MvcTelemetryItems, mvcTelemetryItems);
33 | }
34 |
35 | mvcTelemetryItems[key] = value;
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/MultiAndBooleanConverter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Globalization;
5 | using System.Windows.Data;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.UI
8 | {
9 | internal class MultiAndBooleanConverter : IMultiValueConverter
10 | {
11 | public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
12 | {
13 | if (values == null)
14 | {
15 | throw new ArgumentNullException("values");
16 | }
17 |
18 | bool returnValue = true;
19 |
20 | for (int i = 0; i < values.Length; i++)
21 | {
22 | if (values[i] is bool)
23 | {
24 | returnValue &= (bool)values[i];
25 | }
26 | else
27 | {
28 | throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, "Values must be boolean!. Value {0} had a type of {1}", i, values[i].GetType().ToString()));
29 | }
30 | }
31 |
32 | return returnValue;
33 | }
34 |
35 | public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
36 | {
37 | throw new NotImplementedException();
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Telemetry/CodeGenerationContextExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.Telemetry
5 | {
6 | using System;
7 | using System.Collections.Generic;
8 | using Microsoft.AspNet.Scaffolding;
9 |
10 | internal static class CodeGenerationContextExtensions
11 | {
12 | public static void AddTelemetryData(this CodeGenerationContext context, string key, object value)
13 | {
14 | if (context == null)
15 | {
16 | throw new ArgumentNullException("context");
17 | }
18 |
19 | if (key == null)
20 | {
21 | throw new ArgumentNullException("key");
22 | }
23 |
24 | if (value == null)
25 | {
26 | throw new ArgumentNullException("value");
27 | }
28 |
29 | Dictionary mvcTelemetryItems;
30 | if (!context.Items.TryGetProperty>(TelemetrySharedKeys.MvcTelemetryItems, out mvcTelemetryItems))
31 | {
32 | mvcTelemetryItems = new Dictionary();
33 | context.Items.AddProperty(TelemetrySharedKeys.MvcTelemetryItems, mvcTelemetryItems);
34 | }
35 |
36 | mvcTelemetryItems[key] = value;
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/OpenApiGenerator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.IO;
5 | using Microsoft.OData.Edm;
6 | using Microsoft.OData2OpenApi.ConsoleApp.Abstracts;
7 | using Microsoft.OpenApi.Extensions;
8 | using Microsoft.OpenApi.Models;
9 | using Microsoft.OpenApi.OData;
10 |
11 | namespace Microsoft.OData2OpenApi.ConsoleApp
12 | {
13 | ///
14 | /// Open Api generator.
15 | ///
16 | internal static class OpenApiGenerator
17 | {
18 | ///
19 | /// Generate the Open Api.
20 | ///
21 | public static bool Run(Configuration config)
22 | {
23 | IEdmModelProvider modelProvider = new EdmModelProvider(config.InputCsdl, config.IsLocalFile);
24 | IEdmModel edmModel = modelProvider.GetEdmModel();
25 |
26 | IConvertSettingsProvider settingsProvider = new ConvertSettingsProvider(config);
27 | OpenApiConvertSettings settings = settingsProvider.GetConvertSettings();
28 |
29 | using (FileStream fs = File.Create(config.OutputFileName))
30 | {
31 | OpenApiDocument document = edmModel.ConvertToOpenApi(settings);
32 | document.Serialize(fs, OpenApi.OpenApiSpecVersion.OpenApi3_0, config.Format);
33 | fs.Flush();
34 | }
35 |
36 | return true;
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/OData/ODataControllerWithContextScaffolder.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using EnvDTE;
6 | using Microsoft.AspNet.Scaffolding;
7 | using Microsoft.AspNet.Scaffolding.Core.Metadata;
8 |
9 |
10 | namespace System.Web.OData.Design.Scaffolding
11 | {
12 | public class ODataControllerWithContextScaffolder : ControllerWithContextScaffolder
13 | {
14 | public ODataControllerWithContextScaffolder(CodeGenerationContext context, CodeGeneratorInformation information)
15 | : base(context, information)
16 | {
17 | }
18 |
19 | protected internal override string TemplateFolderName
20 | {
21 | get
22 | {
23 | return "ODataControllerWithContext";
24 | }
25 | }
26 |
27 | protected override IDictionary AddTemplateParameters(CodeType dbContextType, ModelMetadata modelMetadata)
28 | {
29 | IDictionary parameters = base.AddTemplateParameters(dbContextType, modelMetadata);
30 | parameters.Add("ODataModificationMessage", Resources.ScaffoldODataModificationMessage);
31 | parameters.Add("IsLegacyOdataVersion", Framework.IsODataLegacy(Context));
32 | return parameters;
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("OData2OpenApi")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("OData2OpenApi")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("66ab1e32-735b-44d4-9944-93d3d1ed1a2f")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/Common/CodeGeneratorUtils.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System;
5 | using Microsoft.Win32;
6 |
7 | namespace Microsoft.OData.ConnectedService.Common
8 | {
9 | internal static class CodeGeneratorUtils
10 | {
11 | public const string InstallLocationSubKeyName = "InstallLocation";
12 |
13 | ///
14 | /// Try to get the location of the installed WCF Data Service.
15 | ///
16 | /// Returns the location of the installed WCF Data Service if it exists, else returns empty string.
17 | public static string GetWCFDSInstallLocation()
18 | {
19 | string dataFxRegistryPath = 8 == IntPtr.Size
20 | ? @"SOFTWARE\Wow6432Node\Microsoft\Microsoft WCF Data Services\VS 2014 Tooling\"
21 | : @"SOFTWARE\Microsoft\Microsoft WCF Data Services\VS 2014 Tooling\";
22 | using (RegistryKey dataFxKey = Registry.LocalMachine.OpenSubKey(dataFxRegistryPath))
23 | {
24 | if (dataFxKey != null)
25 | {
26 | string runtimePath = (string)dataFxKey.GetValue(InstallLocationSubKeyName);
27 | if (!string.IsNullOrEmpty(runtimePath))
28 | {
29 | return runtimePath;
30 | }
31 | }
32 | }
33 |
34 | return String.Empty;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/Common/ProjectHelper.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System;
5 | using EnvDTE;
6 | using Microsoft.VisualStudio.Shell.Interop;
7 |
8 | namespace Microsoft.OData.ConnectedService.Common
9 | {
10 | ///
11 | /// A utility class for working with VS projects (e.g. retrieving settings from).
12 | ///
13 | internal static class ProjectHelper
14 | {
15 | public const uint VSConstants_VSITEMID_ROOT = 4294967294;
16 | public const int __VSHPROPID_VSHPROPID_ExtObject = -2027;
17 | public const int VSConstans_S_OK = 0;
18 |
19 | public static Project GetProjectFromHierarchy(IVsHierarchy projectHierarchy)
20 | {
21 | object projectObject;
22 | int result = projectHierarchy.GetProperty(
23 | VSConstants_VSITEMID_ROOT /* VSConstants.VSITEMID_ROOT */,
24 | __VSHPROPID_VSHPROPID_ExtObject /* (int)__VSHPROPID.VSHPROPID_ExtObject */,
25 | out projectObject);
26 | if (result != VSConstans_S_OK)
27 | {
28 | throw new InvalidOperationException("Cannot find the project from VsHierarchy");
29 | }
30 |
31 | return (Project)projectObject;
32 | }
33 |
34 | public static string GetProjectFullPath(Project project)
35 | {
36 | return project.Properties.Item("FullPath").Value.ToString();
37 | }
38 | }
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/OData/ODataControllerWithContextScaffolderFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.ComponentModel.Composition;
5 | using Microsoft.AspNet.Scaffolding;
6 |
7 | namespace System.Web.OData.Design.Scaffolding
8 | {
9 | [Export(typeof(CodeGeneratorFactory))]
10 | internal class ODataControllerWithContextScaffolderFactory : ScaffolderFactory
11 | {
12 | private static CodeGeneratorInformation _info = new CodeGeneratorInformation(
13 | displayName: Resources.ScaffoldODataContext_Name,
14 | description: Resources.ScaffoldODataContext_Description,
15 | author: Resources.Scaffold_Auther,
16 | version: ScaffolderVersions.WebApiODataScaffolderVersion,
17 | id: Resources.ScaffoldODataContext_Id,
18 | icon: ToImageSource(Resources._TemplateIconSample),
19 | gestures: new[] { ScaffoldingGestures.Controller },
20 | categories: new[] { Categories.Common, Categories.MvcController, Categories.WebApi });
21 |
22 | public ODataControllerWithContextScaffolderFactory()
23 | : base(_info)
24 | {
25 | }
26 |
27 | protected override ICodeGenerator CreateInstanceInternal(CodeGenerationContext context)
28 | {
29 | return new ODataControllerWithContextScaffolder(context, Information);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/OData/ODataControllerWithActionsScaffolderFactory.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.ComponentModel.Composition;
5 | using Microsoft.AspNet.Scaffolding;
6 |
7 | namespace System.Web.OData.Design.Scaffolding
8 | {
9 | [Export(typeof(CodeGeneratorFactory))]
10 | internal class ODataControllerWithActionsScaffolderFactory : ScaffolderFactory
11 | {
12 | private static CodeGeneratorInformation _info = new CodeGeneratorInformation(
13 | displayName: Resources.ScaffoldODataActions_Name,
14 | description: Resources.ScaffoldODataActions_Description,
15 | author: Resources.Scaffold_Auther,
16 | version: ScaffolderVersions.WebApiODataScaffolderVersion,
17 | id: Resources.ScaffoldODataActions_Id,
18 | icon: ToImageSource(Resources._TemplateIconSample),
19 | gestures: new[] { ScaffoldingGestures.Controller },
20 | categories: new[] { Categories.Common, Categories.MvcController, Categories.WebApi });
21 |
22 | public ODataControllerWithActionsScaffolderFactory()
23 | : base(_info)
24 | {
25 | }
26 |
27 | protected override ICodeGenerator CreateInstanceInternal(CodeGenerationContext context)
28 | {
29 | return new ODataControllerWithActionsScaffolder(context, Information);
30 | }
31 |
32 |
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding.Extension/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Reflection;
5 | using System.Runtime.CompilerServices;
6 | using System.Runtime.InteropServices;
7 |
8 | // General Information about an assembly is controlled through the following
9 | // set of attributes. Change these attribute values to modify the information
10 | // associated with an assembly.
11 | [assembly: AssemblyTitle("RestierScaffoldingExtension")]
12 | [assembly: AssemblyDescription("")]
13 | [assembly: AssemblyConfiguration("")]
14 | [assembly: AssemblyCompany("")]
15 | [assembly: AssemblyProduct("RestierScaffoldingExtension")]
16 | [assembly: AssemblyCopyright("")]
17 | [assembly: AssemblyTrademark("")]
18 | [assembly: AssemblyCulture("")]
19 |
20 | // Setting ComVisible to false makes the types in this assembly not visible
21 | // to COM components. If you need to access a type in this assembly from
22 | // COM, set the ComVisible attribute to true on that type.
23 | [assembly: ComVisible(false)]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/NotifyPropertyChanged.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.ComponentModel;
5 | using System.Diagnostics.CodeAnalysis;
6 | using System.Runtime.CompilerServices;
7 |
8 | namespace System.Web.OData.Design.Scaffolding.UI
9 | {
10 | public class NotifyPropertyChanged : INotifyPropertyChanged
11 | {
12 | public event PropertyChangedEventHandler PropertyChanged;
13 |
14 | [SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", Justification = "Using a ref parameter here is intentional")]
15 | [SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed", Justification = "Using a default value is required for CallerMemberName")]
16 | protected bool OnPropertyChanged(ref T propertyRef, T value, [CallerMemberName]string propertyName = null)
17 | {
18 | if (!Object.Equals(propertyRef, value))
19 | {
20 | propertyRef = value;
21 | OnPropertyChanged(propertyName);
22 | return true;
23 | }
24 |
25 | return false;
26 | }
27 |
28 | protected void OnPropertyChanged(string propertyName)
29 | {
30 | PropertyChangedEventHandler handler = PropertyChanged;
31 | if (handler != null)
32 | {
33 | handler(this, new PropertyChangedEventArgs(propertyName));
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/NotifyPropertyChanged.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System;
7 | using System.ComponentModel;
8 | using System.Diagnostics.CodeAnalysis;
9 | using System.Runtime.CompilerServices;
10 |
11 |
12 | public class NotifyPropertyChanged : INotifyPropertyChanged
13 | {
14 | public event PropertyChangedEventHandler PropertyChanged;
15 |
16 | [SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", Justification = "Using a ref parameter here is intentional")]
17 | [SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed", Justification = "Using a default value is required for CallerMemberName")]
18 | protected bool OnPropertyChanged(ref T propertyRef, T value, [CallerMemberName]string propertyName = null)
19 | {
20 | if (!Object.Equals(propertyRef, value))
21 | {
22 | propertyRef = value;
23 | OnPropertyChanged(propertyName);
24 | return true;
25 | }
26 |
27 | return false;
28 | }
29 |
30 | protected void OnPropertyChanged(string propertyName)
31 | {
32 | PropertyChangedEventHandler handler = PropertyChanged;
33 | if (handler != null)
34 | {
35 | handler(this, new PropertyChangedEventArgs(propertyName));
36 | }
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding.Extension/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Reflection;
5 | using System.Runtime.CompilerServices;
6 | using System.Runtime.InteropServices;
7 |
8 | // General Information about an assembly is controlled through the following
9 | // set of attributes. Change these attribute values to modify the information
10 | // associated with an assembly.
11 | [assembly: AssemblyTitle("System.Web.OData.Design.ScaffoldingExtension")]
12 | [assembly: AssemblyDescription("")]
13 | [assembly: AssemblyConfiguration("")]
14 | [assembly: AssemblyCompany("")]
15 | [assembly: AssemblyProduct("System.Web.OData.Design.ScaffoldingExtension")]
16 | [assembly: AssemblyCopyright("")]
17 | [assembly: AssemblyTrademark("")]
18 | [assembly: AssemblyCulture("")]
19 |
20 | // Setting ComVisible to false makes the types in this assembly not visible
21 | // to COM components. If you need to access a type in this assembly from
22 | // COM, set the ComVisible attribute to true on that type.
23 | [assembly: ComVisible(false)]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("0.1.0.0")]
36 | [assembly: AssemblyFileVersion("0.1.0.0")]
37 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Microsoft
6 | OData Connected Service
7 | OData Connected Service for V1-V4
8 | https://github.com/odata/lab
9 | License.txt
10 | Resources\ExtensionIcon.png
11 | OData Connected Service
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/NuGetPackages.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace System.Web.OData.Design.Scaffolding
5 | {
6 | internal static class NuGetPackages
7 | {
8 | public const string WebApiNuGetPackageId = "Microsoft.AspNet.WebApi";
9 | public const string WebApiClientNuGetPackageId = "Microsoft.AspNet.WebApi.Client";
10 | public const string WebApiCoreNuGetPackageId = "Microsoft.AspNet.WebApi.Core";
11 | public const string WebApiWebHostNuGetPackageId = "Microsoft.AspNet.WebApi.WebHost";
12 | public const string NewtonsoftJsonNuGetPackageId = "Newtonsoft.Json";
13 |
14 | public const string ODataNuGetPackageId = "Microsoft.AspNet.OData";
15 | public const string EdmNuGetPackageId = "Microsoft.OData.Edm";
16 | public const string MicrosoftODataNuGetPackageId = "Microsoft.OData.Core";
17 | public const string SpatialNuGetPackageId = "Microsoft.Spatial";
18 |
19 | public static readonly string[] WebApiPackageSet = new string[]
20 | {
21 | NewtonsoftJsonNuGetPackageId,
22 | WebApiClientNuGetPackageId,
23 | WebApiCoreNuGetPackageId,
24 | WebApiWebHostNuGetPackageId,
25 | WebApiNuGetPackageId,
26 | };
27 |
28 | public static readonly string[] ODataPackageSet = new string[]
29 | {
30 | EdmNuGetPackageId,
31 | SpatialNuGetPackageId,
32 | MicrosoftODataNuGetPackageId,
33 | ODataNuGetPackageId,
34 | };
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/SemanticVersionParser.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Text.RegularExpressions;
5 |
6 | namespace System.Web.OData.Design.Scaffolding
7 | {
8 | internal static class SemanticVersionParser
9 | {
10 | private const RegexOptions Flags = RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture;
11 | private static readonly Regex _semanticVersionRegex = new Regex(@"^(?\d+(\s*\.\s*\d+){0,3})(?-[a-z][0-9a-z-]*)?$", Flags);
12 |
13 | ///
14 | /// Helper method to parse a Version from a semantic version string.
15 | /// This ignores any special version in the semantic version string and
16 | /// just returns the version component in the out variable for a successful parse.
17 | /// Otherwise returns false.
18 | ///
19 | ///
20 | ///
21 | ///
22 | internal static bool TryParse(string versionString, out Version version)
23 | {
24 | version = null;
25 | if (String.IsNullOrWhiteSpace(versionString))
26 | {
27 | return false;
28 | }
29 |
30 | var match = _semanticVersionRegex.Match(versionString.Trim());
31 | if (!match.Success || !Version.TryParse(match.Groups["Version"].Value, out version))
32 | {
33 | return false;
34 | }
35 |
36 | return true;
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/ODataConnectedService/test/ODataConnectedService.Tests/TestHelpers/TestConnectedServiceHandlerHelper.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Threading.Tasks;
6 | using Microsoft.VisualStudio.ConnectedServices;
7 |
8 | namespace Microsoft.OData.ConnectedService.Tests.TestHelpers
9 | {
10 | class TestConnectedServiceHandlerHelper : ConnectedServiceHandlerHelper
11 | {
12 | // used to access the temp file that the generated code was written to
13 | public string AddedFileInputFileName { get; private set; }
14 | // used to find out which file the final output would be written to
15 | public string AddedFileTargetFilePath { get; private set; }
16 | public string ServicesRootFolder { get; set; }
17 | public override Task AddFileAsync(string fileName, string targetPath, AddFileOptions addFileOptions = null)
18 | {
19 | AddedFileInputFileName = fileName;
20 | AddedFileTargetFilePath = targetPath;
21 | return Task.FromResult(string.Empty);
22 | }
23 | public override IDictionary TokenReplacementValues { get; }
24 | public override void AddAssemblyReference(string assemblyPath) =>
25 | throw new System.NotImplementedException();
26 | public override string GetServiceArtifactsRootFolder() => ServicesRootFolder;
27 | public override string PerformTokenReplacement(string input, IDictionary additionalReplacementValues = null) =>
28 | throw new System.NotImplementedException();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/SemanticVersionParser.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 | using System.Text.RegularExpressions;
8 |
9 | internal static class SemanticVersionParser
10 | {
11 | private const RegexOptions Flags = RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture;
12 | private static readonly Regex _semanticVersionRegex = new Regex(@"^(?\d+(\s*\.\s*\d+){0,3})(?-[a-z][0-9a-z-]*)?$", Flags);
13 |
14 | ///
15 | /// Helper method to parse a Version from a semantic version string.
16 | /// This ignores any special version in the semantic version string and
17 | /// just returns the version component in the out variable for a successful parse.
18 | /// Otherwise returns false.
19 | ///
20 | ///
21 | ///
22 | ///
23 | internal static bool TryParse(string versionString, out Version version)
24 | {
25 | version = null;
26 | if (String.IsNullOrWhiteSpace(versionString))
27 | {
28 | return false;
29 | }
30 |
31 | var match = _semanticVersionRegex.Match(versionString.Trim());
32 | if (!match.Success || !Version.TryParse(match.Groups["Version"].Value, out version))
33 | {
34 | return false;
35 | }
36 |
37 | return true;
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/RestierScaffolding/ScaffoldingVSix.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Restier.Scaffolding.Extension", "src\Microsoft.Restier.Scaffolding.Extension\Microsoft.Restier.Scaffolding.Extension.csproj", "{D22F0C3E-8D60-408A-98AC-A582A7D8D533}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Restier.Scaffolding", "src\Microsoft.Restier.Scaffolding\Microsoft.Restier.Scaffolding.csproj", "{C5F95FF6-87AD-44E6-A182-486E3254255A}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/OpenApi/OData2OpenApi/OData2OpenApi/EdmModelProvider.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System;
5 | using System.IO;
6 | using System.Net;
7 | using System.Text;
8 | using System.Xml.Linq;
9 | using Microsoft.OData.Edm;
10 | using Microsoft.OData.Edm.Csdl;
11 | using Microsoft.OData2OpenApi.ConsoleApp.Abstracts;
12 |
13 | namespace Microsoft.OData2OpenApi.ConsoleApp
14 | {
15 | internal class EdmModelProvider : IEdmModelProvider
16 | {
17 | private bool _isLocalFile;
18 | private string _inputCsdl;
19 |
20 | public EdmModelProvider(string inputCsdl, bool isLocalFile)
21 | {
22 | _isLocalFile = isLocalFile;
23 | _inputCsdl = inputCsdl;
24 | }
25 |
26 | public virtual IEdmModel GetEdmModel()
27 | {
28 | string csdl = GetCsdl();
29 | return CsdlReader.Parse(XElement.Parse(csdl).CreateReader());
30 | }
31 |
32 | private string GetCsdl()
33 | {
34 | if (_isLocalFile)
35 | {
36 | return File.ReadAllText(_inputCsdl);
37 | }
38 |
39 | Uri input = new Uri(_inputCsdl);
40 | Uri requestUri = new Uri(input.OriginalString + "/$metadata");
41 |
42 | WebRequest request = WebRequest.Create(requestUri);
43 |
44 | WebResponse response = request.GetResponse();
45 |
46 | Stream receivedStream = response.GetResponseStream();
47 |
48 | StreamReader reader = new StreamReader(receivedStream, Encoding.UTF8);
49 |
50 | return reader.ReadToEnd();
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/ModelType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Globalization;
5 | using EnvDTE;
6 |
7 | namespace System.Web.OData.Design.Scaffolding.UI
8 | {
9 | ///
10 | /// Wrapper for CodeType so we can use it in the UI.
11 | ///
12 | public class ModelType
13 | {
14 | public ModelType(CodeType codeType)
15 | {
16 | if (codeType == null)
17 | {
18 | throw new ArgumentNullException("codeType");
19 | }
20 |
21 | CodeType = codeType;
22 | TypeName = codeType.FullName;
23 | ShortTypeName = codeType.Name;
24 | DisplayName = (codeType.Namespace == null || String.IsNullOrWhiteSpace(codeType.Namespace.FullName))
25 | ? codeType.Name
26 | : String.Format(CultureInfo.InvariantCulture, "{0} ({1})", codeType.Name, codeType.Namespace.FullName);
27 | }
28 |
29 | public ModelType(string typeName)
30 | {
31 | if (typeName == null)
32 | {
33 | throw new ArgumentNullException("typeName");
34 | }
35 |
36 | CodeType = null;
37 | TypeName = typeName;
38 | DisplayName = typeName;
39 | ShortTypeName = typeName;
40 | }
41 |
42 | public CodeType CodeType { get; set; }
43 |
44 | public string DisplayName { get; set; }
45 |
46 | public string TypeName { get; set; }
47 |
48 | public string ShortTypeName { get; set; }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/UI/ModelType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding.UI
5 | {
6 | using System;
7 | using System.Globalization;
8 | using EnvDTE;
9 |
10 | ///
11 | /// Wrapper for CodeType so we can use it in the UI.
12 | ///
13 | public class ModelType
14 | {
15 | public ModelType(CodeType codeType)
16 | {
17 | if (codeType == null)
18 | {
19 | throw new ArgumentNullException("codeType");
20 | }
21 |
22 | CodeType = codeType;
23 | TypeName = codeType.FullName;
24 | ShortTypeName = codeType.Name;
25 | DisplayName = (codeType.Namespace == null || String.IsNullOrWhiteSpace(codeType.Namespace.FullName))
26 | ? codeType.Name
27 | : String.Format(CultureInfo.InvariantCulture, "{0} ({1})", codeType.Name, codeType.Namespace.FullName);
28 | }
29 |
30 | public ModelType(string typeName)
31 | {
32 | if (typeName == null)
33 | {
34 | throw new ArgumentNullException("typeName");
35 | }
36 |
37 | CodeType = null;
38 | TypeName = typeName;
39 | DisplayName = typeName;
40 | ShortTypeName = typeName;
41 | }
42 |
43 | public CodeType CodeType { get; set; }
44 |
45 | public string DisplayName { get; set; }
46 |
47 | public string TypeName { get; set; }
48 |
49 | public string ShortTypeName { get; set; }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/ScaffoldingVSix.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30723.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Web.OData.Design.Scaffolding.Extension", "src\System.Web.OData.Design.Scaffolding.Extension\System.Web.OData.Design.Scaffolding.Extension.csproj", "{D22F0C3E-8D60-408A-98AC-A582A7D8D533}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Web.OData.Design.Scaffolding", "src\System.Web.OData.Design.Scaffolding\System.Web.OData.Design.Scaffolding.csproj", "{C5F95FF6-87AD-44E6-A182-486E3254255A}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {D22F0C3E-8D60-408A-98AC-A582A7D8D533}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {C5F95FF6-87AD-44E6-A182-486E3254255A}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/FrameworkDependencyStatus.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 |
6 | namespace System.Web.OData.Design.Scaffolding
7 | {
8 | public class FrameworkDependencyStatus
9 | {
10 | [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "This type is immutable")]
11 | public static readonly FrameworkDependencyStatus InstallSuccessful = new FrameworkDependencyStatus()
12 | {
13 | IsNewDependencyInstall = true,
14 | };
15 |
16 | [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "This type is immutable")]
17 | public static readonly FrameworkDependencyStatus InstallNotNeeded = new FrameworkDependencyStatus()
18 | {
19 | };
20 |
21 | public static FrameworkDependencyStatus FromReadme(string text)
22 | {
23 | if (text == null)
24 | {
25 | throw new ArgumentNullException("text");
26 | }
27 |
28 | return new FrameworkDependencyStatus()
29 | {
30 | IsNewDependencyInstall = true,
31 | IsReadmeRequired = true,
32 | ReadmeText = text,
33 | };
34 | }
35 |
36 | private FrameworkDependencyStatus()
37 | {
38 | }
39 |
40 | public bool IsNewDependencyInstall { get; private set; }
41 |
42 | public bool IsReadmeRequired { get; private set; }
43 |
44 | public string ReadmeText { get; private set; }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/ODataConnectedService/ODataConnectedService.Tests.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29613.14
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ODataConnectedService", "src\ODataConnectedService.csproj", "{A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ODataConnectedService.Tests", "test\ODataConnectedService.Tests\ODataConnectedService.Tests.csproj", "{903B31D0-BE14-4D9E-BA76-186FA82B3A37}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {A8BC5B8E-9AB7-4257-B8F1-E7C62169F9B5}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {903B31D0-BE14-4D9E-BA76-186FA82B3A37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {903B31D0-BE14-4D9E-BA76-186FA82B3A37}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {903B31D0-BE14-4D9E-BA76-186FA82B3A37}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {903B31D0-BE14-4D9E-BA76-186FA82B3A37}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {FD696714-8F52-4A00-93F4-43C843F184DB}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Scaffolders/FrameworkDependencyStatus.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | namespace Microsoft.Restier.Scaffolding
5 | {
6 | using System;
7 | using System.Diagnostics.CodeAnalysis;
8 |
9 | public class FrameworkDependencyStatus
10 | {
11 | [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "This type is immutable")]
12 | public static readonly FrameworkDependencyStatus InstallSuccessful = new FrameworkDependencyStatus()
13 | {
14 | IsNewDependencyInstall = true,
15 | };
16 |
17 | [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "This type is immutable")]
18 | public static readonly FrameworkDependencyStatus InstallNotNeeded = new FrameworkDependencyStatus()
19 | {
20 | };
21 |
22 | public static FrameworkDependencyStatus FromReadme(string text)
23 | {
24 | if (text == null)
25 | {
26 | throw new ArgumentNullException("text");
27 | }
28 |
29 | return new FrameworkDependencyStatus()
30 | {
31 | IsNewDependencyInstall = true,
32 | IsReadmeRequired = true,
33 | ReadmeText = text,
34 | };
35 | }
36 |
37 | private FrameworkDependencyStatus()
38 | {
39 | }
40 |
41 | public bool IsNewDependencyInstall { get; private set; }
42 |
43 | public bool IsReadmeRequired { get; private set; }
44 |
45 | public string ReadmeText { get; private set; }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/RestierScaffolding/tools/Scaffolding.settings.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\'))
5 | $(MSBuildThisFileDirectory)
6 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
7 |
8 |
9 |
10 | Debug
11 | $(DFRootPath)bin\$(Configuration)\
12 | AnyCPU
13 | 512
14 | prompt
15 | 4
16 | false
17 | 1591
18 |
19 | v4.5
20 |
21 | true
22 | true
23 | $(DFRootPath)\tools\35MSSharedLib1024.snk
24 |
25 |
26 |
27 |
28 | true
29 | full
30 | false
31 | DEBUG;TRACE;CODE_ANALYSIS
32 |
33 |
34 | pdbonly
35 | true
36 | TRACE
37 |
38 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/tools/Scaffolding.settings.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\'))
5 | $(MSBuildThisFileDirectory)
6 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
7 |
8 |
9 |
10 | Debug
11 | $(DFRootPath)bin\$(Configuration)\
12 | AnyCPU
13 | 512
14 | prompt
15 | 4
16 | true
17 | 1591
18 |
19 | v4.5
20 |
21 | true
22 | true
23 | $(DFRootPath)\tools\35MSSharedLib1024.snk
24 |
25 |
26 |
27 |
28 | true
29 | full
30 | false
31 | DEBUG;TRACE;CODE_ANALYSIS
32 |
33 |
34 | pdbonly
35 | true
36 | TRACE
37 |
38 |
--------------------------------------------------------------------------------
/ODataConnectedService/src/ODataConnectedServiceProvider.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Threading.Tasks;
7 | using System.Windows.Media.Imaging;
8 | using Microsoft.OData.ConnectedService.Common;
9 | using Microsoft.VisualStudio.ConnectedServices;
10 |
11 | namespace Microsoft.OData.ConnectedService
12 | {
13 | [ConnectedServiceProviderExport(Constants.ProviderId, SupportsUpdate = true)]
14 | internal class ODataConnectedServiceProvider : ConnectedServiceProvider
15 | {
16 | public ODataConnectedServiceProvider()
17 | {
18 | Name = "OData Connected Service";
19 | Category = "OData";
20 | Description = "OData Connected Service for V1-V4";
21 | Icon = new BitmapImage(new Uri("pack://application:,,/" + this.GetType().Assembly.ToString() + ";component/Resources/Icon.png"));
22 | CreatedBy = "OData";
23 | Version = new Version(0, 4, 0);
24 | MoreInfoUri = new Uri("https://github.com/odata/lab");
25 | }
26 |
27 | public override Task CreateConfiguratorAsync(ConnectedServiceProviderContext context)
28 | {
29 | var wizard = new ODataConnectedServiceWizard(context);
30 | return Task.FromResult(wizard);
31 | }
32 |
33 | public override IEnumerable> GetSupportedTechnologyLinks()
34 | {
35 | yield return new Tuple("OData Website", new Uri("http://www.odata.org/"));
36 | yield return new Tuple("OData Docs and Samples", new Uri("http://odata.github.io/odata.net/"));
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/ODataConnectedService/src/Views/ConfigODataEndpoint.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
17 |
18 |
20 |
22 |
23 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/RestierScaffolding/src/Microsoft.Restier.Scaffolding/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System;
5 | using System.Reflection;
6 | using System.Resources;
7 | using System.Runtime.CompilerServices;
8 | using System.Runtime.InteropServices;
9 |
10 | // General Information about an assembly is controlled through the following
11 | // set of attributes. Change these attribute values to modify the information
12 | // associated with an assembly.
13 | [assembly: CLSCompliant(false)]
14 | [assembly: AssemblyTitle("RestierScaffolding")]
15 | [assembly: AssemblyDescription("")]
16 | [assembly: AssemblyConfiguration("")]
17 | [assembly: AssemblyCompany("")]
18 | [assembly: AssemblyProduct("RestierScaffolding")]
19 | [assembly: AssemblyCopyright("Copyright © 2014")]
20 | [assembly: AssemblyTrademark("")]
21 | [assembly: AssemblyCulture("")]
22 |
23 | // Setting ComVisible to false makes the types in this assembly not visible
24 | // to COM components. If you need to access a type in this assembly from
25 | // COM, set the ComVisible attribute to true on that type.
26 | [assembly: ComVisible(false)]
27 |
28 | // The following GUID is for the ID of the typelib if this project is exposed to COM
29 | [assembly: Guid("359e8f50-44a0-4e59-8c81-6c5a993219b3")]
30 |
31 | // Version information for an assembly consists of the following four values:
32 | //
33 | // Major Version
34 | // Minor Version
35 | // Build Number
36 | // Revision
37 | //
38 | // You can specify all the values or you can default the Build and Revision Numbers
39 | // by using the '*' as shown below:
40 | // [assembly: AssemblyVersion("1.0.*")]
41 | [assembly: AssemblyVersion("0.1.0.0")]
42 | [assembly: AssemblyFileVersion("0.1.0.0")]
43 | [assembly: NeutralResourcesLanguageAttribute("en")]
44 |
--------------------------------------------------------------------------------
/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/UI/RelayCommand.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
3 |
4 | using System.Windows.Input;
5 |
6 | namespace System.Web.OData.Design.Scaffolding.UI
7 | {
8 | public class RelayCommand : ICommand
9 | {
10 | public event EventHandler CanExecuteChanged;
11 |
12 | public RelayCommand(Action