Skip to content

Commit f1315da

Browse files
authored
Add Dictionaries and Sets, and update to Collections (#835)
New data types in 10.2.0-beta.1
1 parent 726aed2 commit f1315da

File tree

50 files changed

+808
-269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+808
-269
lines changed

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
'swift-sdk': ('https://docs.mongodb.com/realm-sdks/swift/10.7.0/%s', ''),
111111
'objc-sdk': ('https://docs.mongodb.com/realm-sdks/objc/10.7.0/%s', ''),
112112
'js-sdk': ('https://docs.mongodb.com/realm-sdks/js/latest/%s', ''),
113-
'dotnet-sdk': ('https://docs.mongodb.com/realm-sdks/dotnet/10.0.0/%s', ''),
113+
'dotnet-sdk': ('https://docs.mongodb.com/realm-sdks/dotnet/latest/%s', ''),
114114
# True External Links
115115
'android': ('https://developer.android.com/%s', ''),
116116
'apollo': ('https://www.apollographql.com/%s', ''),
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
6-
</PropertyGroup>
7-
8-
<ItemGroup>
9-
<PackageReference Include="Nito.AsyncEx" Version="5.1.0" />
10-
<PackageReference Include="Nito.AsyncEx.Tasks" Version="5.1.0" />
11-
<PackageReference Include="Realm" Version="10.1.2" />
12-
<PackageReference Include="Realm.Fody" Version="10.1.2">
13-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
14-
<PrivateAssets>all</PrivateAssets>
15-
</PackageReference>
16-
</ItemGroup>
17-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Exe</OutputType>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<PackageReference Include="Nito.AsyncEx" Version="5.1.0" />
8+
<PackageReference Include="Nito.AsyncEx.Tasks" Version="5.1.0" />
9+
<PackageReference Include="Realm" Version="10.2.0-beta.1" />
10+
<PackageReference Include="Realm.Fody" Version="10.2.0-beta.1">
11+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
12+
<PrivateAssets>all</PrivateAssets>
13+
</PackageReference>
14+
</ItemGroup>
15+
</Project>

examples/dotnet/ConsoleTests/FodyWeavers.xsd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
<xs:complexType>
66
<xs:all>
77
<xs:element name="Realm" minOccurs="0" maxOccurs="1">
8-
<xs:complexType></xs:complexType>
8+
<xs:complexType>
9+
<xs:attribute name="DisableAnalytics" type="xs:boolean">
10+
<xs:annotation>
11+
<xs:documentation>Disables anonymized usage information from being sent on build. Read more about what data is being collected and why here: https://github.com/realm/realm-dotnet/blob/master/Realm/Realm.Fody/Common/Analytics.cs</xs:documentation>
12+
</xs:annotation>
13+
</xs:attribute>
14+
</xs:complexType>
915
</xs:element>
1016
</xs:all>
1117
<xs:attribute name="VerifyAssembly" type="xs:boolean">

examples/dotnet/Examples/AggregationExamples.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,41 +41,41 @@ public async Task Setup()
4141
venus = new Plant
4242
{
4343
Name = "Venus Flytrap",
44-
Sunlight = Sunlight.Full,
45-
Color = PlantColor.White,
46-
Type = PlantType.Perennial,
44+
Sunlight = Sunlight.Full.ToString(),
45+
Color = PlantColor.White.ToString(),
46+
Type = PlantType.Perennial.ToString(),
4747
Partition = "Store 42"
4848
};
4949
sweetBasil = new Plant
5050
{
5151
Name = "Sweet Basil",
52-
Sunlight = Sunlight.Partial,
53-
Color = PlantColor.Green,
54-
Type = PlantType.Annual,
52+
Sunlight = Sunlight.Partial.ToString(),
53+
Color = PlantColor.Green.ToString(),
54+
Type = PlantType.Annual.ToString(),
5555
Partition = "Store 42"
5656
};
5757
thaiBasil = new Plant
5858
{
5959
Name = "Thai Basil",
60-
Sunlight = Sunlight.Partial,
61-
Color = PlantColor.Green,
62-
Type = PlantType.Perennial,
60+
Sunlight = Sunlight.Partial.ToString(),
61+
Color = PlantColor.Green.ToString(),
62+
Type = PlantType.Perennial.ToString(),
6363
Partition = "Store 42"
6464
};
6565
helianthus = new Plant
6666
{
6767
Name = "Helianthus",
68-
Sunlight = Sunlight.Full,
69-
Color = PlantColor.Yellow,
70-
Type = PlantType.Annual,
68+
Sunlight = Sunlight.Full.ToString(),
69+
Color = PlantColor.Yellow.ToString(),
70+
Type = PlantType.Annual.ToString(),
7171
Partition = "Store 42"
7272
};
7373
petunia = new Plant
7474
{
7575
Name = "Petunia",
76-
Sunlight = Sunlight.Full,
77-
Color = PlantColor.Purple,
78-
Type = PlantType.Annual,
76+
Sunlight = Sunlight.Full.ToString(),
77+
Color = PlantColor.Purple.ToString(),
78+
Type = PlantType.Annual.ToString(),
7979
Partition = "Store 47"
8080
};
8181

examples/dotnet/Examples/ClientResetExamples.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
2-
using System.Threading.Tasks;
3-
using MongoDB.Bson;
2+
using System.Threading.Tasks;
43
using NUnit.Framework;
54
using Realms;
65
using Realms.Sync;
@@ -12,7 +11,7 @@ namespace Examples
1211
public class ClientResetExamples
1312
{
1413
App app;
15-
Realms.Sync.User user;
14+
User user;
1615
SyncConfiguration config;
1716
const string myRealmAppId = Config.appid;
1817

0 commit comments

Comments
 (0)