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
For more info on .NET Standard compatiblity [see the Microsoft documentation here](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0)
The primary target is .NET Standard 2.0 to provide the widest possible support.
13
+
- .NET Standard 2.0 for widest possible support including .NET Framework 4.6.1+ and .NET Core 2.0
14
+
- .NET Standard 2.1 for newer .NET Core versions
15
+
16
+
For more info on .NET Standard compatiblity [see the Microsoft documentation here](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0)
17
+
18
+
Full target list
19
+
- .NET Standard 2.0
20
+
- .NET Standard 2.1
21
+
- .NET Core 3.1
22
+
- .NET 5.0
23
+
- .NET 6.0
24
+
- .NET 7.0
25
+
- .NET 8.0
26
+
- .NET 9.0
27
+
- .NET Framework 4.6.2
28
+
- .NET Framework 4.7.2
29
+
- .NET Framework 4.8
30
+
31
+
All possible frameworks are specifically targeted so that conditional compilation can be done where required.
32
+
33
+
Full tested support is for .NET Core 6.0 - 9.0 as tooling and tests target those.
And get the results via the client, you can then access the related objects and fields included in the query in a fluent manner.
37
40
```csharp
38
41
List<SfCase>cases=awaitclient.Query<SfCase>("SELECT Id,CaseNumber,Account.Name,Contact.Name FROM Case");
@@ -47,11 +50,14 @@ Nested queries are not fully supported - the subquery results will not be comple
47
50
// *NOT* fully supported
48
51
"SELECT Id,CaseNumber, (Select Contact.Name from Account) FROM Case"
49
52
```
53
+
---
50
54
51
-
###Asynchronous Batch Processing
55
+
## Asynchronous Batch Processing
52
56
53
-
Query<T> method will retrieve the full result set before returning. By default, results are returned in batches of 2000.
54
-
In cases where you are working with large result sets, you may want to use QueryAsync<T> to retrieve the batches asynchronously for better performance.
57
+
[```Query<T>```](xref:NetCoreForce.Client.ForceClient.Query``1(System.String,System.Boolean)) method will retrieve the full result set before returning. By default, results are returned in batches of 2000.
58
+
In cases where you are working with large result sets, you may want to use
to retrieve the batches asynchronously for better performance.
55
61
56
62
```csharp
57
63
// First create the async enumerable. At this point, no query has been executed.
@@ -69,4 +75,12 @@ await using (IAsyncEnumerator<SfContact> contactsEnumerator = contactsEnumerable
69
75
// process your results
70
76
}
71
77
}
72
-
```
78
+
```
79
+
80
+
---
81
+
82
+
## Multiple and Single Resultsets
83
+
84
+
By defualt, the [```Query<T>```](xref:NetCoreForce.Client.ForceClient.Query``1(System.String,System.Boolean)) returns a ```List<T>```.
85
+
When you know the result will be a single record, you can use the [```QuerySingle<T>```](xref:NetCoreForce.Client.ForceClient.QuerySingle``1(System.String,System.Boolean)) method.
*This project is not offered, sponsored, or endorsed by Salesforce.*
15
13
16
-
Targets .NET Standard 2.0 - this means it will be generally compatible with .NET Framework 4.6.1+ and .NET Core 2.0+
17
-
For more info on .NET Standard 2.0 compatiblity [see the Microsoft documentation here](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0)
14
+
## Library Targets
15
+
16
+
The primary target is .NET Standard 2.0 to provide the widest possible support.
17
+
- .NET Standard 2.0 for widest possible support including .NET Framework 4.6.1+ and .NET Core 2.0
18
+
- .NET Standard 2.1 for newer .NET Core versions
19
+
20
+
For more info on .NET Standard compatiblity [see the Microsoft documentation here](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0)
21
+
22
+
Full target list
23
+
- .NET Standard 2.0
24
+
- .NET Standard 2.1
25
+
- .NET Core 3.1
26
+
- .NET 5.0
27
+
- .NET 6.0
28
+
- .NET 7.0
29
+
- .NET 8.0
30
+
- .NET 9.0
31
+
- .NET Framework 4.6.2
32
+
- .NET Framework 4.7.2
33
+
- .NET Framework 4.8
34
+
35
+
All possible frameworks are specifically targeted so that conditional compilation can be done where required.
36
+
37
+
Full tested support is for .NET Core 6.0 - 9.0 as tooling and tests target those.
38
+
Legacy .NET Frameworks are partially tested
18
39
19
40
Full tested support is for .NET Core 6.0 - 9.0 as tooling and tests target those.
0 commit comments