Skip to content

Commit c0639da

Browse files
committed
v22 release
1 parent 48c1dc7 commit c0639da

38 files changed

+766
-3193
lines changed

Benchmark/Benchmark.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
17-
<PackageReference Include="MongoDB.Driver.GridFS" Version="2.19.1" />
17+
<PackageReference Include="MongoDB.Driver.GridFS" Version="2.19.2" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

Documentation/api/.manifest

+11-8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"MongoDB.Entities.CollectionAttribute.#ctor(System.String)": "MongoDB.Entities.CollectionAttribute.yml",
1111
"MongoDB.Entities.CollectionAttribute.Name": "MongoDB.Entities.CollectionAttribute.yml",
1212
"MongoDB.Entities.Coordinates2D": "MongoDB.Entities.Coordinates2D.yml",
13+
"MongoDB.Entities.Coordinates2D.#ctor": "MongoDB.Entities.Coordinates2D.yml",
1314
"MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double)": "MongoDB.Entities.Coordinates2D.yml",
1415
"MongoDB.Entities.Coordinates2D.Coordinates": "MongoDB.Entities.Coordinates2D.yml",
1516
"MongoDB.Entities.Coordinates2D.GeoJsonPoint(System.Double,System.Double)": "MongoDB.Entities.Coordinates2D.yml",
@@ -22,9 +23,10 @@
2223
"MongoDB.Entities.DataStreamer.UploadAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken,MongoDB.Driver.IClientSessionHandle)": "MongoDB.Entities.DataStreamer.yml",
2324
"MongoDB.Entities.DataStreamer.UploadWithTimeoutAsync(System.IO.Stream,System.Int32,System.Int32,MongoDB.Driver.IClientSessionHandle)": "MongoDB.Entities.DataStreamer.yml",
2425
"MongoDB.Entities.Date": "MongoDB.Entities.Date.yml",
26+
"MongoDB.Entities.Date.#ctor": "MongoDB.Entities.Date.yml",
27+
"MongoDB.Entities.Date.#ctor(System.DateTime)": "MongoDB.Entities.Date.yml",
28+
"MongoDB.Entities.Date.#ctor(System.Int64)": "MongoDB.Entities.Date.yml",
2529
"MongoDB.Entities.Date.DateTime": "MongoDB.Entities.Date.yml",
26-
"MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime": "MongoDB.Entities.Date.yml",
27-
"MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date": "MongoDB.Entities.Date.yml",
2830
"MongoDB.Entities.Date.Ticks": "MongoDB.Entities.Date.yml",
2931
"MongoDB.Entities.DB": "MongoDB.Entities.DB.yml",
3032
"MongoDB.Entities.DB.AllDatabaseNamesAsync(MongoDB.Driver.MongoClientSettings)": "MongoDB.Entities.DB.yml",
@@ -217,10 +219,13 @@
217219
"MongoDB.Entities.Extensions.SavePreservingAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken)": "MongoDB.Entities.Extensions.yml",
218220
"MongoDB.Entities.Extensions.SortByRelevance``1(System.Collections.Generic.IEnumerable{``0},System.String,System.Func{``0,System.String},System.Nullable{System.Int32})": "MongoDB.Entities.Extensions.yml",
219221
"MongoDB.Entities.Extensions.ToBatches``1(System.Collections.Generic.IEnumerable{``0},System.Int32)": "MongoDB.Entities.Extensions.yml",
222+
"MongoDB.Entities.Extensions.ToDate(System.DateTime)": "MongoDB.Entities.Extensions.yml",
223+
"MongoDB.Entities.Extensions.ToDate(System.Int64)": "MongoDB.Entities.Extensions.yml",
220224
"MongoDB.Entities.Extensions.ToDocument``1(``0)": "MongoDB.Entities.Extensions.yml",
221225
"MongoDB.Entities.Extensions.ToDocuments``1(``0[])": "MongoDB.Entities.Extensions.yml",
222226
"MongoDB.Entities.Extensions.ToDocuments``1(System.Collections.Generic.IEnumerable{``0})": "MongoDB.Entities.Extensions.yml",
223227
"MongoDB.Entities.Extensions.ToDoubleMetaphoneHash(System.String)": "MongoDB.Entities.Extensions.yml",
228+
"MongoDB.Entities.Extensions.ToFuzzy(System.String)": "MongoDB.Entities.Extensions.yml",
224229
"MongoDB.Entities.Extensions.ToReference``1(``0)": "MongoDB.Entities.Extensions.yml",
225230
"MongoDB.Entities.FieldAttribute": "MongoDB.Entities.FieldAttribute.yml",
226231
"MongoDB.Entities.FieldAttribute.#ctor(System.Int32)": "MongoDB.Entities.FieldAttribute.yml",
@@ -266,9 +271,9 @@
266271
"MongoDB.Entities.Find`2.SortByTextScore": "MongoDB.Entities.Find-2.yml",
267272
"MongoDB.Entities.Find`2.SortByTextScore(System.Linq.Expressions.Expression{System.Func{`0,System.Object}})": "MongoDB.Entities.Find-2.yml",
268273
"MongoDB.Entities.FuzzyString": "MongoDB.Entities.FuzzyString.yml",
274+
"MongoDB.Entities.FuzzyString.#ctor": "MongoDB.Entities.FuzzyString.yml",
275+
"MongoDB.Entities.FuzzyString.#ctor(System.String)": "MongoDB.Entities.FuzzyString.yml",
269276
"MongoDB.Entities.FuzzyString.CharacterLimit": "MongoDB.Entities.FuzzyString.yml",
270-
"MongoDB.Entities.FuzzyString.op_Implicit(MongoDB.Entities.FuzzyString)~System.String": "MongoDB.Entities.FuzzyString.yml",
271-
"MongoDB.Entities.FuzzyString.op_Implicit(System.String)~MongoDB.Entities.FuzzyString": "MongoDB.Entities.FuzzyString.yml",
272277
"MongoDB.Entities.FuzzyString.Value": "MongoDB.Entities.FuzzyString.yml",
273278
"MongoDB.Entities.GeoNear`1": "MongoDB.Entities.GeoNear-1.yml",
274279
"MongoDB.Entities.GeoNear`1.distanceField": "MongoDB.Entities.GeoNear-1.yml",
@@ -345,15 +350,13 @@
345350
"MongoDB.Entities.ModifiedBy": "MongoDB.Entities.ModifiedBy.yml",
346351
"MongoDB.Entities.ModifiedBy.UserID": "MongoDB.Entities.ModifiedBy.yml",
347352
"MongoDB.Entities.ModifiedBy.UserName": "MongoDB.Entities.ModifiedBy.yml",
348-
"MongoDB.Entities.NameAttribute": "MongoDB.Entities.NameAttribute.yml",
349-
"MongoDB.Entities.NameAttribute.#ctor(System.String)": "MongoDB.Entities.NameAttribute.yml",
350353
"MongoDB.Entities.ObjectIdAttribute": "MongoDB.Entities.ObjectIdAttribute.yml",
351354
"MongoDB.Entities.ObjectIdAttribute.#ctor": "MongoDB.Entities.ObjectIdAttribute.yml",
352355
"MongoDB.Entities.One`1": "MongoDB.Entities.One-1.yml",
353356
"MongoDB.Entities.One`1.#ctor": "MongoDB.Entities.One-1.yml",
357+
"MongoDB.Entities.One`1.#ctor(`0)": "MongoDB.Entities.One-1.yml",
358+
"MongoDB.Entities.One`1.#ctor(System.String)": "MongoDB.Entities.One-1.yml",
354359
"MongoDB.Entities.One`1.ID": "MongoDB.Entities.One-1.yml",
355-
"MongoDB.Entities.One`1.op_Implicit(`0)~MongoDB.Entities.One{`0}": "MongoDB.Entities.One-1.yml",
356-
"MongoDB.Entities.One`1.op_Implicit(System.String)~MongoDB.Entities.One{`0}": "MongoDB.Entities.One-1.yml",
357360
"MongoDB.Entities.One`1.ToEntityAsync(MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken)": "MongoDB.Entities.One-1.yml",
358361
"MongoDB.Entities.One`1.ToEntityAsync(System.Func{MongoDB.Driver.ProjectionDefinitionBuilder{`0},MongoDB.Driver.ProjectionDefinition{`0,`0}},MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken)": "MongoDB.Entities.One-1.yml",
359362
"MongoDB.Entities.One`1.ToEntityAsync(System.Linq.Expressions.Expression{System.Func{`0,`0}},MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken)": "MongoDB.Entities.One-1.yml",

