Skip to content

Commit c7ff196

Browse files
Merge pull request #5 from albertospelta/master
Fixed 'MaxLineLenght' typo
2 parents 81eb685 + eb0430b commit c7ff196

5 files changed

Lines changed: 7 additions & 13 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Dax Formatter [![NuGet](https://github.com/sql-bi/DaxFormatter/actions/workflows/dotnet.yml/badge.svg)](https://github.com/sql-bi/DaxFormatter/actions/workflows/dotnet.yml)
33

4-
DAX Formatter is a service available at https://www.daxformatter.com
4+
DAX Formatter is a service available at https://www.daxformatter.com.
55
The service receives DAX expressions and format them according to rules for [DAX code formatting](https://www.sqlbi.com/articles/rules-for-dax-code-formatting/).
66
The NuGet package contains a client library to invoke the serivce from your .NET application.
77
All the requests are designed to be asynchronous.
@@ -13,13 +13,12 @@ Invoke the `FormatAsync` method for each request.
1313
Possibly, use the `DaxFormatterMultipleRequest` structure to provide more statistical details about the database and the server (all the names are anonymized and used only to count the number of unique servers/databases serviced).
1414

1515
# DaxFormatterClient
16-
1716
The default constructor creates an instance of the client using the current assembly name and version to identify the client. You can specify an application name and version in the constructor arguments.
1817
The client instance resolve the server endpoint just once and reuse it in following requests.
1918
It is suggested to reuse the same instance in multiple requests to minimize the latency.
2019
```csharp
2120
var formatter = new DaxFormatterClient();
22-
var response1 = await formatter.FormatAsync( "evaluate('Table') order by 'Table'[Column]" );
21+
var response = await formatter.FormatAsync( "evaluate('Table') order by 'Table'[Column]" );
2322
```
2423
# DaxFormatterMultipleRequest
2524
Use the `DaxFormatterMultipleRequest` class to send multiple DAX expressions in a single API call.
@@ -33,7 +32,7 @@ var request = new DaxFormatterMultipleRequest
3332
// Format arguments (you can skip all of them to keep the default values)
3433
ListSeparator = ',',
3534
DecimalSeparator = '.',
36-
MaxLineLenght = DaxFormatterLineStyle.LongLine,
35+
MaxLineLength = DaxFormatterLineStyle.LongLine,
3736
SkipSpaceAfterFunctionName = DaxFormatterSpacingStyle.BestPractice,
3837

3938
// Identify the server type using the corresponding enum values
@@ -70,7 +69,7 @@ var request = new DaxFormatterSingleRequest
7069
// Format arguments (you can skip all of them to keep the default values)
7170
ListSeparator = ',',
7271
DecimalSeparator = '.',
73-
MaxLineLenght = DaxFormatterLineStyle.LongLine,
72+
MaxLineLength = DaxFormatterLineStyle.LongLine,
7473
SkipSpaceAfterFunctionName = DaxFormatterSpacingStyle.BestPractice,
7574

7675
// Identify the server type using the corresponding enum values

samples/getting-started/BasicFormatter.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
</PropertyGroup>
77

8-
<PropertyGroup>
9-
<RestoreSources>$(RestoreSources);./nupkg;https://api.nuget.org/v3/index.json</RestoreSources>
10-
</PropertyGroup>
11-
128
<ItemGroup>
13-
<PackageReference Include="Dax.Formatter" Version="1.0.0-preview4" />
9+
<PackageReference Include="Dax.Formatter" Version="1.0.0" />
1410
</ItemGroup>
1511

1612
</Project>

samples/getting-started/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private static async Task FormatSingleRequest()
5151

5252
ListSeparator = ',',
5353
DecimalSeparator = '.',
54-
MaxLineLenght = DaxFormatterLineStyle.LongLine,
54+
MaxLineLength = DaxFormatterLineStyle.LongLine,
5555
SkipSpaceAfterFunctionName = DaxFormatterSpacingStyle.BestPractice,
5656

5757
ServerMode = Dax.Formatter.AnalysisServices.ServerMode.Tabular,
@@ -88,7 +88,7 @@ private static async Task FormatMultipleRequests()
8888

8989
ListSeparator = ',',
9090
DecimalSeparator = '.',
91-
MaxLineLenght = DaxFormatterLineStyle.LongLine,
91+
MaxLineLength = DaxFormatterLineStyle.LongLine,
9292
SkipSpaceAfterFunctionName = DaxFormatterSpacingStyle.BestPractice,
9393

9494
ServerMode = Dax.Formatter.AnalysisServices.ServerMode.Tabular,

samples/getting-started/nupkg/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)