Skip to content

Commit

Permalink
1) Fix issue #23;
Browse files Browse the repository at this point in the history
2) Fix small bug: delete generation code duplicate.
  • Loading branch information
unchase committed Jan 10, 2020
1 parent 8a13119 commit 280116a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

These are the changes to each version that has been released on the official [Visual Studio extension gallery](https://marketplace.visualstudio.com/items?itemName=unchase.UnchaseODataConnectedService).

## v1.3.8 `2020-01-11`

- [x] Fix [issue #23](https://github.com/unchase/Unchase.Odata.Connectedservice/issues/23)
- [x] Fix small bug: delete generation code duplicate

## v1.3.7 `2020-01-08`

- [x] Fix bug for [issue #22](https://github.com/unchase/Unchase.Odata.Connectedservice/issues/22)
Expand Down
10 changes: 0 additions & 10 deletions src/Unchase.OData.ConnectedService/Handler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ public override async Task<AddServiceInstanceResult> AddServiceInstanceAsync(Con

var codeGenInstance = (Instance)context.ServiceInstance;

try
{
await GenerateCodeAsync(codeGenInstance.ServiceConfig.EdmxVersion, context);
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}

var codeGenDescriptor = await GenerateCodeAsync(codeGenInstance.ServiceConfig.EdmxVersion, context);

codeGenInstance.ServiceConfig.FunctionImports = null;
Expand Down
4 changes: 2 additions & 2 deletions src/Unchase.OData.ConnectedService/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.7.0")]
[assembly: AssemblyFileVersion("1.3.7.0")]
[assembly: AssemblyVersion("1.3.8.0")]
[assembly: AssemblyFileVersion("1.3.8.0")]
[assembly: NeutralResourcesLanguage("en")]

2 changes: 1 addition & 1 deletion src/Unchase.OData.ConnectedService/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Provider()
BitmapSizeOptions.FromWidthAndHeight(64, 64)
);
CreatedBy = Constants.Author;
Version = new Version(1, 3, 7, 0);
Version = new Version(1, 3, 8, 0);
Version = typeof(Provider).Assembly.GetName().Version;
MoreInfoUri = new Uri(Constants.Website);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Unchase.OData.ConnectedService/Wizard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public Wizard(ConnectedServiceProviderContext context)
{
if (sender is AdvancedSettingsViewModel advancedSettingsViewModel)
{
advancedSettingsViewModel.IncludeExtensionsT4File = ConfigODataEndpointViewModel.EdmxVersion != Common.Constants.EdmxVersion4;
advancedSettingsViewModel.IncludeExtensionsT4File = AdvancedSettingsViewModel.IncludeExtensionsT4File;
advancedSettingsViewModel.IncludeExtensionsT4FileVisibility = ConfigODataEndpointViewModel.EdmxVersion != Common.Constants.EdmxVersion4 ? Visibility.Visible : Visibility.Collapsed;
advancedSettingsViewModel.OperationImportsGenerator = AdvancedSettingsViewModel.OperationImportsGenerator;
advancedSettingsViewModel.SelectOperationImports = AdvancedSettingsViewModel.SelectOperationImports;
Expand Down

0 comments on commit 280116a

Please sign in to comment.