Documentation/api/MongoDB.Entities.AsObjectIdAttribute.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ items:
1616
source:
1717
id: AsObjectIdAttribute
1818
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs
19-
startLine: 94
19+
startLine: 86
2020
assemblies:
2121
- MongoDB.Entities
2222
namespace: MongoDB.Entities
@@ -116,7 +116,7 @@ items:
116116
source:
117117
id: .ctor
118118
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs
119-
startLine: 97
119+
startLine: 89
120120
assemblies:
121121
- MongoDB.Entities
122122
namespace: MongoDB.Entities

Documentation/api/MongoDB.Entities.CollectionAttribute.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ items:
1717
source:
1818
id: CollectionAttribute
1919
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs
20-
startLine: 54
20+
startLine: 46
2121
assemblies:
2222
- MongoDB.Entities
2323
namespace: MongoDB.Entities
@@ -37,8 +37,6 @@ items:
3737
inheritance:
3838
- System.Object
3939
- System.Attribute
40-
derivedClasses:
41-
- MongoDB.Entities.NameAttribute
4240
inheritedMembers:
4341
- System.Attribute.Equals(System.Object)
4442
- System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type)
@@ -112,7 +110,7 @@ items:
112110
source:
113111
id: Name
114112
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs
115-
startLine: 57
113+
startLine: 49
116114
assemblies:
117115
- MongoDB.Entities
118116
namespace: MongoDB.Entities
@@ -143,7 +141,7 @@ items:
143141
source:
144142
id: .ctor
145143
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs
146-
startLine: 59
144+
startLine: 51
147145
assemblies:
148146
- MongoDB.Entities
149147
namespace: MongoDB.Entities

