-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f45bc4
commit ce65e88
Showing
6 changed files
with
70 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
namespace SampleApi.Contracts; | ||
|
||
public record Customer( | ||
string CustomerKey, | ||
string CustomerName); | ||
int CustomerKey, | ||
string FirstName, | ||
string LastName, | ||
string? CompanyName, | ||
string CityName, | ||
string StateProvinceName, | ||
string RegionCountryName, | ||
string ContinentName, | ||
string Gender, | ||
string MaritalStatus, | ||
string Education, | ||
string Occupation); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
Customers | ||
declare query_parameters ( | ||
customerId:long = long(null) | ||
); | ||
Customers | ||
| where isnull(customerId) or customerId == CustomerKey | ||
| project | ||
CustomerKey, | ||
CustomerName = strcat(FirstName, ' ', LastName) | ||
FirstName, | ||
LastName, | ||
CompanyName, | ||
CityName, | ||
StateProvinceName, | ||
RegionCountryName, | ||
ContinentName, | ||
Gender, | ||
MaritalStatus, | ||
Education, | ||
Occupation |