You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Initializes a new instance of the ExecuteRequest class.
19
+
/// </summary>
20
+
publicExecuteRequest()
21
+
{
22
+
Credentials=newCredentials();
23
+
//Parameters = new Parameters();
24
+
Queries=newQueries();
25
+
SqlDecimalPrecision=18;
26
+
SqlDecimalScale=6;
27
+
}
28
+
14
29
/// <summary>
15
-
/// Credentials to access one or many ressources when executing the query.
30
+
/// Collection of instances of Credential to access one or many ressources from the Power Query (M) formulas.
16
31
/// </summary>
17
32
publicCredentialsCredentials{get;set;}
18
33
19
34
/// <summary>
20
-
/// Queries that will compose the mashup from which the query will be executed.
35
+
/// Collection of instances of Parameter in the Power Query (M) formulas.
21
36
/// </summary>
22
-
publicQueriesQueries{get;set;}
37
+
//public Parameters Parameters { get; set; }
38
+
39
+
/// <summary>
40
+
/// Collection of instances of Query to execute Power Query (M) formulas.
41
+
/// </summary>
42
+
publicQueriesQueries
43
+
{
44
+
get
45
+
{
46
+
returnqueries;
47
+
}
48
+
set
49
+
{
50
+
if(value!=null&&value.Count>0&&mashup!=null)
51
+
thrownewInvalidOperationException("Queries cannot be assigned when Mashup is defined.");
52
+
53
+
queries=value;
54
+
}
55
+
}
56
+
57
+
/// <summary>
58
+
/// Mashup (queries) from which the query will be executed.
59
+
/// </summary>
60
+
publicstringMashup
61
+
{
62
+
get
63
+
{
64
+
returnmashup;
65
+
}
66
+
set
67
+
{
68
+
if(value!=null&&Queries!=null&&Queries.Count>0)
69
+
thrownewInvalidOperationException("Mashup cannot be assigned when Queries are defined.");
70
+
71
+
mashup=value;
72
+
}
73
+
}
23
74
24
75
/// <summary>
25
76
/// Name of the query to execute.
@@ -36,6 +87,16 @@ public class ExecuteRequest
36
87
/// </summary>
37
88
publicstringCsvFileName{get;set;}
38
89
90
+
/// <summary>
91
+
/// Full path of the HTML file that will be generated after the execution of the query.
92
+
/// </summary>
93
+
publicstringHtmlFileName{get;set;}
94
+
95
+
/// <summary>
96
+
/// Full path of the JSON file that will be generated after the execution of the query.
97
+
/// </summary>
98
+
publicstringJsonFileName{get;set;}
99
+
39
100
/// <summary>
40
101
/// Full path of the XML file that will be generated after the execution of the query.
41
102
/// </summary>
@@ -46,10 +107,29 @@ public class ExecuteRequest
46
107
/// </summary>
47
108
publicstringSqlConnectionString{get;set;}
48
109
110
+
/// <summary>
111
+
/// For SQL decimal data type, the maximum total number of decimal digits to be stored.
112
+
/// </summary>
113
+
publicintSqlDecimalPrecision{get;set;}
114
+
115
+
/// <summary>
116
+
/// For SQL decimal data type, the number of decimal digits that are stored to the right of the decimal point.
117
+
/// </summary>
118
+
publicintSqlDecimalScale{get;set;}
119
+
49
120
/// <summary>
50
121
/// When SqlConnectionString is not null, name of the SQL Table that will be generated after the execution of the query. If this property is null, the default name will correspond to the QueryName.
51
122
/// </summary>
52
123
publicstringSqlTableName{get;set;}
53
124
125
+
/// <summary>
126
+
/// Action taken when SqlConnectionString and SqlTableName are not null
0 commit comments