Documentation/api/MongoDB.Entities.Coordinates2D.yml

+35-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ items:
55
id: Coordinates2D
66
parent: MongoDB.Entities
77
children:
8+
- MongoDB.Entities.Coordinates2D.#ctor
89
- MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double)
910
- MongoDB.Entities.Coordinates2D.Coordinates
1011
- MongoDB.Entities.Coordinates2D.GeoJsonPoint(System.Double,System.Double)
@@ -20,7 +21,7 @@ items:
2021
source:
2122
id: Coordinates2D
2223
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs
23-
startLine: 10
24+
startLine: 11
2425
assemblies:
2526
- MongoDB.Entities
2627
namespace: MongoDB.Entities
@@ -59,7 +60,7 @@ items:
5960
source:
6061
id: Type
6162
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs
62-
startLine: 12
63+
startLine: 13
6364
assemblies:
6465
- MongoDB.Entities
6566
namespace: MongoDB.Entities
@@ -102,7 +103,7 @@ items:
102103
source:
103104
id: Coordinates
104105
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs
105-
startLine: 15
106+
startLine: 16
106107
assemblies:
107108
- MongoDB.Entities
108109
namespace: MongoDB.Entities
@@ -131,6 +132,34 @@ items:
131132
- set
132133
modifiers.vb:
133134
- Public
135+
- uid: MongoDB.Entities.Coordinates2D.#ctor
136+
commentId: M:MongoDB.Entities.Coordinates2D.#ctor
137+
id: '#ctor'
138+
parent: MongoDB.Entities.Coordinates2D
139+
langs:
140+
- csharp
141+
- vb
142+
name: Coordinates2D()
143+
nameWithType: Coordinates2D.Coordinates2D()
144+
fullName: MongoDB.Entities.Coordinates2D.Coordinates2D()
145+
type: Constructor
146+
source:
147+
id: .ctor
148+
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs
149+
startLine: 22
150+
assemblies:
151+
- MongoDB.Entities
152+
namespace: MongoDB.Entities
153+
summary: "\nInstantiate a new Coordinates2D instance with default values\n"
154+
example: []
155+
syntax:
156+
content: public Coordinates2D()
157+
content.vb: Public Sub New
158+
overload: MongoDB.Entities.Coordinates2D.#ctor*
159+
modifiers.csharp:
160+
- public
161+
modifiers.vb:
162+
- Public
134163
- uid: MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double)
135164
commentId: M:MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double)
136165
id: '#ctor(System.Double,System.Double)'
@@ -145,7 +174,7 @@ items:
145174
source:
146175
id: .ctor
147176
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs
148-
startLine: 21
177+
startLine: 27
149178
assemblies:
150179
- MongoDB.Entities
151180
namespace: MongoDB.Entities
@@ -178,7 +207,7 @@ items:
178207
source:
179208
id: ToGeoJsonPoint
180209
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs
181-
startLine: 30
210+
startLine: 36
182211
assemblies:
183212
- MongoDB.Entities
184213
namespace: MongoDB.Entities
@@ -208,7 +237,7 @@ items:
208237
source:
209238
id: GeoJsonPoint
210239
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs
211-
startLine: 38
240+
startLine: 44
212241
assemblies:
213242
- MongoDB.Entities
214243
namespace: MongoDB.Entities

