├── .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 | 24 |