Documentation/api/MongoDB.Entities.Date.yml

+65-55
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ items:
55
id: Date
66
parent: MongoDB.Entities
77
children:
8+
- MongoDB.Entities.Date.#ctor
9+
- MongoDB.Entities.Date.#ctor(System.DateTime)
10+
- MongoDB.Entities.Date.#ctor(System.Int64)
811
- MongoDB.Entities.Date.DateTime
9-
- MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime
10-
- MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date
1112
- MongoDB.Entities.Date.Ticks
1213
langs:
1314
- csharp
@@ -106,78 +107,96 @@ items:
106107
- set
107108
modifiers.vb:
108109
- Public
109-
- uid: MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date
110-
commentId: M:MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date
111-
id: op_Implicit(System.DateTime)~MongoDB.Entities.Date
110+
- uid: MongoDB.Entities.Date.#ctor
111+
commentId: M:MongoDB.Entities.Date.#ctor
112+
id: '#ctor'
112113
parent: MongoDB.Entities.Date
113114
langs:
114115
- csharp
115116
- vb
116-
name: Implicit(DateTime to Date)
117-
nameWithType: Date.Implicit(DateTime to Date)
118-
fullName: MongoDB.Entities.Date.Implicit(System.DateTime to MongoDB.Entities.Date)
119-
type: Operator
117+
name: Date()
118+
nameWithType: Date.Date()
119+
fullName: MongoDB.Entities.Date.Date()
120+
type: Constructor
120121
source:
121-
id: op_Implicit
122+
id: .ctor
122123
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Date.cs
123124
startLine: 97
124125
assemblies:
125126
- MongoDB.Entities
126127
namespace: MongoDB.Entities
127128
syntax:
128-
content: public static implicit operator Date(DateTime datetime)
129+
content: public Date()
130+
content.vb: Public Sub New
131+
overload: MongoDB.Entities.Date.#ctor*
132+
modifiers.csharp:
133+
- public
134+
modifiers.vb:
135+
- Public
136+
- uid: MongoDB.Entities.Date.#ctor(System.Int64)
137+
commentId: M:MongoDB.Entities.Date.#ctor(System.Int64)
138+
id: '#ctor(System.Int64)'
139+
parent: MongoDB.Entities.Date
140+
langs:
141+
- csharp
142+
- vb
143+
name: Date(Int64)
144+
nameWithType: Date.Date(Int64)
145+
fullName: MongoDB.Entities.Date.Date(System.Int64)
146+
type: Constructor
147+
source:
148+
id: .ctor
149+
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Date.cs
150+
startLine: 103
151+
assemblies:
152+
- MongoDB.Entities
153+
namespace: MongoDB.Entities
154+
summary: "\ninstantiate a Date with ticks\n"
155+
example: []
156+
syntax:
157+
content: public Date(long ticks)
129158
parameters:
130-
- id: datetime
131-
type: System.DateTime
132-
return:
133-
type: MongoDB.Entities.Date
134-
content.vb: Public Shared Widening Operator CType(datetime As Date) As Date
135-
overload: MongoDB.Entities.Date.op_Implicit*
136-
nameWithType.vb: Date.Widening(DateTime to Date)
159+
- id: ticks
160+
type: System.Int64
161+
description: the ticks
162+
content.vb: Public Sub New(ticks As Long)
163+
overload: MongoDB.Entities.Date.#ctor*
137164
modifiers.csharp:
138165
- public
139-
- static
140166
modifiers.vb:
141167
- Public
142-
- Shared
143-
fullName.vb: MongoDB.Entities.Date.Widening(System.DateTime to MongoDB.Entities.Date)
144-
name.vb: Widening(DateTime to Date)
145-
- uid: MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime
146-
commentId: M:MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime
147-
id: op_Implicit(MongoDB.Entities.Date)~System.DateTime
168+
- uid: MongoDB.Entities.Date.#ctor(System.DateTime)
169+
commentId: M:MongoDB.Entities.Date.#ctor(System.DateTime)
170+
id: '#ctor(System.DateTime)'
148171
parent: MongoDB.Entities.Date
149172
langs:
150173
- csharp
151174
- vb
152-
name: Implicit(Date to DateTime)
153-
nameWithType: Date.Implicit(Date to DateTime)
154-
fullName: MongoDB.Entities.Date.Implicit(MongoDB.Entities.Date to System.DateTime)
155-
type: Operator
175+
name: Date(DateTime)
176+
nameWithType: Date.Date(DateTime)
177+
fullName: MongoDB.Entities.Date.Date(System.DateTime)
178+
type: Constructor
156179
source:
157-
id: op_Implicit
180+
id: .ctor
158181
path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Date.cs
159-
startLine: 102
182+
startLine: 109
160183
assemblies:
161184
- MongoDB.Entities
162185
namespace: MongoDB.Entities
186+
summary: "\ninstantiate a Date with a DateTime\n"
187+
example: []
163188
syntax:
164-
content: public static implicit operator DateTime(Date date)
189+
content: public Date(DateTime dateTime)
165190
parameters:
166-
- id: date
167-
type: MongoDB.Entities.Date
168-
return:
191+
- id: dateTime
169192
type: System.DateTime
170-
content.vb: Public Shared Widening Operator CType(date As Date) As Date
171-
overload: MongoDB.Entities.Date.op_Implicit*
172-
nameWithType.vb: Date.Widening(Date to DateTime)
193+
description: the DateTime
194+
content.vb: Public Sub New(dateTime As Date)
195+
overload: MongoDB.Entities.Date.#ctor*
173196
modifiers.csharp:
174197
- public
175-
- static
176198
modifiers.vb:
177199
- Public
178-
- Shared
179-
fullName.vb: MongoDB.Entities.Date.Widening(MongoDB.Entities.Date to System.DateTime)
180-
name.vb: Widening(Date to DateTime)
181200
references:
182201
- uid: MongoDB.Entities
183202
commentId: N:MongoDB.Entities
@@ -500,17 +519,8 @@ references:
500519
name: DateTime
501520
nameWithType: DateTime
502521
fullName: System.DateTime
503-
- uid: MongoDB.Entities.Date.op_Implicit*
504-
commentId: Overload:MongoDB.Entities.Date.op_Implicit
505-
name: Implicit
506-
nameWithType: Date.Implicit
507-
fullName: MongoDB.Entities.Date.Implicit
508-
nameWithType.vb: Date.Widening
509-
fullName.vb: MongoDB.Entities.Date.Widening
510-
name.vb: Widening
511-
- uid: MongoDB.Entities.Date
512-
commentId: T:MongoDB.Entities.Date
513-
parent: MongoDB.Entities
522+
- uid: MongoDB.Entities.Date.#ctor*
523+
commentId: Overload:MongoDB.Entities.Date.#ctor
514524
name: Date
515-
nameWithType: Date
516-
fullName: MongoDB.Entities.Date
525+
nameWithType: Date.Date
526+
fullName: MongoDB.Entities.Date.Date

0 commit comments

Comments
 (0)