From c0639daf05f4164640262c6f2eecf983cd03e3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=B5=20=CE=9D=CE=B9=CE=93=CE=9E=CE=97=CE=9B=CF=88=CE=9A?= Date: Sat, 27 May 2023 15:03:24 +0530 Subject: [PATCH] v22 release --- Benchmark/Benchmark.csproj | 2 +- Documentation/api/.manifest | 19 +- .../MongoDB.Entities.AsObjectIdAttribute.yml | 4 +- .../MongoDB.Entities.CollectionAttribute.yml | 8 +- .../api/MongoDB.Entities.Coordinates2D.yml | 41 +- Documentation/api/MongoDB.Entities.Date.yml | 120 +- ...MongoDB.Entities.DontPreserveAttribute.yml | 2 +- .../api/MongoDB.Entities.Extensions.yml | 159 ++ .../api/MongoDB.Entities.FuzzyString.yml | 89 +- .../api/MongoDB.Entities.GeoNear-1.yml | 22 +- .../api/MongoDB.Entities.NameAttribute.yml | 2495 ----------------- .../MongoDB.Entities.ObjectIdAttribute.yml | 4 +- Documentation/api/MongoDB.Entities.One-1.yml | 174 +- .../MongoDB.Entities.PreserveAttribute.yml | 2 +- Documentation/api/MongoDB.Entities.yml | 6 - Documentation/api/toc.yml | 2 - Documentation/index.md | 2 +- Documentation/wiki/Extras-Date.md | 8 +- .../wiki/Relationships-Referenced.md | 6 +- MongoDB.Entities/Core/Attributes.cs | 8 - MongoDB.Entities/Core/Cache.cs | 5 +- MongoDB.Entities/MongoDB.Entities.csproj | 2 +- Tests/Tests.csproj | 8 +- changelog.md | 6 +- .../MongoDB.Entities.CollectionAttribute.html | 1 - docs/api/MongoDB.Entities.Coordinates2D.html | 11 + docs/api/MongoDB.Entities.Date.html | 95 +- docs/api/MongoDB.Entities.Extensions.html | 132 + docs/api/MongoDB.Entities.FuzzyString.html | 96 +- docs/api/MongoDB.Entities.One-1.html | 148 +- docs/api/MongoDB.Entities.html | 2 - docs/api/toc.html | 3 - docs/index.html | 2 +- docs/index.json | 25 +- docs/manifest.json | 36 +- docs/wiki/Extras-Date.html | 7 - docs/wiki/Relationships-Referenced.html | 6 +- docs/xrefmap.yml | 201 +- 38 files changed, 766 insertions(+), 3193 deletions(-) delete mode 100644 Documentation/api/MongoDB.Entities.NameAttribute.yml diff --git a/Benchmark/Benchmark.csproj b/Benchmark/Benchmark.csproj index cb15fb4e0..ebcee2370 100644 --- a/Benchmark/Benchmark.csproj +++ b/Benchmark/Benchmark.csproj @@ -14,7 +14,7 @@ - + diff --git a/Documentation/api/.manifest b/Documentation/api/.manifest index 6f4f72baa..91a9300c8 100644 --- a/Documentation/api/.manifest +++ b/Documentation/api/.manifest @@ -10,6 +10,7 @@ "MongoDB.Entities.CollectionAttribute.#ctor(System.String)": "MongoDB.Entities.CollectionAttribute.yml", "MongoDB.Entities.CollectionAttribute.Name": "MongoDB.Entities.CollectionAttribute.yml", "MongoDB.Entities.Coordinates2D": "MongoDB.Entities.Coordinates2D.yml", + "MongoDB.Entities.Coordinates2D.#ctor": "MongoDB.Entities.Coordinates2D.yml", "MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double)": "MongoDB.Entities.Coordinates2D.yml", "MongoDB.Entities.Coordinates2D.Coordinates": "MongoDB.Entities.Coordinates2D.yml", "MongoDB.Entities.Coordinates2D.GeoJsonPoint(System.Double,System.Double)": "MongoDB.Entities.Coordinates2D.yml", @@ -22,9 +23,10 @@ "MongoDB.Entities.DataStreamer.UploadAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken,MongoDB.Driver.IClientSessionHandle)": "MongoDB.Entities.DataStreamer.yml", "MongoDB.Entities.DataStreamer.UploadWithTimeoutAsync(System.IO.Stream,System.Int32,System.Int32,MongoDB.Driver.IClientSessionHandle)": "MongoDB.Entities.DataStreamer.yml", "MongoDB.Entities.Date": "MongoDB.Entities.Date.yml", + "MongoDB.Entities.Date.#ctor": "MongoDB.Entities.Date.yml", + "MongoDB.Entities.Date.#ctor(System.DateTime)": "MongoDB.Entities.Date.yml", + "MongoDB.Entities.Date.#ctor(System.Int64)": "MongoDB.Entities.Date.yml", "MongoDB.Entities.Date.DateTime": "MongoDB.Entities.Date.yml", - "MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime": "MongoDB.Entities.Date.yml", - "MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date": "MongoDB.Entities.Date.yml", "MongoDB.Entities.Date.Ticks": "MongoDB.Entities.Date.yml", "MongoDB.Entities.DB": "MongoDB.Entities.DB.yml", "MongoDB.Entities.DB.AllDatabaseNamesAsync(MongoDB.Driver.MongoClientSettings)": "MongoDB.Entities.DB.yml", @@ -217,10 +219,13 @@ "MongoDB.Entities.Extensions.SavePreservingAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken)": "MongoDB.Entities.Extensions.yml", "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", "MongoDB.Entities.Extensions.ToBatches``1(System.Collections.Generic.IEnumerable{``0},System.Int32)": "MongoDB.Entities.Extensions.yml", + "MongoDB.Entities.Extensions.ToDate(System.DateTime)": "MongoDB.Entities.Extensions.yml", + "MongoDB.Entities.Extensions.ToDate(System.Int64)": "MongoDB.Entities.Extensions.yml", "MongoDB.Entities.Extensions.ToDocument``1(``0)": "MongoDB.Entities.Extensions.yml", "MongoDB.Entities.Extensions.ToDocuments``1(``0[])": "MongoDB.Entities.Extensions.yml", "MongoDB.Entities.Extensions.ToDocuments``1(System.Collections.Generic.IEnumerable{``0})": "MongoDB.Entities.Extensions.yml", "MongoDB.Entities.Extensions.ToDoubleMetaphoneHash(System.String)": "MongoDB.Entities.Extensions.yml", + "MongoDB.Entities.Extensions.ToFuzzy(System.String)": "MongoDB.Entities.Extensions.yml", "MongoDB.Entities.Extensions.ToReference``1(``0)": "MongoDB.Entities.Extensions.yml", "MongoDB.Entities.FieldAttribute": "MongoDB.Entities.FieldAttribute.yml", "MongoDB.Entities.FieldAttribute.#ctor(System.Int32)": "MongoDB.Entities.FieldAttribute.yml", @@ -266,9 +271,9 @@ "MongoDB.Entities.Find`2.SortByTextScore": "MongoDB.Entities.Find-2.yml", "MongoDB.Entities.Find`2.SortByTextScore(System.Linq.Expressions.Expression{System.Func{`0,System.Object}})": "MongoDB.Entities.Find-2.yml", "MongoDB.Entities.FuzzyString": "MongoDB.Entities.FuzzyString.yml", + "MongoDB.Entities.FuzzyString.#ctor": "MongoDB.Entities.FuzzyString.yml", + "MongoDB.Entities.FuzzyString.#ctor(System.String)": "MongoDB.Entities.FuzzyString.yml", "MongoDB.Entities.FuzzyString.CharacterLimit": "MongoDB.Entities.FuzzyString.yml", - "MongoDB.Entities.FuzzyString.op_Implicit(MongoDB.Entities.FuzzyString)~System.String": "MongoDB.Entities.FuzzyString.yml", - "MongoDB.Entities.FuzzyString.op_Implicit(System.String)~MongoDB.Entities.FuzzyString": "MongoDB.Entities.FuzzyString.yml", "MongoDB.Entities.FuzzyString.Value": "MongoDB.Entities.FuzzyString.yml", "MongoDB.Entities.GeoNear`1": "MongoDB.Entities.GeoNear-1.yml", "MongoDB.Entities.GeoNear`1.distanceField": "MongoDB.Entities.GeoNear-1.yml", @@ -345,15 +350,13 @@ "MongoDB.Entities.ModifiedBy": "MongoDB.Entities.ModifiedBy.yml", "MongoDB.Entities.ModifiedBy.UserID": "MongoDB.Entities.ModifiedBy.yml", "MongoDB.Entities.ModifiedBy.UserName": "MongoDB.Entities.ModifiedBy.yml", - "MongoDB.Entities.NameAttribute": "MongoDB.Entities.NameAttribute.yml", - "MongoDB.Entities.NameAttribute.#ctor(System.String)": "MongoDB.Entities.NameAttribute.yml", "MongoDB.Entities.ObjectIdAttribute": "MongoDB.Entities.ObjectIdAttribute.yml", "MongoDB.Entities.ObjectIdAttribute.#ctor": "MongoDB.Entities.ObjectIdAttribute.yml", "MongoDB.Entities.One`1": "MongoDB.Entities.One-1.yml", "MongoDB.Entities.One`1.#ctor": "MongoDB.Entities.One-1.yml", + "MongoDB.Entities.One`1.#ctor(`0)": "MongoDB.Entities.One-1.yml", + "MongoDB.Entities.One`1.#ctor(System.String)": "MongoDB.Entities.One-1.yml", "MongoDB.Entities.One`1.ID": "MongoDB.Entities.One-1.yml", - "MongoDB.Entities.One`1.op_Implicit(`0)~MongoDB.Entities.One{`0}": "MongoDB.Entities.One-1.yml", - "MongoDB.Entities.One`1.op_Implicit(System.String)~MongoDB.Entities.One{`0}": "MongoDB.Entities.One-1.yml", "MongoDB.Entities.One`1.ToEntityAsync(MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken)": "MongoDB.Entities.One-1.yml", "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", "MongoDB.Entities.One`1.ToEntityAsync(System.Linq.Expressions.Expression{System.Func{`0,`0}},MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken)": "MongoDB.Entities.One-1.yml", diff --git a/Documentation/api/MongoDB.Entities.AsObjectIdAttribute.yml b/Documentation/api/MongoDB.Entities.AsObjectIdAttribute.yml index 9c3e981ef..844708240 100644 --- a/Documentation/api/MongoDB.Entities.AsObjectIdAttribute.yml +++ b/Documentation/api/MongoDB.Entities.AsObjectIdAttribute.yml @@ -16,7 +16,7 @@ items: source: id: AsObjectIdAttribute path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 94 + startLine: 86 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -116,7 +116,7 @@ items: source: id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 97 + startLine: 89 assemblies: - MongoDB.Entities namespace: MongoDB.Entities diff --git a/Documentation/api/MongoDB.Entities.CollectionAttribute.yml b/Documentation/api/MongoDB.Entities.CollectionAttribute.yml index 2a316e7d1..1a981f590 100644 --- a/Documentation/api/MongoDB.Entities.CollectionAttribute.yml +++ b/Documentation/api/MongoDB.Entities.CollectionAttribute.yml @@ -17,7 +17,7 @@ items: source: id: CollectionAttribute path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 54 + startLine: 46 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -37,8 +37,6 @@ items: inheritance: - System.Object - System.Attribute - derivedClasses: - - MongoDB.Entities.NameAttribute inheritedMembers: - System.Attribute.Equals(System.Object) - System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type) @@ -112,7 +110,7 @@ items: source: id: Name path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 57 + startLine: 49 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -143,7 +141,7 @@ items: source: id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 59 + startLine: 51 assemblies: - MongoDB.Entities namespace: MongoDB.Entities diff --git a/Documentation/api/MongoDB.Entities.Coordinates2D.yml b/Documentation/api/MongoDB.Entities.Coordinates2D.yml index caa40112b..ecf565f90 100644 --- a/Documentation/api/MongoDB.Entities.Coordinates2D.yml +++ b/Documentation/api/MongoDB.Entities.Coordinates2D.yml @@ -5,6 +5,7 @@ items: id: Coordinates2D parent: MongoDB.Entities children: + - MongoDB.Entities.Coordinates2D.#ctor - MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double) - MongoDB.Entities.Coordinates2D.Coordinates - MongoDB.Entities.Coordinates2D.GeoJsonPoint(System.Double,System.Double) @@ -20,7 +21,7 @@ items: source: id: Coordinates2D path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 10 + startLine: 11 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -59,7 +60,7 @@ items: source: id: Type path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 12 + startLine: 13 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -102,7 +103,7 @@ items: source: id: Coordinates path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 15 + startLine: 16 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -131,6 +132,34 @@ items: - set modifiers.vb: - Public +- uid: MongoDB.Entities.Coordinates2D.#ctor + commentId: M:MongoDB.Entities.Coordinates2D.#ctor + id: '#ctor' + parent: MongoDB.Entities.Coordinates2D + langs: + - csharp + - vb + name: Coordinates2D() + nameWithType: Coordinates2D.Coordinates2D() + fullName: MongoDB.Entities.Coordinates2D.Coordinates2D() + type: Constructor + source: + id: .ctor + path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs + startLine: 22 + assemblies: + - MongoDB.Entities + namespace: MongoDB.Entities + summary: "\nInstantiate a new Coordinates2D instance with default values\n" + example: [] + syntax: + content: public Coordinates2D() + content.vb: Public Sub New + overload: MongoDB.Entities.Coordinates2D.#ctor* + modifiers.csharp: + - public + modifiers.vb: + - Public - uid: MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double) commentId: M:MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double) id: '#ctor(System.Double,System.Double)' @@ -145,7 +174,7 @@ items: source: id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 21 + startLine: 27 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -178,7 +207,7 @@ items: source: id: ToGeoJsonPoint path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 30 + startLine: 36 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -208,7 +237,7 @@ items: source: id: GeoJsonPoint path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 38 + startLine: 44 assemblies: - MongoDB.Entities namespace: MongoDB.Entities diff --git a/Documentation/api/MongoDB.Entities.Date.yml b/Documentation/api/MongoDB.Entities.Date.yml index df09cc466..20d568346 100644 --- a/Documentation/api/MongoDB.Entities.Date.yml +++ b/Documentation/api/MongoDB.Entities.Date.yml @@ -5,9 +5,10 @@ items: id: Date parent: MongoDB.Entities children: + - MongoDB.Entities.Date.#ctor + - MongoDB.Entities.Date.#ctor(System.DateTime) + - MongoDB.Entities.Date.#ctor(System.Int64) - MongoDB.Entities.Date.DateTime - - MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime - - MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date - MongoDB.Entities.Date.Ticks langs: - csharp @@ -106,78 +107,96 @@ items: - set modifiers.vb: - Public -- uid: MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date - commentId: M:MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date - id: op_Implicit(System.DateTime)~MongoDB.Entities.Date +- uid: MongoDB.Entities.Date.#ctor + commentId: M:MongoDB.Entities.Date.#ctor + id: '#ctor' parent: MongoDB.Entities.Date langs: - csharp - vb - name: Implicit(DateTime to Date) - nameWithType: Date.Implicit(DateTime to Date) - fullName: MongoDB.Entities.Date.Implicit(System.DateTime to MongoDB.Entities.Date) - type: Operator + name: Date() + nameWithType: Date.Date() + fullName: MongoDB.Entities.Date.Date() + type: Constructor source: - id: op_Implicit + id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Date.cs startLine: 97 assemblies: - MongoDB.Entities namespace: MongoDB.Entities syntax: - content: public static implicit operator Date(DateTime datetime) + content: public Date() + content.vb: Public Sub New + overload: MongoDB.Entities.Date.#ctor* + modifiers.csharp: + - public + modifiers.vb: + - Public +- uid: MongoDB.Entities.Date.#ctor(System.Int64) + commentId: M:MongoDB.Entities.Date.#ctor(System.Int64) + id: '#ctor(System.Int64)' + parent: MongoDB.Entities.Date + langs: + - csharp + - vb + name: Date(Int64) + nameWithType: Date.Date(Int64) + fullName: MongoDB.Entities.Date.Date(System.Int64) + type: Constructor + source: + id: .ctor + path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Date.cs + startLine: 103 + assemblies: + - MongoDB.Entities + namespace: MongoDB.Entities + summary: "\ninstantiate a Date with ticks\n" + example: [] + syntax: + content: public Date(long ticks) parameters: - - id: datetime - type: System.DateTime - return: - type: MongoDB.Entities.Date - content.vb: Public Shared Widening Operator CType(datetime As Date) As Date - overload: MongoDB.Entities.Date.op_Implicit* - nameWithType.vb: Date.Widening(DateTime to Date) + - id: ticks + type: System.Int64 + description: the ticks + content.vb: Public Sub New(ticks As Long) + overload: MongoDB.Entities.Date.#ctor* modifiers.csharp: - public - - static modifiers.vb: - Public - - Shared - fullName.vb: MongoDB.Entities.Date.Widening(System.DateTime to MongoDB.Entities.Date) - name.vb: Widening(DateTime to Date) -- uid: MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime - commentId: M:MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime - id: op_Implicit(MongoDB.Entities.Date)~System.DateTime +- uid: MongoDB.Entities.Date.#ctor(System.DateTime) + commentId: M:MongoDB.Entities.Date.#ctor(System.DateTime) + id: '#ctor(System.DateTime)' parent: MongoDB.Entities.Date langs: - csharp - vb - name: Implicit(Date to DateTime) - nameWithType: Date.Implicit(Date to DateTime) - fullName: MongoDB.Entities.Date.Implicit(MongoDB.Entities.Date to System.DateTime) - type: Operator + name: Date(DateTime) + nameWithType: Date.Date(DateTime) + fullName: MongoDB.Entities.Date.Date(System.DateTime) + type: Constructor source: - id: op_Implicit + id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Date.cs - startLine: 102 + startLine: 109 assemblies: - MongoDB.Entities namespace: MongoDB.Entities + summary: "\ninstantiate a Date with a DateTime\n" + example: [] syntax: - content: public static implicit operator DateTime(Date date) + content: public Date(DateTime dateTime) parameters: - - id: date - type: MongoDB.Entities.Date - return: + - id: dateTime type: System.DateTime - content.vb: Public Shared Widening Operator CType(date As Date) As Date - overload: MongoDB.Entities.Date.op_Implicit* - nameWithType.vb: Date.Widening(Date to DateTime) + description: the DateTime + content.vb: Public Sub New(dateTime As Date) + overload: MongoDB.Entities.Date.#ctor* modifiers.csharp: - public - - static modifiers.vb: - Public - - Shared - fullName.vb: MongoDB.Entities.Date.Widening(MongoDB.Entities.Date to System.DateTime) - name.vb: Widening(Date to DateTime) references: - uid: MongoDB.Entities commentId: N:MongoDB.Entities @@ -500,17 +519,8 @@ references: name: DateTime nameWithType: DateTime fullName: System.DateTime -- uid: MongoDB.Entities.Date.op_Implicit* - commentId: Overload:MongoDB.Entities.Date.op_Implicit - name: Implicit - nameWithType: Date.Implicit - fullName: MongoDB.Entities.Date.Implicit - nameWithType.vb: Date.Widening - fullName.vb: MongoDB.Entities.Date.Widening - name.vb: Widening -- uid: MongoDB.Entities.Date - commentId: T:MongoDB.Entities.Date - parent: MongoDB.Entities +- uid: MongoDB.Entities.Date.#ctor* + commentId: Overload:MongoDB.Entities.Date.#ctor name: Date - nameWithType: Date - fullName: MongoDB.Entities.Date + nameWithType: Date.Date + fullName: MongoDB.Entities.Date.Date diff --git a/Documentation/api/MongoDB.Entities.DontPreserveAttribute.yml b/Documentation/api/MongoDB.Entities.DontPreserveAttribute.yml index 0bb0ca1f9..1bee3b9d9 100644 --- a/Documentation/api/MongoDB.Entities.DontPreserveAttribute.yml +++ b/Documentation/api/MongoDB.Entities.DontPreserveAttribute.yml @@ -15,7 +15,7 @@ items: source: id: DontPreserveAttribute path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 77 + startLine: 69 assemblies: - MongoDB.Entities namespace: MongoDB.Entities diff --git a/Documentation/api/MongoDB.Entities.Extensions.yml b/Documentation/api/MongoDB.Entities.Extensions.yml index 854431280..c113226a0 100644 --- a/Documentation/api/MongoDB.Entities.Extensions.yml +++ b/Documentation/api/MongoDB.Entities.Extensions.yml @@ -40,10 +40,13 @@ items: - MongoDB.Entities.Extensions.SavePreservingAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) - MongoDB.Entities.Extensions.SortByRelevance``1(System.Collections.Generic.IEnumerable{``0},System.String,System.Func{``0,System.String},System.Nullable{System.Int32}) - MongoDB.Entities.Extensions.ToBatches``1(System.Collections.Generic.IEnumerable{``0},System.Int32) + - MongoDB.Entities.Extensions.ToDate(System.DateTime) + - MongoDB.Entities.Extensions.ToDate(System.Int64) - MongoDB.Entities.Extensions.ToDocument``1(``0) - MongoDB.Entities.Extensions.ToDocuments``1(``0[]) - MongoDB.Entities.Extensions.ToDocuments``1(System.Collections.Generic.IEnumerable{``0}) - MongoDB.Entities.Extensions.ToDoubleMetaphoneHash(System.String) + - MongoDB.Entities.Extensions.ToFuzzy(System.String) - MongoDB.Entities.Extensions.ToReference``1(``0) langs: - csharp @@ -402,6 +405,86 @@ items: modifiers.vb: - Public - Shared +- uid: MongoDB.Entities.Extensions.ToDate(System.DateTime) + commentId: M:MongoDB.Entities.Extensions.ToDate(System.DateTime) + id: ToDate(System.DateTime) + isExtensionMethod: true + parent: MongoDB.Entities.Extensions + langs: + - csharp + - vb + name: ToDate(DateTime) + nameWithType: Extensions.ToDate(DateTime) + fullName: MongoDB.Entities.Extensions.ToDate(System.DateTime) + type: Method + source: + id: ToDate + path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Extensions\Date.cs + startLine: 10 + assemblies: + - MongoDB.Entities + namespace: MongoDB.Entities + summary: "\nconverts a instance to a instance.\n" + example: [] + syntax: + content: public static Date ToDate(this DateTime dateTime) + parameters: + - id: dateTime + type: System.DateTime + description: the instance to convert + return: + type: MongoDB.Entities.Date + content.vb: >- + + + Public Shared Function ToDate(dateTime As Date) As Date + overload: MongoDB.Entities.Extensions.ToDate* + modifiers.csharp: + - public + - static + modifiers.vb: + - Public + - Shared +- uid: MongoDB.Entities.Extensions.ToDate(System.Int64) + commentId: M:MongoDB.Entities.Extensions.ToDate(System.Int64) + id: ToDate(System.Int64) + isExtensionMethod: true + parent: MongoDB.Entities.Extensions + langs: + - csharp + - vb + name: ToDate(Int64) + nameWithType: Extensions.ToDate(Int64) + fullName: MongoDB.Entities.Extensions.ToDate(System.Int64) + type: Method + source: + id: ToDate + path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Extensions\Date.cs + startLine: 17 + assemblies: + - MongoDB.Entities + namespace: MongoDB.Entities + summary: "\nconverts ticks to a instance.\n" + example: [] + syntax: + content: public static Date ToDate(this long ticks) + parameters: + - id: ticks + type: System.Int64 + description: the ticks to convert + return: + type: MongoDB.Entities.Date + content.vb: >- + + + Public Shared Function ToDate(ticks As Long) As Date + overload: MongoDB.Entities.Extensions.ToDate* + modifiers.csharp: + - public + - static + modifiers.vb: + - Public + - Shared - uid: MongoDB.Entities.Extensions.DeleteAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) commentId: M:MongoDB.Entities.Extensions.DeleteAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) id: DeleteAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) @@ -1147,6 +1230,46 @@ items: - Shared fullName.vb: MongoDB.Entities.Extensions.MatchExpression(Of T)(MongoDB.Driver.IAggregateFluent(Of T), System.String) name.vb: MatchExpression(Of T)(IAggregateFluent(Of T), String) +- uid: MongoDB.Entities.Extensions.ToFuzzy(System.String) + commentId: M:MongoDB.Entities.Extensions.ToFuzzy(System.String) + id: ToFuzzy(System.String) + isExtensionMethod: true + parent: MongoDB.Entities.Extensions + langs: + - csharp + - vb + name: ToFuzzy(String) + nameWithType: Extensions.ToFuzzy(String) + fullName: MongoDB.Entities.Extensions.ToFuzzy(System.String) + type: Method + source: + id: ToFuzzy + path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Extensions\FuzzyString.cs + startLine: 8 + assemblies: + - MongoDB.Entities + namespace: MongoDB.Entities + summary: "\nconverts a string value to a FuzzyString\n" + example: [] + syntax: + content: public static FuzzyString ToFuzzy(this string value) + parameters: + - id: value + type: System.String + description: the string to convert + return: + type: MongoDB.Entities.FuzzyString + content.vb: >- + + + Public Shared Function ToFuzzy(value As String) As FuzzyString + overload: MongoDB.Entities.Extensions.ToFuzzy* + modifiers.csharp: + - public + - static + modifiers.vb: + - Public + - Shared - uid: MongoDB.Entities.Extensions.InsertAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) commentId: M:MongoDB.Entities.Extensions.InsertAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) id: InsertAsync``1(``0,MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) @@ -2715,6 +2838,31 @@ references: name: ExistsAsync nameWithType: Extensions.ExistsAsync fullName: MongoDB.Entities.Extensions.ExistsAsync +- uid: System.DateTime + commentId: T:System.DateTime + parent: System + isExternal: true + name: DateTime + nameWithType: DateTime + fullName: System.DateTime +- uid: MongoDB.Entities.Date + commentId: T:MongoDB.Entities.Date + parent: MongoDB.Entities + name: Date + nameWithType: Date + fullName: MongoDB.Entities.Date +- uid: MongoDB.Entities.Extensions.ToDate* + commentId: Overload:MongoDB.Entities.Extensions.ToDate + name: ToDate + nameWithType: Extensions.ToDate + fullName: MongoDB.Entities.Extensions.ToDate +- uid: System.Int64 + commentId: T:System.Int64 + parent: System + isExternal: true + name: Int64 + nameWithType: Int64 + fullName: System.Int64 - uid: MongoDB.Entities.Extensions.DeleteAsync* commentId: Overload:MongoDB.Entities.Extensions.DeleteAsync name: DeleteAsync @@ -3642,6 +3790,17 @@ references: name: MatchExpression nameWithType: Extensions.MatchExpression fullName: MongoDB.Entities.Extensions.MatchExpression +- uid: MongoDB.Entities.Extensions.ToFuzzy* + commentId: Overload:MongoDB.Entities.Extensions.ToFuzzy + name: ToFuzzy + nameWithType: Extensions.ToFuzzy + fullName: MongoDB.Entities.Extensions.ToFuzzy +- uid: MongoDB.Entities.FuzzyString + commentId: T:MongoDB.Entities.FuzzyString + parent: MongoDB.Entities + name: FuzzyString + nameWithType: FuzzyString + fullName: MongoDB.Entities.FuzzyString - uid: MongoDB.Entities.Extensions.InsertAsync* commentId: Overload:MongoDB.Entities.Extensions.InsertAsync name: InsertAsync diff --git a/Documentation/api/MongoDB.Entities.FuzzyString.yml b/Documentation/api/MongoDB.Entities.FuzzyString.yml index 680f5b3d1..4425a2781 100644 --- a/Documentation/api/MongoDB.Entities.FuzzyString.yml +++ b/Documentation/api/MongoDB.Entities.FuzzyString.yml @@ -5,9 +5,9 @@ items: id: FuzzyString parent: MongoDB.Entities children: + - MongoDB.Entities.FuzzyString.#ctor + - MongoDB.Entities.FuzzyString.#ctor(System.String) - MongoDB.Entities.FuzzyString.CharacterLimit - - MongoDB.Entities.FuzzyString.op_Implicit(MongoDB.Entities.FuzzyString)~System.String - - MongoDB.Entities.FuzzyString.op_Implicit(System.String)~MongoDB.Entities.FuzzyString - MongoDB.Entities.FuzzyString.Value langs: - csharp @@ -108,78 +108,64 @@ items: - set modifiers.vb: - Public -- uid: MongoDB.Entities.FuzzyString.op_Implicit(System.String)~MongoDB.Entities.FuzzyString - commentId: M:MongoDB.Entities.FuzzyString.op_Implicit(System.String)~MongoDB.Entities.FuzzyString - id: op_Implicit(System.String)~MongoDB.Entities.FuzzyString +- uid: MongoDB.Entities.FuzzyString.#ctor + commentId: M:MongoDB.Entities.FuzzyString.#ctor + id: '#ctor' parent: MongoDB.Entities.FuzzyString langs: - csharp - vb - name: Implicit(String to FuzzyString) - nameWithType: FuzzyString.Implicit(String to FuzzyString) - fullName: MongoDB.Entities.FuzzyString.Implicit(System.String to MongoDB.Entities.FuzzyString) - type: Operator + name: FuzzyString() + nameWithType: FuzzyString.FuzzyString() + fullName: MongoDB.Entities.FuzzyString.FuzzyString() + type: Constructor source: - id: op_Implicit + id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\FuzzyString.cs startLine: 91 assemblies: - MongoDB.Entities namespace: MongoDB.Entities syntax: - content: public static implicit operator FuzzyString(string value) - parameters: - - id: value - type: System.String - return: - type: MongoDB.Entities.FuzzyString - content.vb: Public Shared Widening Operator CType(value As String) As FuzzyString - overload: MongoDB.Entities.FuzzyString.op_Implicit* - nameWithType.vb: FuzzyString.Widening(String to FuzzyString) + content: public FuzzyString() + content.vb: Public Sub New + overload: MongoDB.Entities.FuzzyString.#ctor* modifiers.csharp: - public - - static modifiers.vb: - Public - - Shared - fullName.vb: MongoDB.Entities.FuzzyString.Widening(System.String to MongoDB.Entities.FuzzyString) - name.vb: Widening(String to FuzzyString) -- uid: MongoDB.Entities.FuzzyString.op_Implicit(MongoDB.Entities.FuzzyString)~System.String - commentId: M:MongoDB.Entities.FuzzyString.op_Implicit(MongoDB.Entities.FuzzyString)~System.String - id: op_Implicit(MongoDB.Entities.FuzzyString)~System.String +- uid: MongoDB.Entities.FuzzyString.#ctor(System.String) + commentId: M:MongoDB.Entities.FuzzyString.#ctor(System.String) + id: '#ctor(System.String)' parent: MongoDB.Entities.FuzzyString langs: - csharp - vb - name: Implicit(FuzzyString to String) - nameWithType: FuzzyString.Implicit(FuzzyString to String) - fullName: MongoDB.Entities.FuzzyString.Implicit(MongoDB.Entities.FuzzyString to System.String) - type: Operator + name: FuzzyString(String) + nameWithType: FuzzyString.FuzzyString(String) + fullName: MongoDB.Entities.FuzzyString.FuzzyString(System.String) + type: Constructor source: - id: op_Implicit + id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\FuzzyString.cs - startLine: 96 + startLine: 97 assemblies: - MongoDB.Entities namespace: MongoDB.Entities + summary: "\ninstantiate a FuzzyString object with a given string\n" + example: [] syntax: - content: public static implicit operator string (FuzzyString fuzzyString) + content: public FuzzyString(string value) parameters: - - id: fuzzyString - type: MongoDB.Entities.FuzzyString - return: + - id: value type: System.String - content.vb: Public Shared Widening Operator CType(fuzzyString As FuzzyString) As String - overload: MongoDB.Entities.FuzzyString.op_Implicit* - nameWithType.vb: FuzzyString.Widening(FuzzyString to String) + description: the string value to create the FuzzyString with + content.vb: Public Sub New(value As String) + overload: MongoDB.Entities.FuzzyString.#ctor* modifiers.csharp: - public - - static modifiers.vb: - Public - - Shared - fullName.vb: MongoDB.Entities.FuzzyString.Widening(MongoDB.Entities.FuzzyString to System.String) - name.vb: Widening(FuzzyString to String) references: - uid: MongoDB.Entities commentId: N:MongoDB.Entities @@ -502,17 +488,8 @@ references: name: String nameWithType: String fullName: System.String -- uid: MongoDB.Entities.FuzzyString.op_Implicit* - commentId: Overload:MongoDB.Entities.FuzzyString.op_Implicit - name: Implicit - nameWithType: FuzzyString.Implicit - fullName: MongoDB.Entities.FuzzyString.Implicit - nameWithType.vb: FuzzyString.Widening - fullName.vb: MongoDB.Entities.FuzzyString.Widening - name.vb: Widening -- uid: MongoDB.Entities.FuzzyString - commentId: T:MongoDB.Entities.FuzzyString - parent: MongoDB.Entities +- uid: MongoDB.Entities.FuzzyString.#ctor* + commentId: Overload:MongoDB.Entities.FuzzyString.#ctor name: FuzzyString - nameWithType: FuzzyString - fullName: MongoDB.Entities.FuzzyString + nameWithType: FuzzyString.FuzzyString + fullName: MongoDB.Entities.FuzzyString.FuzzyString diff --git a/Documentation/api/MongoDB.Entities.GeoNear-1.yml b/Documentation/api/MongoDB.Entities.GeoNear-1.yml index 72bef5296..dac10d8ae 100644 --- a/Documentation/api/MongoDB.Entities.GeoNear-1.yml +++ b/Documentation/api/MongoDB.Entities.GeoNear-1.yml @@ -25,7 +25,7 @@ items: source: id: GeoNear path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 48 + startLine: 54 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -73,7 +73,7 @@ items: source: id: near path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 51 + startLine: 57 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -106,7 +106,7 @@ items: source: id: distanceField path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 52 + startLine: 58 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -139,7 +139,7 @@ items: source: id: spherical path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 53 + startLine: 59 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -172,7 +172,7 @@ items: source: id: limit path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 54 + startLine: 60 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -215,7 +215,7 @@ items: source: id: maxDistance path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 55 + startLine: 61 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -258,7 +258,7 @@ items: source: id: query path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 56 + startLine: 62 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -301,7 +301,7 @@ items: source: id: distanceMultiplier path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 57 + startLine: 63 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -344,7 +344,7 @@ items: source: id: includeLocs path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 58 + startLine: 64 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -387,7 +387,7 @@ items: source: id: minDistance path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 59 + startLine: 65 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -430,7 +430,7 @@ items: source: id: key path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\GeoNear.cs - startLine: 60 + startLine: 66 assemblies: - MongoDB.Entities namespace: MongoDB.Entities diff --git a/Documentation/api/MongoDB.Entities.NameAttribute.yml b/Documentation/api/MongoDB.Entities.NameAttribute.yml deleted file mode 100644 index 5562d6af7..000000000 --- a/Documentation/api/MongoDB.Entities.NameAttribute.yml +++ /dev/null @@ -1,2495 +0,0 @@ -### YamlMime:ManagedReference -items: -- uid: MongoDB.Entities.NameAttribute - commentId: T:MongoDB.Entities.NameAttribute - id: NameAttribute - parent: MongoDB.Entities - children: - - MongoDB.Entities.NameAttribute.#ctor(System.String) - langs: - - csharp - - vb - name: NameAttribute - nameWithType: NameAttribute - fullName: MongoDB.Entities.NameAttribute - type: Class - source: - id: NameAttribute - path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 44 - assemblies: - - MongoDB.Entities - namespace: MongoDB.Entities - syntax: - content: >- - [Obsolete("Please use the [Collection(\"...\")] attribute instead")] - - [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] - - public class NameAttribute : CollectionAttribute - content.vb: >- - - - - - Public Class NameAttribute - - Inherits CollectionAttribute - inheritance: - - System.Object - - System.Attribute - - MongoDB.Entities.CollectionAttribute - inheritedMembers: - - MongoDB.Entities.CollectionAttribute.Name - - System.Attribute.Equals(System.Object) - - System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type) - - System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type,System.Boolean) - - System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type) - - System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type,System.Boolean) - - System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type) - - System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type,System.Boolean) - - System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type) - - System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.Assembly) - - System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type) - - System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) - - System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type) - - System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.Module) - - System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type) - - System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) - - System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Boolean) - - System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type) - - System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type,System.Boolean) - - System.Attribute.GetHashCode - - System.Attribute.IsDefaultAttribute - - System.Attribute.IsDefined(System.Reflection.Assembly,System.Type) - - System.Attribute.IsDefined(System.Reflection.Assembly,System.Type,System.Boolean) - - System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type) - - System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type,System.Boolean) - - System.Attribute.IsDefined(System.Reflection.Module,System.Type) - - System.Attribute.IsDefined(System.Reflection.Module,System.Type,System.Boolean) - - System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type) - - System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type,System.Boolean) - - System.Attribute.Match(System.Object) - - System.Attribute.TypeId - - System.Object.Equals(System.Object,System.Object) - - System.Object.GetType - - System.Object.MemberwiseClone - - System.Object.ReferenceEquals(System.Object,System.Object) - - System.Object.ToString - attributes: - - type: System.ObsoleteAttribute - ctor: System.ObsoleteAttribute.#ctor(System.String) - arguments: - - type: System.String - value: Please use the [Collection("...")] attribute instead - - type: System.AttributeUsageAttribute - ctor: System.AttributeUsageAttribute.#ctor(System.AttributeTargets) - arguments: - - type: System.AttributeTargets - value: 4 - namedArguments: - - name: AllowMultiple - type: System.Boolean - value: false - modifiers.csharp: - - public - - class - modifiers.vb: - - Public - - Class -- uid: MongoDB.Entities.NameAttribute.#ctor(System.String) - commentId: M:MongoDB.Entities.NameAttribute.#ctor(System.String) - id: '#ctor(System.String)' - parent: MongoDB.Entities.NameAttribute - langs: - - csharp - - vb - name: NameAttribute(String) - nameWithType: NameAttribute.NameAttribute(String) - fullName: MongoDB.Entities.NameAttribute.NameAttribute(System.String) - type: Constructor - source: - id: .ctor - path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 48 - assemblies: - - MongoDB.Entities - namespace: MongoDB.Entities - syntax: - content: public NameAttribute(string name) - parameters: - - id: name - type: System.String - content.vb: Public Sub New(name As String) - overload: MongoDB.Entities.NameAttribute.#ctor* - modifiers.csharp: - - public - modifiers.vb: - - Public -references: -- uid: MongoDB.Entities - commentId: N:MongoDB.Entities - name: MongoDB.Entities - nameWithType: MongoDB.Entities - fullName: MongoDB.Entities -- uid: System.Object - commentId: T:System.Object - parent: System - isExternal: true - name: Object - nameWithType: Object - fullName: System.Object -- uid: System.Attribute - commentId: T:System.Attribute - parent: System - isExternal: true - name: Attribute - nameWithType: Attribute - fullName: System.Attribute -- uid: MongoDB.Entities.CollectionAttribute - commentId: T:MongoDB.Entities.CollectionAttribute - parent: MongoDB.Entities - name: CollectionAttribute - nameWithType: CollectionAttribute - fullName: MongoDB.Entities.CollectionAttribute -- uid: MongoDB.Entities.CollectionAttribute.Name - commentId: P:MongoDB.Entities.CollectionAttribute.Name - parent: MongoDB.Entities.CollectionAttribute - name: Name - nameWithType: CollectionAttribute.Name - fullName: MongoDB.Entities.CollectionAttribute.Name -- uid: System.Attribute.Equals(System.Object) - commentId: M:System.Attribute.Equals(System.Object) - parent: System.Attribute - isExternal: true - name: Equals(Object) - nameWithType: Attribute.Equals(Object) - fullName: System.Attribute.Equals(System.Object) - spec.csharp: - - uid: System.Attribute.Equals(System.Object) - name: Equals - nameWithType: Attribute.Equals - fullName: System.Attribute.Equals - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.Equals(System.Object) - name: Equals - nameWithType: Attribute.Equals - fullName: System.Attribute.Equals - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(Assembly, Type) - nameWithType: Attribute.GetCustomAttribute(Assembly, Type) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(Assembly, Type, Boolean) - nameWithType: Attribute.GetCustomAttribute(Assembly, Type, Boolean) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Assembly,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(MemberInfo, Type) - nameWithType: Attribute.GetCustomAttribute(MemberInfo, Type) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(MemberInfo, Type, Boolean) - nameWithType: Attribute.GetCustomAttribute(MemberInfo, Type, Boolean) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(Module, Type) - nameWithType: Attribute.GetCustomAttribute(Module, Type) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(Module, Type, Boolean) - nameWithType: Attribute.GetCustomAttribute(Module, Type, Boolean) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.Module,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(ParameterInfo, Type) - nameWithType: Attribute.GetCustomAttribute(ParameterInfo, Type) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttribute(ParameterInfo, Type, Boolean) - nameWithType: Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean) - fullName: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo,System.Type,System.Boolean) - name: GetCustomAttribute - nameWithType: Attribute.GetCustomAttribute - fullName: System.Attribute.GetCustomAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Assembly) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Assembly) - nameWithType: Attribute.GetCustomAttributes(Assembly) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Assembly) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Assembly, Boolean) - nameWithType: Attribute.GetCustomAttributes(Assembly, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Assembly, Type) - nameWithType: Attribute.GetCustomAttributes(Assembly, Type) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Assembly, Type, Boolean) - nameWithType: Attribute.GetCustomAttributes(Assembly, Type, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Assembly,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(MemberInfo) - nameWithType: Attribute.GetCustomAttributes(MemberInfo) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(MemberInfo, Boolean) - nameWithType: Attribute.GetCustomAttributes(MemberInfo, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(MemberInfo, Type) - nameWithType: Attribute.GetCustomAttributes(MemberInfo, Type) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(MemberInfo, Type, Boolean) - nameWithType: Attribute.GetCustomAttributes(MemberInfo, Type, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Module) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Module) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Module) - nameWithType: Attribute.GetCustomAttributes(Module) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Module) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Module, Boolean) - nameWithType: Attribute.GetCustomAttributes(Module, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Module, Type) - nameWithType: Attribute.GetCustomAttributes(Module, Type) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(Module, Type, Boolean) - nameWithType: Attribute.GetCustomAttributes(Module, Type, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.Module,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(ParameterInfo) - nameWithType: Attribute.GetCustomAttributes(ParameterInfo) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(ParameterInfo, Boolean) - nameWithType: Attribute.GetCustomAttributes(ParameterInfo, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(ParameterInfo, Type) - nameWithType: Attribute.GetCustomAttributes(ParameterInfo, Type) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type,System.Boolean) - commentId: M:System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: GetCustomAttributes(ParameterInfo, Type, Boolean) - nameWithType: Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean) - fullName: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo,System.Type,System.Boolean) - name: GetCustomAttributes - nameWithType: Attribute.GetCustomAttributes - fullName: System.Attribute.GetCustomAttributes - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.GetHashCode - commentId: M:System.Attribute.GetHashCode - parent: System.Attribute - isExternal: true - name: GetHashCode() - nameWithType: Attribute.GetHashCode() - fullName: System.Attribute.GetHashCode() - spec.csharp: - - uid: System.Attribute.GetHashCode - name: GetHashCode - nameWithType: Attribute.GetHashCode - fullName: System.Attribute.GetHashCode - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.GetHashCode - name: GetHashCode - nameWithType: Attribute.GetHashCode - fullName: System.Attribute.GetHashCode - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefaultAttribute - commentId: M:System.Attribute.IsDefaultAttribute - parent: System.Attribute - isExternal: true - name: IsDefaultAttribute() - nameWithType: Attribute.IsDefaultAttribute() - fullName: System.Attribute.IsDefaultAttribute() - spec.csharp: - - uid: System.Attribute.IsDefaultAttribute - name: IsDefaultAttribute - nameWithType: Attribute.IsDefaultAttribute - fullName: System.Attribute.IsDefaultAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefaultAttribute - name: IsDefaultAttribute - nameWithType: Attribute.IsDefaultAttribute - fullName: System.Attribute.IsDefaultAttribute - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.Assembly,System.Type) - commentId: M:System.Attribute.IsDefined(System.Reflection.Assembly,System.Type) - parent: System.Attribute - isExternal: true - name: IsDefined(Assembly, Type) - nameWithType: Attribute.IsDefined(Assembly, Type) - fullName: System.Attribute.IsDefined(System.Reflection.Assembly, System.Type) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.Assembly,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.Assembly,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.Assembly,System.Type,System.Boolean) - commentId: M:System.Attribute.IsDefined(System.Reflection.Assembly,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: IsDefined(Assembly, Type, Boolean) - nameWithType: Attribute.IsDefined(Assembly, Type, Boolean) - fullName: System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.Assembly,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.Assembly,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Assembly - name: Assembly - nameWithType: Assembly - fullName: System.Reflection.Assembly - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type) - commentId: M:System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type) - parent: System.Attribute - isExternal: true - name: IsDefined(MemberInfo, Type) - nameWithType: Attribute.IsDefined(MemberInfo, Type) - fullName: System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type,System.Boolean) - commentId: M:System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: IsDefined(MemberInfo, Type, Boolean) - nameWithType: Attribute.IsDefined(MemberInfo, Type, Boolean) - fullName: System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.MemberInfo,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.MemberInfo - name: MemberInfo - nameWithType: MemberInfo - fullName: System.Reflection.MemberInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.Module,System.Type) - commentId: M:System.Attribute.IsDefined(System.Reflection.Module,System.Type) - parent: System.Attribute - isExternal: true - name: IsDefined(Module, Type) - nameWithType: Attribute.IsDefined(Module, Type) - fullName: System.Attribute.IsDefined(System.Reflection.Module, System.Type) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.Module,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.Module,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.Module,System.Type,System.Boolean) - commentId: M:System.Attribute.IsDefined(System.Reflection.Module,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: IsDefined(Module, Type, Boolean) - nameWithType: Attribute.IsDefined(Module, Type, Boolean) - fullName: System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.Module,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.Module,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.Module - name: Module - nameWithType: Module - fullName: System.Reflection.Module - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type) - commentId: M:System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type) - parent: System.Attribute - isExternal: true - name: IsDefined(ParameterInfo, Type) - nameWithType: Attribute.IsDefined(ParameterInfo, Type) - fullName: System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type,System.Boolean) - commentId: M:System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type,System.Boolean) - parent: System.Attribute - isExternal: true - name: IsDefined(ParameterInfo, Type, Boolean) - nameWithType: Attribute.IsDefined(ParameterInfo, Type, Boolean) - fullName: System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean) - spec.csharp: - - uid: System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.IsDefined(System.Reflection.ParameterInfo,System.Type,System.Boolean) - name: IsDefined - nameWithType: Attribute.IsDefined - fullName: System.Attribute.IsDefined - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Reflection.ParameterInfo - name: ParameterInfo - nameWithType: ParameterInfo - fullName: System.Reflection.ParameterInfo - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Type - name: Type - nameWithType: Type - fullName: System.Type - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Boolean - name: Boolean - nameWithType: Boolean - fullName: System.Boolean - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.Match(System.Object) - commentId: M:System.Attribute.Match(System.Object) - parent: System.Attribute - isExternal: true - name: Match(Object) - nameWithType: Attribute.Match(Object) - fullName: System.Attribute.Match(System.Object) - spec.csharp: - - uid: System.Attribute.Match(System.Object) - name: Match - nameWithType: Attribute.Match - fullName: System.Attribute.Match - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Attribute.Match(System.Object) - name: Match - nameWithType: Attribute.Match - fullName: System.Attribute.Match - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Attribute.TypeId - commentId: P:System.Attribute.TypeId - parent: System.Attribute - isExternal: true - name: TypeId - nameWithType: Attribute.TypeId - fullName: System.Attribute.TypeId -- uid: System.Object.Equals(System.Object,System.Object) - commentId: M:System.Object.Equals(System.Object,System.Object) - parent: System.Object - isExternal: true - name: Equals(Object, Object) - nameWithType: Object.Equals(Object, Object) - fullName: System.Object.Equals(System.Object, System.Object) - spec.csharp: - - uid: System.Object.Equals(System.Object,System.Object) - name: Equals - nameWithType: Object.Equals - fullName: System.Object.Equals - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Object.Equals(System.Object,System.Object) - name: Equals - nameWithType: Object.Equals - fullName: System.Object.Equals - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Object.GetType - commentId: M:System.Object.GetType - parent: System.Object - isExternal: true - name: GetType() - nameWithType: Object.GetType() - fullName: System.Object.GetType() - spec.csharp: - - uid: System.Object.GetType - name: GetType - nameWithType: Object.GetType - fullName: System.Object.GetType - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Object.GetType - name: GetType - nameWithType: Object.GetType - fullName: System.Object.GetType - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Object.MemberwiseClone - commentId: M:System.Object.MemberwiseClone - parent: System.Object - isExternal: true - name: MemberwiseClone() - nameWithType: Object.MemberwiseClone() - fullName: System.Object.MemberwiseClone() - spec.csharp: - - uid: System.Object.MemberwiseClone - name: MemberwiseClone - nameWithType: Object.MemberwiseClone - fullName: System.Object.MemberwiseClone - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Object.MemberwiseClone - name: MemberwiseClone - nameWithType: Object.MemberwiseClone - fullName: System.Object.MemberwiseClone - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Object.ReferenceEquals(System.Object,System.Object) - commentId: M:System.Object.ReferenceEquals(System.Object,System.Object) - parent: System.Object - isExternal: true - name: ReferenceEquals(Object, Object) - nameWithType: Object.ReferenceEquals(Object, Object) - fullName: System.Object.ReferenceEquals(System.Object, System.Object) - spec.csharp: - - uid: System.Object.ReferenceEquals(System.Object,System.Object) - name: ReferenceEquals - nameWithType: Object.ReferenceEquals - fullName: System.Object.ReferenceEquals - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Object.ReferenceEquals(System.Object,System.Object) - name: ReferenceEquals - nameWithType: Object.ReferenceEquals - fullName: System.Object.ReferenceEquals - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ', ' - nameWithType: ', ' - fullName: ', ' - - uid: System.Object - name: Object - nameWithType: Object - fullName: System.Object - isExternal: true - - name: ) - nameWithType: ) - fullName: ) -- uid: System.Object.ToString - commentId: M:System.Object.ToString - parent: System.Object - isExternal: true - name: ToString() - nameWithType: Object.ToString() - fullName: System.Object.ToString() - spec.csharp: - - uid: System.Object.ToString - name: ToString - nameWithType: Object.ToString - fullName: System.Object.ToString - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) - spec.vb: - - uid: System.Object.ToString - name: ToString - nameWithType: Object.ToString - fullName: System.Object.ToString - isExternal: true - - name: ( - nameWithType: ( - fullName: ( - - name: ) - nameWithType: ) - fullName: ) -- uid: System - commentId: N:System - isExternal: true - name: System - nameWithType: System - fullName: System -- uid: MongoDB.Entities.NameAttribute.#ctor* - commentId: Overload:MongoDB.Entities.NameAttribute.#ctor - name: NameAttribute - nameWithType: NameAttribute.NameAttribute - fullName: MongoDB.Entities.NameAttribute.NameAttribute -- uid: System.String - commentId: T:System.String - parent: System - isExternal: true - name: String - nameWithType: String - fullName: System.String diff --git a/Documentation/api/MongoDB.Entities.ObjectIdAttribute.yml b/Documentation/api/MongoDB.Entities.ObjectIdAttribute.yml index 66865c374..6c2806e64 100644 --- a/Documentation/api/MongoDB.Entities.ObjectIdAttribute.yml +++ b/Documentation/api/MongoDB.Entities.ObjectIdAttribute.yml @@ -16,7 +16,7 @@ items: source: id: ObjectIdAttribute path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 83 + startLine: 75 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -120,7 +120,7 @@ items: source: id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 86 + startLine: 78 assemblies: - MongoDB.Entities namespace: MongoDB.Entities diff --git a/Documentation/api/MongoDB.Entities.One-1.yml b/Documentation/api/MongoDB.Entities.One-1.yml index 033dc3080..0adc565d5 100644 --- a/Documentation/api/MongoDB.Entities.One-1.yml +++ b/Documentation/api/MongoDB.Entities.One-1.yml @@ -6,9 +6,9 @@ items: parent: MongoDB.Entities children: - MongoDB.Entities.One`1.#ctor + - MongoDB.Entities.One`1.#ctor(`0) + - MongoDB.Entities.One`1.#ctor(System.String) - MongoDB.Entities.One`1.ID - - MongoDB.Entities.One`1.op_Implicit(`0)~MongoDB.Entities.One{`0} - - MongoDB.Entities.One`1.op_Implicit(System.String)~MongoDB.Entities.One{`0} - MongoDB.Entities.One`1.ToEntityAsync(MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) - 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.ToEntityAsync(System.Linq.Expressions.Expression{System.Func{`0,`0}},MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) @@ -129,84 +129,74 @@ items: modifiers.vb: - Public fullName.vb: MongoDB.Entities.One(Of T).One() -- uid: MongoDB.Entities.One`1.op_Implicit(System.String)~MongoDB.Entities.One{`0} - commentId: M:MongoDB.Entities.One`1.op_Implicit(System.String)~MongoDB.Entities.One{`0} - id: op_Implicit(System.String)~MongoDB.Entities.One{`0} +- uid: MongoDB.Entities.One`1.#ctor(`0) + commentId: M:MongoDB.Entities.One`1.#ctor(`0) + id: '#ctor(`0)' parent: MongoDB.Entities.One`1 langs: - csharp - vb - name: Implicit(String to One) - nameWithType: One.Implicit(String to One) - fullName: MongoDB.Entities.One.Implicit(System.String to MongoDB.Entities.One) - type: Operator + name: One(T) + nameWithType: One.One(T) + fullName: MongoDB.Entities.One.One(T) + type: Constructor source: - id: op_Implicit + id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Relationships\One.cs - startLine: 38 + startLine: 28 assemblies: - MongoDB.Entities namespace: MongoDB.Entities - summary: "\nOperator for returning a new One<T> object from a string ID\n" + summary: "\nInitializes a reference to an entity in MongoDB.\n" example: [] syntax: - content: public static implicit operator One(string id) + content: public One(T entity) parameters: - - id: id - type: System.String - description: The ID to create a new One<T> with - return: - type: MongoDB.Entities.One{{T}} - content.vb: Public Shared Widening Operator CType(id As String) As One(Of T) - overload: MongoDB.Entities.One`1.op_Implicit* - nameWithType.vb: One(Of T).Widening(String to One(Of T)) + - id: entity + type: '{T}' + description: The actual entity this reference represents. + content.vb: Public Sub New(entity As T) + overload: MongoDB.Entities.One`1.#ctor* + nameWithType.vb: One(Of T).One(T) modifiers.csharp: - public - - static modifiers.vb: - Public - - Shared - fullName.vb: MongoDB.Entities.One(Of T).Widening(System.String to MongoDB.Entities.One(Of T)) - name.vb: Widening(String to One(Of T)) -- uid: MongoDB.Entities.One`1.op_Implicit(`0)~MongoDB.Entities.One{`0} - commentId: M:MongoDB.Entities.One`1.op_Implicit(`0)~MongoDB.Entities.One{`0} - id: op_Implicit(`0)~MongoDB.Entities.One{`0} + fullName.vb: MongoDB.Entities.One(Of T).One(T) +- uid: MongoDB.Entities.One`1.#ctor(System.String) + commentId: M:MongoDB.Entities.One`1.#ctor(System.String) + id: '#ctor(System.String)' parent: MongoDB.Entities.One`1 langs: - csharp - vb - name: Implicit(T to One) - nameWithType: One.Implicit(T to One) - fullName: MongoDB.Entities.One.Implicit(T to MongoDB.Entities.One) - type: Operator + name: One(String) + nameWithType: One.One(String) + fullName: MongoDB.Entities.One.One(System.String) + type: Constructor source: - id: op_Implicit + id: .ctor path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Relationships\One.cs - startLine: 47 + startLine: 38 assemblies: - MongoDB.Entities namespace: MongoDB.Entities - summary: "\nOperator for returning a new One<T> object from an entity\n" + summary: "\nInitializes a reference to an entity in MongoDB.\n" example: [] syntax: - content: public static implicit operator One(T entity) + content: public One(string id) parameters: - - id: entity - type: '{T}' - description: The entity to make a reference to - return: - type: MongoDB.Entities.One{{T}} - content.vb: Public Shared Widening Operator CType(entity As T) As One(Of T) - overload: MongoDB.Entities.One`1.op_Implicit* - nameWithType.vb: One(Of T).Widening(T to One(Of T)) + - id: id + type: System.String + description: the ID of the referenced entity + content.vb: Public Sub New(id As String) + overload: MongoDB.Entities.One`1.#ctor* + nameWithType.vb: One(Of T).One(String) modifiers.csharp: - public - - static modifiers.vb: - Public - - Shared - fullName.vb: MongoDB.Entities.One(Of T).Widening(T to MongoDB.Entities.One(Of T)) - name.vb: Widening(T to One(Of T)) + fullName.vb: MongoDB.Entities.One(Of T).One(System.String) - uid: MongoDB.Entities.One`1.ToEntityAsync(MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) commentId: M:MongoDB.Entities.One`1.ToEntityAsync(MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) id: ToEntityAsync(MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) @@ -221,7 +211,7 @@ items: source: id: ToEntityAsync path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Relationships\One.cs - startLine: 58 + startLine: 46 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -261,7 +251,7 @@ items: source: id: ToEntityAsync path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Relationships\One.cs - startLine: 70 + startLine: 58 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -306,7 +296,7 @@ items: source: id: ToEntityAsync path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Relationships\One.cs - startLine: 86 + startLine: 74 assemblies: - MongoDB.Entities namespace: MongoDB.Entities @@ -656,88 +646,6 @@ references: fullName: MongoDB.Entities.One.One nameWithType.vb: One(Of T).One fullName.vb: MongoDB.Entities.One(Of T).One -- uid: MongoDB.Entities.One`1.op_Implicit* - commentId: Overload:MongoDB.Entities.One`1.op_Implicit - name: Implicit - nameWithType: One.Implicit - fullName: MongoDB.Entities.One.Implicit - nameWithType.vb: One(Of T).Widening - fullName.vb: MongoDB.Entities.One(Of T).Widening - name.vb: Widening -- uid: MongoDB.Entities.One{{T}} - commentId: T:MongoDB.Entities.One{``0} - parent: MongoDB.Entities - definition: MongoDB.Entities.One`1 - name: One - nameWithType: One - fullName: MongoDB.Entities.One - nameWithType.vb: One(Of T) - fullName.vb: MongoDB.Entities.One(Of T) - name.vb: One(Of T) - spec.csharp: - - uid: MongoDB.Entities.One`1 - name: One - nameWithType: One - fullName: MongoDB.Entities.One - - name: < - nameWithType: < - fullName: < - - name: T - nameWithType: T - fullName: T - - name: '>' - nameWithType: '>' - fullName: '>' - spec.vb: - - uid: MongoDB.Entities.One`1 - name: One - nameWithType: One - fullName: MongoDB.Entities.One - - name: '(Of ' - nameWithType: '(Of ' - fullName: '(Of ' - - name: T - nameWithType: T - fullName: T - - name: ) - nameWithType: ) - fullName: ) -- uid: MongoDB.Entities.One`1 - commentId: T:MongoDB.Entities.One`1 - name: One - nameWithType: One - fullName: MongoDB.Entities.One - nameWithType.vb: One(Of T) - fullName.vb: MongoDB.Entities.One(Of T) - name.vb: One(Of T) - spec.csharp: - - uid: MongoDB.Entities.One`1 - name: One - nameWithType: One - fullName: MongoDB.Entities.One - - name: < - nameWithType: < - fullName: < - - name: T - nameWithType: T - fullName: T - - name: '>' - nameWithType: '>' - fullName: '>' - spec.vb: - - uid: MongoDB.Entities.One`1 - name: One - nameWithType: One - fullName: MongoDB.Entities.One - - name: '(Of ' - nameWithType: '(Of ' - fullName: '(Of ' - - name: T - nameWithType: T - fullName: T - - name: ) - nameWithType: ) - fullName: ) - uid: '{T}' commentId: '!:T' definition: T diff --git a/Documentation/api/MongoDB.Entities.PreserveAttribute.yml b/Documentation/api/MongoDB.Entities.PreserveAttribute.yml index ca42c767f..054dd6cf3 100644 --- a/Documentation/api/MongoDB.Entities.PreserveAttribute.yml +++ b/Documentation/api/MongoDB.Entities.PreserveAttribute.yml @@ -15,7 +15,7 @@ items: source: id: PreserveAttribute path: D:\SOURCE-CONTROL\MongoDB.Entities\Documentation\src\Core\Attributes.cs - startLine: 70 + startLine: 62 assemblies: - MongoDB.Entities namespace: MongoDB.Entities diff --git a/Documentation/api/MongoDB.Entities.yml b/Documentation/api/MongoDB.Entities.yml index 175e03b44..daf26e0c8 100644 --- a/Documentation/api/MongoDB.Entities.yml +++ b/Documentation/api/MongoDB.Entities.yml @@ -38,7 +38,6 @@ items: - MongoDB.Entities.ManyBase - MongoDB.Entities.Migration - MongoDB.Entities.ModifiedBy - - MongoDB.Entities.NameAttribute - MongoDB.Entities.ObjectIdAttribute - MongoDB.Entities.One`1 - MongoDB.Entities.Order @@ -555,11 +554,6 @@ references: name: InverseSideAttribute nameWithType: InverseSideAttribute fullName: MongoDB.Entities.InverseSideAttribute -- uid: MongoDB.Entities.NameAttribute - commentId: T:MongoDB.Entities.NameAttribute - name: NameAttribute - nameWithType: NameAttribute - fullName: MongoDB.Entities.NameAttribute - uid: MongoDB.Entities.CollectionAttribute commentId: T:MongoDB.Entities.CollectionAttribute parent: MongoDB.Entities diff --git a/Documentation/api/toc.yml b/Documentation/api/toc.yml index afbb077d9..ef7c914ae 100644 --- a/Documentation/api/toc.yml +++ b/Documentation/api/toc.yml @@ -77,8 +77,6 @@ name: Migration - uid: MongoDB.Entities.ModifiedBy name: ModifiedBy - - uid: MongoDB.Entities.NameAttribute - name: NameAttribute - uid: MongoDB.Entities.ObjectIdAttribute name: ObjectIdAttribute - uid: MongoDB.Entities.One`1 diff --git a/Documentation/index.md b/Documentation/index.md index fb1fefb3e..e2b45bbdf 100644 --- a/Documentation/index.md +++ b/Documentation/index.md @@ -26,7 +26,7 @@ A light-weight .net standard library with [barely any overhead](wiki/Performance - GeoSpatial search. - Global filters. - Stream files in chunks to and from mongodb (GridFS alternative). -- Project types supported: .Net Standard 2.0 (.Net Core 2.0 & .Net Framework 4.6.1 or higher) +- Project types supported: .Net Standard 2.1 (.Net Core 3.0 onwards only). --- diff --git a/Documentation/wiki/Extras-Date.md b/Documentation/wiki/Extras-Date.md index c64fc5398..8b8c50e07 100644 --- a/Documentation/wiki/Extras-Date.md +++ b/Documentation/wiki/Extras-Date.md @@ -3,7 +3,7 @@ there's a special `Date` type you can use to store date/time values in mongodb i - preserves date/time precision - can query using ticks - can extend it by inheriting -- implicitly assignable to and from _System.DateTime_ + ## Examples ```csharp // define the entity @@ -29,12 +29,6 @@ there's a special `Date` type you can use to store date/time values in mongodb i .Match(b => b.PublishedOn.DateTime < DateTime.UtcNow) .ExecuteFirstAsync(); -// assign to 'DateTime' from 'Date' - DateTime dt = book.PublishedOn; - -// assign from 'DateTime' to 'Date' - Date date = dt; - // set/change value with 'Ticks' date.Ticks = DateTime.UtcNow.Ticks; diff --git a/Documentation/wiki/Relationships-Referenced.md b/Documentation/wiki/Relationships-Referenced.md index 1f137abf4..1feae17f2 100644 --- a/Documentation/wiki/Relationships-Referenced.md +++ b/Documentation/wiki/Relationships-Referenced.md @@ -37,12 +37,12 @@ also note that you specify which side of the relationship a property is using th ## One-to-one -a reference can be assigned in any of the following three ways: +a reference can be assigned in any of the following two ways: ```csharp book.MainAuthor = author.ToReference(); //call ToReference on a child -book.MainAuthor = author; //assign a child instance -book.MainAuthor = "AuthorID"; //assign just the ID value of a child +book.MainAuthor = new(author); //assign a child instance +book.MainAuthor = new("AuthorID"); //assign just the ID value of a child await book.SaveAsync(); //call save on parent to store ``` diff --git a/MongoDB.Entities/Core/Attributes.cs b/MongoDB.Entities/Core/Attributes.cs index d787e5017..311acbba0 100644 --- a/MongoDB.Entities/Core/Attributes.cs +++ b/MongoDB.Entities/Core/Attributes.cs @@ -41,14 +41,6 @@ public class OwnerSideAttribute : Attribute { } [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] public class InverseSideAttribute : Attribute { } -//todo: remove this attribute in the next major version jump -[Obsolete("Please use the [Collection(\"...\")] attribute instead")] -[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] -public class NameAttribute : CollectionAttribute -{ - public NameAttribute(string name) : base(name) { } -} - /// /// Specifies a custom MongoDB collection name for an entity type. /// diff --git a/MongoDB.Entities/Core/Cache.cs b/MongoDB.Entities/Core/Cache.cs index 2c754a933..5c9a38927 100644 --- a/MongoDB.Entities/Core/Cache.cs +++ b/MongoDB.Entities/Core/Cache.cs @@ -39,10 +39,7 @@ private static void Initialize() Database = TypeMap.GetDatabase(type); DBName = Database.DatabaseNamespace.DatabaseName; - var collAttrb = type.GetCustomAttribute(false) ?? -#pragma warning disable CS0618 // Type or member is obsolete - type.GetCustomAttribute(false); -#pragma warning restore CS0618 // Type or member is obsolete + var collAttrb = type.GetCustomAttribute(false); CollectionName = collAttrb != null ? collAttrb.Name : type.Name; diff --git a/MongoDB.Entities/MongoDB.Entities.csproj b/MongoDB.Entities/MongoDB.Entities.csproj index 54b214cca..467e6204f 100644 --- a/MongoDB.Entities/MongoDB.Entities.csproj +++ b/MongoDB.Entities/MongoDB.Entities.csproj @@ -2,7 +2,7 @@ - 21.0.2.7-beta + 22.0.0 netstandard2.1 MongoDB.Entities diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 6893ad96a..81adb0507 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -10,10 +10,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/changelog.md b/changelog.md index 2b120fad8..8ad94b958 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,5 @@ ### BREAKING CHANGES -- upgrade TFM to `netstandard2.1` +- upgrade TFM to `netstandard2.1` (.NET Framework is no longer supported) - enable nullable reference type support #194 - remove implicit opertators from `Date`,`FuzzyString` & `One` types due to incompatibility with LINQ3 @@ -8,5 +8,5 @@ ### IMPROVEMENTS - make watcher compatible with linq v3 engine -- upgrade mongodb driver to v2.19.2 -- add parameterless ctor to `Coordinates2D` class #201 \ No newline at end of file +- add parameterless ctor to `Coordinates2D` class #201 +- upgrade mongodb driver to v2.19.2 \ No newline at end of file diff --git a/docs/api/MongoDB.Entities.CollectionAttribute.html b/docs/api/MongoDB.Entities.CollectionAttribute.html index fb9035677..6137d1b2a 100644 --- a/docs/api/MongoDB.Entities.CollectionAttribute.html +++ b/docs/api/MongoDB.Entities.CollectionAttribute.html @@ -106,7 +106,6 @@
Inheritance
System.Object
System.Attribute
CollectionAttribute
-
Inherited Members
diff --git a/docs/api/MongoDB.Entities.Coordinates2D.html b/docs/api/MongoDB.Entities.Coordinates2D.html index 544bdb5d1..fedd706c6 100644 --- a/docs/api/MongoDB.Entities.Coordinates2D.html +++ b/docs/api/MongoDB.Entities.Coordinates2D.html @@ -140,6 +140,17 @@

Constructors

+ +

Coordinates2D()

+

Instantiate a new Coordinates2D instance with default values

+
+
+
Declaration
+
+
public Coordinates2D()
+
+ +

Coordinates2D(Double, Double)

Instantiate a new Coordinates2D instance with the supplied longtitude and latitude

diff --git a/docs/api/MongoDB.Entities.Date.html b/docs/api/MongoDB.Entities.Date.html index 5fc12ac9f..a68c2e058 100644 --- a/docs/api/MongoDB.Entities.Date.html +++ b/docs/api/MongoDB.Entities.Date.html @@ -136,91 +136,91 @@
Syntax
public class Date
-

Properties +

Constructors

- -

DateTime

+ +

Date()

A custom date/time type for precision datetime handling

Declaration
-
public DateTime DateTime { get; set; }
+
public Date()
-
Property Value
+ + + +

Date(DateTime)

+

instantiate a Date with a DateTime

+
+
+
Declaration
+
+
public Date(DateTime dateTime)
+
+
Parameters
+ - + +
TypeName Description
System.DateTimedateTime

the DateTime

+
- -

Ticks

-

A custom date/time type for precision datetime handling

+ +

Date(Int64)

+

instantiate a Date with ticks

Declaration
-
public long Ticks { get; set; }
+
public Date(long ticks)
-
Property Value
+
Parameters
+ - + +
TypeName Description
System.Int64ticks

the ticks

+
-

Operators +

Properties

- -

Implicit(Date to DateTime)

+ +

DateTime

A custom date/time type for precision datetime handling

Declaration
-
public static implicit operator DateTime(Date date)
+
public DateTime DateTime { get; set; }
-
Parameters
- - - - - - - - - - - - - - - -
TypeNameDescription
Datedate
-
Returns
+
Property Value
@@ -237,33 +237,16 @@
Returns
- -

Implicit(DateTime to Date)

+ +

Ticks

A custom date/time type for precision datetime handling

Declaration
-
public static implicit operator Date(DateTime datetime)
+
public long Ticks { get; set; }
-
Parameters
- - - - - - - - - - - - - - - -
TypeNameDescription
System.DateTimedatetime
-
Returns
+
Property Value
@@ -273,7 +256,7 @@
Returns
- + diff --git a/docs/api/MongoDB.Entities.Extensions.html b/docs/api/MongoDB.Entities.Extensions.html index 61bf13ade..94e11fad3 100644 --- a/docs/api/MongoDB.Entities.Extensions.html +++ b/docs/api/MongoDB.Entities.Extensions.html @@ -2503,6 +2503,94 @@
Type Parameters
DateSystem.Int64
+ +

ToDate(DateTime)

+

converts a System.DateTime instance to a Date instance.

+
+
+
Declaration
+
+
public static Date ToDate(this DateTime dateTime)
+
+
Parameters
+ + + + + + + + + + + + + + + +
TypeNameDescription
System.DateTimedateTime

the System.DateTime instance to convert

+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
Date
+ + + +

ToDate(Int64)

+

converts ticks to a Date instance.

+
+
+
Declaration
+
+
public static Date ToDate(this long ticks)
+
+
Parameters
+ + + + + + + + + + + + + + + +
TypeNameDescription
System.Int64ticks

the ticks to convert

+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
Date
+ +

ToDocument<T>(T)

Creates an unlinked duplicate of the original IEntity ready for embedding with a blank ID.

@@ -2724,6 +2812,50 @@
Returns
+ +

ToFuzzy(String)

+

converts a string value to a FuzzyString

+
+
+
Declaration
+
+
public static FuzzyString ToFuzzy(this string value)
+
+
Parameters
+ + + + + + + + + + + + + + + +
TypeNameDescription
System.Stringvalue

the string to convert

+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
FuzzyString
+ +

ToReference<T>(T)

Returns a reference to this entity.

diff --git a/docs/api/MongoDB.Entities.FuzzyString.html b/docs/api/MongoDB.Entities.FuzzyString.html index 7bb905300..47a0703d5 100644 --- a/docs/api/MongoDB.Entities.FuzzyString.html +++ b/docs/api/MongoDB.Entities.FuzzyString.html @@ -140,12 +140,12 @@
Syntax
public class FuzzyString
-

Properties +

Constructors

- -

CharacterLimit

+ +

FuzzyString()

Use this type to store strings if you need fuzzy text searching with MongoDB

TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. @@ -155,59 +155,43 @@

Declaration
-
public static int CharacterLimit { get; set; }
+
public FuzzyString()
-
Property Value
- - - - - - - - - - - - - -
TypeDescription
System.Int32
- -

Value

-

Use this type to store strings if you need fuzzy text searching with MongoDB

-

TIP: There's a default limit of 250 characters for ensuring best performance. -If you exceed the default limit, an exception will be thrown. -You can increase the limit by sacrificing performance/resource utilization by setting the static property -FuzzyString.CharacterLimit = 500 at startup.

+ +

FuzzyString(String)

+

instantiate a FuzzyString object with a given string

Declaration
-
public string Value { get; set; }
+
public FuzzyString(string value)
-
Property Value
+
Parameters
+ - + +
TypeName Description
System.Stringvalue

the string value to create the FuzzyString with

+
-

Operators +

Properties

- -

Implicit(FuzzyString to String)

+ +

CharacterLimit

Use this type to store strings if you need fuzzy text searching with MongoDB

TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. @@ -217,26 +201,9 @@

Declaration
-
public static implicit operator string (FuzzyString fuzzyString)
+
public static int CharacterLimit { get; set; }
-
Parameters
- - - - - - - - - - - - - - - -
TypeNameDescription
FuzzyStringfuzzyString
-
Returns
+
Property Value
@@ -246,15 +213,15 @@
Returns
- +
System.StringSystem.Int32
- -

Implicit(String to FuzzyString)

+ +

Value

Use this type to store strings if you need fuzzy text searching with MongoDB

TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. @@ -264,36 +231,19 @@

Declaration
-
public static implicit operator FuzzyString(string value)
+
public string Value { get; set; }
-
Parameters
+
Property Value
- - - - - -
TypeName Description
System.Stringvalue
-
Returns
- - - - - - - - - - diff --git a/docs/api/MongoDB.Entities.One-1.html b/docs/api/MongoDB.Entities.One-1.html index f5d59288a..b1813111f 100644 --- a/docs/api/MongoDB.Entities.One-1.html +++ b/docs/api/MongoDB.Entities.One-1.html @@ -166,6 +166,64 @@
Declaration
public One()
+ + + +

One(T)

+

Initializes a reference to an entity in MongoDB.

+
+
+
Declaration
+
+
public One(T entity)
+
+
Parameters
+
TypeDescription
FuzzyString
+ + + + + + + + + + + + + + +
TypeNameDescription
Tentity

The actual entity this reference represents.

+
+ + + +

One(String)

+

Initializes a reference to an entity in MongoDB.

+
+
+
Declaration
+
+
public One(string id)
+
+
Parameters
+ + + + + + + + + + + + + + + +
TypeNameDescription
System.Stringid

the ID of the referenced entity

+

Properties

@@ -362,96 +420,6 @@
Returns
-

Operators -

- - - -

Implicit(T to One<T>)

-

Operator for returning a new One<T> object from an entity

-
-
-
Declaration
-
-
public static implicit operator One<T>(T entity)
-
-
Parameters
- - - - - - - - - - - - - - - -
TypeNameDescription
Tentity

The entity to make a reference to

-
-
Returns
- - - - - - - - - - - - - -
TypeDescription
One<T>
- - - -

Implicit(String to One<T>)

-

Operator for returning a new One<T> object from a string ID

-
-
-
Declaration
-
-
public static implicit operator One<T>(string id)
-
-
Parameters
- - - - - - - - - - - - - - - -
TypeNameDescription
System.Stringid

The ID to create a new One<T> with

-
-
Returns
- - - - - - - - - - - - - -
TypeDescription
One<T>
diff --git a/docs/api/MongoDB.Entities.html b/docs/api/MongoDB.Entities.html index c7ae8d984..b61cb29c3 100644 --- a/docs/api/MongoDB.Entities.html +++ b/docs/api/MongoDB.Entities.html @@ -196,8 +196,6 @@

Migration

ModifiedBy

-

NameAttribute

-

ObjectIdAttribute

Use this attribute to mark a property in order to save it in MongoDB server as ObjectId

diff --git a/docs/api/toc.html b/docs/api/toc.html index 7b5d10ef5..f4db6885b 100644 --- a/docs/api/toc.html +++ b/docs/api/toc.html @@ -119,9 +119,6 @@
  • ModifiedBy
  • -
  • - NameAttribute -
  • ObjectIdAttribute
  • diff --git a/docs/index.html b/docs/index.html index ee56d0115..a7dde7848 100644 --- a/docs/index.html +++ b/docs/index.html @@ -109,7 +109,7 @@

    Why use it?

  • GeoSpatial search.
  • Global filters.
  • Stream files in chunks to and from mongodb (GridFS alternative).
  • -
  • Project types supported: .Net Standard 2.0 (.Net Core 2.0 & .Net Framework 4.6.1 or higher)
  • +
  • Project types supported: .Net Standard 2.1 (.Net Core 3.0 onwards only).

  • diff --git a/docs/index.json b/docs/index.json index 6c71b2f45..16fffeefa 100644 --- a/docs/index.json +++ b/docs/index.json @@ -17,12 +17,12 @@ "api/MongoDB.Entities.CollectionAttribute.html": { "href": "api/MongoDB.Entities.CollectionAttribute.html", "title": "Class CollectionAttribute | MongoDB.Entities", - "keywords": "Class CollectionAttribute Specifies a custom MongoDB collection name for an entity type. Inheritance System.Object System.Attribute CollectionAttribute NameAttribute Inherited Members System.Attribute.Equals(System.Object) System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Assembly) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Module) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.GetHashCode() System.Attribute.IsDefaultAttribute() System.Attribute.IsDefined(System.Reflection.Assembly, System.Type) System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type) System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.Module, System.Type) System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type) System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.Match(System.Object) System.Attribute.TypeId System.Object.Equals(System.Object, System.Object) System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class CollectionAttribute : Attribute Constructors CollectionAttribute(String) Specifies a custom MongoDB collection name for an entity type. Declaration public CollectionAttribute(string name) Parameters Type Name Description System.String name Properties Name Specifies a custom MongoDB collection name for an entity type. Declaration public string Name { get; } Property Value Type Description System.String" + "keywords": "Class CollectionAttribute Specifies a custom MongoDB collection name for an entity type. Inheritance System.Object System.Attribute CollectionAttribute Inherited Members System.Attribute.Equals(System.Object) System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Assembly) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Module) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.GetHashCode() System.Attribute.IsDefaultAttribute() System.Attribute.IsDefined(System.Reflection.Assembly, System.Type) System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type) System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.Module, System.Type) System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type) System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.Match(System.Object) System.Attribute.TypeId System.Object.Equals(System.Object, System.Object) System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class CollectionAttribute : Attribute Constructors CollectionAttribute(String) Specifies a custom MongoDB collection name for an entity type. Declaration public CollectionAttribute(string name) Parameters Type Name Description System.String name Properties Name Specifies a custom MongoDB collection name for an entity type. Declaration public string Name { get; } Property Value Type Description System.String" }, "api/MongoDB.Entities.Coordinates2D.html": { "href": "api/MongoDB.Entities.Coordinates2D.html", "title": "Class Coordinates2D | MongoDB.Entities", - "keywords": "Class Coordinates2D Represents a 2D geographical coordinate consisting of longitude and latitude Inheritance System.Object Coordinates2D Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class Coordinates2D Constructors Coordinates2D(Double, Double) Instantiate a new Coordinates2D instance with the supplied longtitude and latitude Declaration public Coordinates2D(double longitude, double latitude) Parameters Type Name Description System.Double longitude System.Double latitude Properties Coordinates Represents a 2D geographical coordinate consisting of longitude and latitude Declaration [BsonElement(\"coordinates\")] public double[] Coordinates { get; set; } Property Value Type Description System.Double [] Type Represents a 2D geographical coordinate consisting of longitude and latitude Declaration [BsonElement(\"type\")] public string Type { get; set; } Property Value Type Description System.String Methods GeoJsonPoint(Double, Double) Create a GeoJsonPoint of GeoJson2DGeographicCoordinates with supplied longitude and latitude Declaration public static GeoJsonPoint GeoJsonPoint(double longitude, double latitude) Parameters Type Name Description System.Double longitude System.Double latitude Returns Type Description MongoDB.Driver.GeoJsonObjectModel.GeoJsonPoint < MongoDB.Driver.GeoJsonObjectModel.GeoJson2DGeographicCoordinates > ToGeoJsonPoint() Converts a Coordinates2D instance to a GeoJsonPoint of GeoJson2DGeographicCoordinates Declaration public GeoJsonPoint ToGeoJsonPoint() Returns Type Description MongoDB.Driver.GeoJsonObjectModel.GeoJsonPoint < MongoDB.Driver.GeoJsonObjectModel.GeoJson2DGeographicCoordinates >" + "keywords": "Class Coordinates2D Represents a 2D geographical coordinate consisting of longitude and latitude Inheritance System.Object Coordinates2D Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class Coordinates2D Constructors Coordinates2D() Instantiate a new Coordinates2D instance with default values Declaration public Coordinates2D() Coordinates2D(Double, Double) Instantiate a new Coordinates2D instance with the supplied longtitude and latitude Declaration public Coordinates2D(double longitude, double latitude) Parameters Type Name Description System.Double longitude System.Double latitude Properties Coordinates Represents a 2D geographical coordinate consisting of longitude and latitude Declaration [BsonElement(\"coordinates\")] public double[] Coordinates { get; set; } Property Value Type Description System.Double [] Type Represents a 2D geographical coordinate consisting of longitude and latitude Declaration [BsonElement(\"type\")] public string Type { get; set; } Property Value Type Description System.String Methods GeoJsonPoint(Double, Double) Create a GeoJsonPoint of GeoJson2DGeographicCoordinates with supplied longitude and latitude Declaration public static GeoJsonPoint GeoJsonPoint(double longitude, double latitude) Parameters Type Name Description System.Double longitude System.Double latitude Returns Type Description MongoDB.Driver.GeoJsonObjectModel.GeoJsonPoint < MongoDB.Driver.GeoJsonObjectModel.GeoJson2DGeographicCoordinates > ToGeoJsonPoint() Converts a Coordinates2D instance to a GeoJsonPoint of GeoJson2DGeographicCoordinates Declaration public GeoJsonPoint ToGeoJsonPoint() Returns Type Description MongoDB.Driver.GeoJsonObjectModel.GeoJsonPoint < MongoDB.Driver.GeoJsonObjectModel.GeoJson2DGeographicCoordinates >" }, "api/MongoDB.Entities.DataStreamer.html": { "href": "api/MongoDB.Entities.DataStreamer.html", @@ -32,7 +32,7 @@ "api/MongoDB.Entities.Date.html": { "href": "api/MongoDB.Entities.Date.html", "title": "Class Date | MongoDB.Entities", - "keywords": "Class Date A custom date/time type for precision datetime handling Inheritance System.Object Date Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class Date Properties DateTime A custom date/time type for precision datetime handling Declaration public DateTime DateTime { get; set; } Property Value Type Description System.DateTime Ticks A custom date/time type for precision datetime handling Declaration public long Ticks { get; set; } Property Value Type Description System.Int64 Operators Implicit(Date to DateTime) A custom date/time type for precision datetime handling Declaration public static implicit operator DateTime(Date date) Parameters Type Name Description Date date Returns Type Description System.DateTime Implicit(DateTime to Date) A custom date/time type for precision datetime handling Declaration public static implicit operator Date(DateTime datetime) Parameters Type Name Description System.DateTime datetime Returns Type Description Date" + "keywords": "Class Date A custom date/time type for precision datetime handling Inheritance System.Object Date Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class Date Constructors Date() A custom date/time type for precision datetime handling Declaration public Date() Date(DateTime) instantiate a Date with a DateTime Declaration public Date(DateTime dateTime) Parameters Type Name Description System.DateTime dateTime the DateTime Date(Int64) instantiate a Date with ticks Declaration public Date(long ticks) Parameters Type Name Description System.Int64 ticks the ticks Properties DateTime A custom date/time type for precision datetime handling Declaration public DateTime DateTime { get; set; } Property Value Type Description System.DateTime Ticks A custom date/time type for precision datetime handling Declaration public long Ticks { get; set; } Property Value Type Description System.Int64" }, "api/MongoDB.Entities.DB.html": { "href": "api/MongoDB.Entities.DB.html", @@ -67,7 +67,7 @@ "api/MongoDB.Entities.Extensions.html": { "href": "api/MongoDB.Entities.Extensions.html", "title": "Class Extensions | MongoDB.Entities", - "keywords": "Class Extensions Extension methods for entities Inheritance System.Object Extensions Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public static class Extensions Methods Collection(T) Gets the IMongoCollection for a given IEntity type. TIP: Try never to use this unless really neccessary. Declaration public static IMongoCollection Collection(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description MongoDB.Driver.IMongoCollection Type Parameters Name Description T Any class that implements IEntity CollectionName(T) Gets the collection name for this entity Declaration public static string CollectionName(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description System.String Type Parameters Name Description T Database(T) Gets the IMongoDatabase for the given entity type Declaration public static IMongoDatabase Database(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description MongoDB.Driver.IMongoDatabase Type Parameters Name Description T The type of entity DatabaseName(T) Gets the name of the database this entity is attached to. Returns name of default database if not specifically attached. Declaration public static string DatabaseName(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description System.String Type Parameters Name Description T DeleteAllAsync(IEnumerable, IClientSessionHandle, CancellationToken) Deletes multiple entities from the database HINT: If these entities are referenced by one-to-many/many-to-many relationships, those references are also deleted. Declaration public static Task DeleteAllAsync(this IEnumerable entities, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities MongoDB.Driver.IClientSessionHandle session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.DeleteResult > Type Parameters Name Description T DeleteAsync(T, IClientSessionHandle, CancellationToken) Deletes a single entity from MongoDB. HINT: If this entity is referenced by one-to-many/many-to-many relationships, those references are also deleted. Declaration public static Task DeleteAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity MongoDB.Driver.IClientSessionHandle session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.DeleteResult > Type Parameters Name Description T Distinct(IAggregateFluent) Adds a distinct aggregation stage to a fluent pipeline. Declaration public static IAggregateFluent Distinct(this IAggregateFluent aggregate) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T Any class that implements IEntity DropAsync(IMongoCollection) Drops a join collection Declaration public static Task DropAsync(this IMongoCollection collection) Parameters Type Name Description MongoDB.Driver.IMongoCollection < JoinRecord > collection Returns Type Description System.Threading.Tasks.Task ExistsAsync(IMongoDatabase, Int32) Checks to see if the database already exists on the mongodb server Declaration public static async Task ExistsAsync(this IMongoDatabase db, int timeoutSeconds = 5) Parameters Type Name Description MongoDB.Driver.IMongoDatabase db System.Int32 timeoutSeconds The number of seconds to keep trying Returns Type Description System.Threading.Tasks.Task < System.Boolean > Fluent(T, IClientSessionHandle, AggregateOptions) An IAggregateFluent collection of sibling Entities. Declaration public static IAggregateFluent Fluent(this T _, IClientSessionHandle session = null, AggregateOptions options = null) where T : IEntity Parameters Type Name Description T _ MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction MongoDB.Driver.AggregateOptions options The options for the aggregation. This is not required. Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T FullPath(Expression>) Returns the full dotted path of a property for the given expression Declaration public static string FullPath(this Expression> expression) Parameters Type Name Description System.Linq.Expressions.Expression < System.Func > expression Returns Type Description System.String Type Parameters Name Description T Any class that implements IEntity InitManyToMany(IEntity, Expression>>, Expression>) Initializes supplied property with a new Many-To-Many relationship. Declaration public static void InitManyToMany(this IEntity parent, Expression>> propertyToInit, Expression> propertyOtherSide) where TChild : IEntity Parameters Type Name Description IEntity parent System.Linq.Expressions.Expression < System.Func < Many >> propertyToInit () = > PropertyName System.Linq.Expressions.Expression < System.Func > propertyOtherSide x => x.PropertyName Type Parameters Name Description TChild InitOneToMany(IEntity, Expression>>) Initializes supplied property with a new One-To-Many relationship. Declaration public static void InitOneToMany(this IEntity parent, Expression>> propertyToInit) where TChild : IEntity Parameters Type Name Description IEntity parent System.Linq.Expressions.Expression < System.Func < Many >> propertyToInit () => PropertyName Type Parameters Name Description TChild InsertAsync(T, IClientSessionHandle, CancellationToken) Inserts a new entity into the colleciton. Declaration public static Task InsertAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task Type Parameters Name Description T InsertAsync(IEnumerable, IClientSessionHandle, CancellationToken) Inserts a batch of new entities into the collection. Declaration public static Task> InsertAsync(this IEnumerable entities, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T IsAccessibleAsync(IMongoDatabase, Int32) Pings the mongodb server to check if it's still connectable Declaration public static async Task IsAccessibleAsync(this IMongoDatabase db, int timeoutSeconds = 5) Parameters Type Name Description MongoDB.Driver.IMongoDatabase db System.Int32 timeoutSeconds The number of seconds to keep trying Returns Type Description System.Threading.Tasks.Task < System.Boolean > Match(IAggregateFluent, Func, FilterDefinition>) Appends a match stage to the pipeline with a filter expression Declaration public static IAggregateFluent Match(this IAggregateFluent aggregate, Func, FilterDefinition> filter) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate System.Func < MongoDB.Driver.FilterDefinitionBuilder , MongoDB.Driver.FilterDefinition > filter f => f.Eq(x => x.Prop, Value) & f.Gt(x => x.Prop, Value) Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T Any class that implements IEntity MatchExpression(IAggregateFluent, String) Appends a match stage to the pipeline with an aggregation expression (i.e. $expr) Declaration public static IAggregateFluent MatchExpression(this IAggregateFluent aggregate, string expression) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate System.String expression { $gt: ['$Property1', '$Property2'] } Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T Any class that implements IEntity NextSequentialNumberAsync(T, CancellationToken) Returns an atomically generated sequential number for the given Entity type everytime the method is called Declaration public static Task NextSequentialNumberAsync(this T _, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T _ System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < System.UInt64 > Type Parameters Name Description T PagedSearch(IAggregateFluent) Starts a paged search pipeline for this fluent pipeline Declaration public static PagedSearch PagedSearch(this IAggregateFluent aggregate) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate Returns Type Description PagedSearch Type Parameters Name Description T Any class that implements IEntity PagedSearch(IAggregateFluent) Starts a paged search pipeline for this fluent pipeline Declaration public static PagedSearch PagedSearch(this IAggregateFluent aggregate) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate Returns Type Description PagedSearch Type Parameters Name Description T Any class that implements IEntity TProjection The type of the resulting projection Queryable(T, AggregateOptions) An IQueryable collection of sibling Entities. Declaration public static IMongoQueryable Queryable(this T _, AggregateOptions options = null) where T : IEntity Parameters Type Name Description T _ MongoDB.Driver.AggregateOptions options Returns Type Description MongoDB.Driver.Linq.IMongoQueryable Type Parameters Name Description T SaveAsync(T, IClientSessionHandle, CancellationToken) Saves a complete entity replacing an existing entity or creating a new one if it does not exist. If ID value is null, a new entity is created. If ID has a value, then existing entity is replaced. Declaration public static Task SaveAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task Type Parameters Name Description T SaveAsync(IEnumerable, IClientSessionHandle, CancellationToken) Saves a batch of complete entities replacing existing ones or creating new ones if they do not exist. If ID value is null, a new entity is created. If ID has a value, then existing entity is replaced. Declaration public static Task> SaveAsync(this IEnumerable entities, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T SaveExceptAsync(T, IEnumerable, IClientSessionHandle, CancellationToken) Saves an entity partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task SaveExceptAsync(this T entity, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveExceptAsync(T, Expression>, IClientSessionHandle, CancellationToken) Saves an entity partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be excluded can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task SaveExceptAsync(this T entity, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveExceptAsync(IEnumerable, IEnumerable, IClientSessionHandle, CancellationToken) Saves a batch of entities partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task> SaveExceptAsync(this IEnumerable entities, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SaveExceptAsync(IEnumerable, Expression>, IClientSessionHandle, CancellationToken) Saves a batch of entities partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be excluded can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task> SaveExceptAsync(this IEnumerable entities, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(T, IEnumerable, IClientSessionHandle, CancellationToken) Saves an entity partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task SaveOnlyAsync(this T entity, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(T, Expression>, IClientSessionHandle, CancellationToken) Saves an entity partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task SaveOnlyAsync(this T entity, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(IEnumerable, IEnumerable, IClientSessionHandle, CancellationToken) Saves a batch of entities partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task> SaveOnlyAsync(this IEnumerable entities, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(IEnumerable, Expression>, IClientSessionHandle, CancellationToken) Saves a batch of entities partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task> SaveOnlyAsync(this IEnumerable entities, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SavePreservingAsync(T, IClientSessionHandle, CancellationToken) Saves an entity partially while excluding some properties. The properties to be excluded can be specified using the [Preserve] attribute. Declaration public static Task SavePreservingAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save MongoDB.Driver.IClientSessionHandle session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SortByRelevance(IEnumerable, String, Func, Nullable) Sort a list of objects by relevance to a given string using Levenshtein Distance Declaration public static IEnumerable SortByRelevance(this IEnumerable objects, string searchTerm, Func propertyToSortBy, int? maxDistance = null) Parameters Type Name Description System.Collections.Generic.IEnumerable objects The list of objects to sort System.String searchTerm The term to measure relevance to System.Func propertyToSortBy x => x.PropertyName [the term will be matched against the value of this property] System.Nullable < System.Int32 > maxDistance The maximum levenstein distance to qualify an item for inclusion in the returned list Returns Type Description System.Collections.Generic.IEnumerable Type Parameters Name Description T Any object type ToBatches(IEnumerable, Int32) Extension method for processing collections in batches with streaming (yield return) Declaration public static IEnumerable> ToBatches(this IEnumerable collection, int batchSize = 100) Parameters Type Name Description System.Collections.Generic.IEnumerable collection The source collection System.Int32 batchSize The size of each batch Returns Type Description System.Collections.Generic.IEnumerable < System.Collections.Generic.IEnumerable > Type Parameters Name Description T The type of the objects inside the source collection ToDocument(T) Creates an unlinked duplicate of the original IEntity ready for embedding with a blank ID. Declaration public static T ToDocument(this T entity) where T : IEntity Parameters Type Name Description T entity Returns Type Description T Type Parameters Name Description T ToDocuments(T[]) Creates unlinked duplicates of the original Entities ready for embedding with blank IDs. Declaration public static T[] ToDocuments(this T[] entities) where T : IEntity Parameters Type Name Description T[] entities Returns Type Description T[] Type Parameters Name Description T ToDocuments(IEnumerable) Creates unlinked duplicates of the original Entities ready for embedding with blank IDs. Declaration public static IEnumerable ToDocuments(this IEnumerable entities) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities Returns Type Description System.Collections.Generic.IEnumerable Type Parameters Name Description T ToDoubleMetaphoneHash(String) Converts a search term to Double Metaphone hash code suitable for fuzzy text searching. Declaration public static string ToDoubleMetaphoneHash(this string term) Parameters Type Name Description System.String term A single or multiple word search term Returns Type Description System.String ToReference(T) Returns a reference to this entity. Declaration public static One ToReference(this T entity) where T : IEntity Parameters Type Name Description T entity Returns Type Description One Type Parameters Name Description T" + "keywords": "Class Extensions Extension methods for entities Inheritance System.Object Extensions Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public static class Extensions Methods Collection(T) Gets the IMongoCollection for a given IEntity type. TIP: Try never to use this unless really neccessary. Declaration public static IMongoCollection Collection(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description MongoDB.Driver.IMongoCollection Type Parameters Name Description T Any class that implements IEntity CollectionName(T) Gets the collection name for this entity Declaration public static string CollectionName(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description System.String Type Parameters Name Description T Database(T) Gets the IMongoDatabase for the given entity type Declaration public static IMongoDatabase Database(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description MongoDB.Driver.IMongoDatabase Type Parameters Name Description T The type of entity DatabaseName(T) Gets the name of the database this entity is attached to. Returns name of default database if not specifically attached. Declaration public static string DatabaseName(this T _) where T : IEntity Parameters Type Name Description T _ Returns Type Description System.String Type Parameters Name Description T DeleteAllAsync(IEnumerable, IClientSessionHandle, CancellationToken) Deletes multiple entities from the database HINT: If these entities are referenced by one-to-many/many-to-many relationships, those references are also deleted. Declaration public static Task DeleteAllAsync(this IEnumerable entities, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities MongoDB.Driver.IClientSessionHandle session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.DeleteResult > Type Parameters Name Description T DeleteAsync(T, IClientSessionHandle, CancellationToken) Deletes a single entity from MongoDB. HINT: If this entity is referenced by one-to-many/many-to-many relationships, those references are also deleted. Declaration public static Task DeleteAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity MongoDB.Driver.IClientSessionHandle session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.DeleteResult > Type Parameters Name Description T Distinct(IAggregateFluent) Adds a distinct aggregation stage to a fluent pipeline. Declaration public static IAggregateFluent Distinct(this IAggregateFluent aggregate) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T Any class that implements IEntity DropAsync(IMongoCollection) Drops a join collection Declaration public static Task DropAsync(this IMongoCollection collection) Parameters Type Name Description MongoDB.Driver.IMongoCollection < JoinRecord > collection Returns Type Description System.Threading.Tasks.Task ExistsAsync(IMongoDatabase, Int32) Checks to see if the database already exists on the mongodb server Declaration public static async Task ExistsAsync(this IMongoDatabase db, int timeoutSeconds = 5) Parameters Type Name Description MongoDB.Driver.IMongoDatabase db System.Int32 timeoutSeconds The number of seconds to keep trying Returns Type Description System.Threading.Tasks.Task < System.Boolean > Fluent(T, IClientSessionHandle, AggregateOptions) An IAggregateFluent collection of sibling Entities. Declaration public static IAggregateFluent Fluent(this T _, IClientSessionHandle session = null, AggregateOptions options = null) where T : IEntity Parameters Type Name Description T _ MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction MongoDB.Driver.AggregateOptions options The options for the aggregation. This is not required. Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T FullPath(Expression>) Returns the full dotted path of a property for the given expression Declaration public static string FullPath(this Expression> expression) Parameters Type Name Description System.Linq.Expressions.Expression < System.Func > expression Returns Type Description System.String Type Parameters Name Description T Any class that implements IEntity InitManyToMany(IEntity, Expression>>, Expression>) Initializes supplied property with a new Many-To-Many relationship. Declaration public static void InitManyToMany(this IEntity parent, Expression>> propertyToInit, Expression> propertyOtherSide) where TChild : IEntity Parameters Type Name Description IEntity parent System.Linq.Expressions.Expression < System.Func < Many >> propertyToInit () = > PropertyName System.Linq.Expressions.Expression < System.Func > propertyOtherSide x => x.PropertyName Type Parameters Name Description TChild InitOneToMany(IEntity, Expression>>) Initializes supplied property with a new One-To-Many relationship. Declaration public static void InitOneToMany(this IEntity parent, Expression>> propertyToInit) where TChild : IEntity Parameters Type Name Description IEntity parent System.Linq.Expressions.Expression < System.Func < Many >> propertyToInit () => PropertyName Type Parameters Name Description TChild InsertAsync(T, IClientSessionHandle, CancellationToken) Inserts a new entity into the colleciton. Declaration public static Task InsertAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task Type Parameters Name Description T InsertAsync(IEnumerable, IClientSessionHandle, CancellationToken) Inserts a batch of new entities into the collection. Declaration public static Task> InsertAsync(this IEnumerable entities, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T IsAccessibleAsync(IMongoDatabase, Int32) Pings the mongodb server to check if it's still connectable Declaration public static async Task IsAccessibleAsync(this IMongoDatabase db, int timeoutSeconds = 5) Parameters Type Name Description MongoDB.Driver.IMongoDatabase db System.Int32 timeoutSeconds The number of seconds to keep trying Returns Type Description System.Threading.Tasks.Task < System.Boolean > Match(IAggregateFluent, Func, FilterDefinition>) Appends a match stage to the pipeline with a filter expression Declaration public static IAggregateFluent Match(this IAggregateFluent aggregate, Func, FilterDefinition> filter) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate System.Func < MongoDB.Driver.FilterDefinitionBuilder , MongoDB.Driver.FilterDefinition > filter f => f.Eq(x => x.Prop, Value) & f.Gt(x => x.Prop, Value) Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T Any class that implements IEntity MatchExpression(IAggregateFluent, String) Appends a match stage to the pipeline with an aggregation expression (i.e. $expr) Declaration public static IAggregateFluent MatchExpression(this IAggregateFluent aggregate, string expression) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate System.String expression { $gt: ['$Property1', '$Property2'] } Returns Type Description MongoDB.Driver.IAggregateFluent Type Parameters Name Description T Any class that implements IEntity NextSequentialNumberAsync(T, CancellationToken) Returns an atomically generated sequential number for the given Entity type everytime the method is called Declaration public static Task NextSequentialNumberAsync(this T _, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T _ System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < System.UInt64 > Type Parameters Name Description T PagedSearch(IAggregateFluent) Starts a paged search pipeline for this fluent pipeline Declaration public static PagedSearch PagedSearch(this IAggregateFluent aggregate) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate Returns Type Description PagedSearch Type Parameters Name Description T Any class that implements IEntity PagedSearch(IAggregateFluent) Starts a paged search pipeline for this fluent pipeline Declaration public static PagedSearch PagedSearch(this IAggregateFluent aggregate) where T : IEntity Parameters Type Name Description MongoDB.Driver.IAggregateFluent aggregate Returns Type Description PagedSearch Type Parameters Name Description T Any class that implements IEntity TProjection The type of the resulting projection Queryable(T, AggregateOptions) An IQueryable collection of sibling Entities. Declaration public static IMongoQueryable Queryable(this T _, AggregateOptions options = null) where T : IEntity Parameters Type Name Description T _ MongoDB.Driver.AggregateOptions options Returns Type Description MongoDB.Driver.Linq.IMongoQueryable Type Parameters Name Description T SaveAsync(T, IClientSessionHandle, CancellationToken) Saves a complete entity replacing an existing entity or creating a new one if it does not exist. If ID value is null, a new entity is created. If ID has a value, then existing entity is replaced. Declaration public static Task SaveAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task Type Parameters Name Description T SaveAsync(IEnumerable, IClientSessionHandle, CancellationToken) Saves a batch of complete entities replacing existing ones or creating new ones if they do not exist. If ID value is null, a new entity is created. If ID has a value, then existing entity is replaced. Declaration public static Task> SaveAsync(this IEnumerable entities, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T SaveExceptAsync(T, IEnumerable, IClientSessionHandle, CancellationToken) Saves an entity partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task SaveExceptAsync(this T entity, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveExceptAsync(T, Expression>, IClientSessionHandle, CancellationToken) Saves an entity partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be excluded can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task SaveExceptAsync(this T entity, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveExceptAsync(IEnumerable, IEnumerable, IClientSessionHandle, CancellationToken) Saves a batch of entities partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task> SaveExceptAsync(this IEnumerable entities, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SaveExceptAsync(IEnumerable, Expression>, IClientSessionHandle, CancellationToken) Saves a batch of entities partially excluding the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be excluded can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task> SaveExceptAsync(this IEnumerable entities, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(T, IEnumerable, IClientSessionHandle, CancellationToken) Saves an entity partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task SaveOnlyAsync(this T entity, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(T, Expression>, IClientSessionHandle, CancellationToken) Saves an entity partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task SaveOnlyAsync(this T entity, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(IEnumerable, IEnumerable, IClientSessionHandle, CancellationToken) Saves a batch of entities partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with an IEnumerable. Property names must match exactly. Declaration public static Task> SaveOnlyAsync(this IEnumerable entities, IEnumerable propNames, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Collections.Generic.IEnumerable < System.String > propNames new List { \"PropOne\", \"PropTwo\" } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SaveOnlyAsync(IEnumerable, Expression>, IClientSessionHandle, CancellationToken) Saves a batch of entities partially with only the specified subset of properties. If ID value is null, a new entity is created. If ID has a value, then existing entity is updated. TIP: The properties to be saved can be specified with a 'New' expression. You can only specify root level properties with the expression. Declaration public static Task> SaveOnlyAsync(this IEnumerable entities, Expression> members, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities The batch of entities to save System.Linq.Expressions.Expression < System.Func > members x => new { x.PropOne, x.PropTwo } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.BulkWriteResult > Type Parameters Name Description T Any class that implements IEntity SavePreservingAsync(T, IClientSessionHandle, CancellationToken) Saves an entity partially while excluding some properties. The properties to be excluded can be specified using the [Preserve] attribute. Declaration public static Task SavePreservingAsync(this T entity, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) where T : IEntity Parameters Type Name Description T entity The entity to save MongoDB.Driver.IClientSessionHandle session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task < MongoDB.Driver.UpdateResult > Type Parameters Name Description T Any class that implements IEntity SortByRelevance(IEnumerable, String, Func, Nullable) Sort a list of objects by relevance to a given string using Levenshtein Distance Declaration public static IEnumerable SortByRelevance(this IEnumerable objects, string searchTerm, Func propertyToSortBy, int? maxDistance = null) Parameters Type Name Description System.Collections.Generic.IEnumerable objects The list of objects to sort System.String searchTerm The term to measure relevance to System.Func propertyToSortBy x => x.PropertyName [the term will be matched against the value of this property] System.Nullable < System.Int32 > maxDistance The maximum levenstein distance to qualify an item for inclusion in the returned list Returns Type Description System.Collections.Generic.IEnumerable Type Parameters Name Description T Any object type ToBatches(IEnumerable, Int32) Extension method for processing collections in batches with streaming (yield return) Declaration public static IEnumerable> ToBatches(this IEnumerable collection, int batchSize = 100) Parameters Type Name Description System.Collections.Generic.IEnumerable collection The source collection System.Int32 batchSize The size of each batch Returns Type Description System.Collections.Generic.IEnumerable < System.Collections.Generic.IEnumerable > Type Parameters Name Description T The type of the objects inside the source collection ToDate(DateTime) converts a System.DateTime instance to a Date instance. Declaration public static Date ToDate(this DateTime dateTime) Parameters Type Name Description System.DateTime dateTime the System.DateTime instance to convert Returns Type Description Date ToDate(Int64) converts ticks to a Date instance. Declaration public static Date ToDate(this long ticks) Parameters Type Name Description System.Int64 ticks the ticks to convert Returns Type Description Date ToDocument(T) Creates an unlinked duplicate of the original IEntity ready for embedding with a blank ID. Declaration public static T ToDocument(this T entity) where T : IEntity Parameters Type Name Description T entity Returns Type Description T Type Parameters Name Description T ToDocuments(T[]) Creates unlinked duplicates of the original Entities ready for embedding with blank IDs. Declaration public static T[] ToDocuments(this T[] entities) where T : IEntity Parameters Type Name Description T[] entities Returns Type Description T[] Type Parameters Name Description T ToDocuments(IEnumerable) Creates unlinked duplicates of the original Entities ready for embedding with blank IDs. Declaration public static IEnumerable ToDocuments(this IEnumerable entities) where T : IEntity Parameters Type Name Description System.Collections.Generic.IEnumerable entities Returns Type Description System.Collections.Generic.IEnumerable Type Parameters Name Description T ToDoubleMetaphoneHash(String) Converts a search term to Double Metaphone hash code suitable for fuzzy text searching. Declaration public static string ToDoubleMetaphoneHash(this string term) Parameters Type Name Description System.String term A single or multiple word search term Returns Type Description System.String ToFuzzy(String) converts a string value to a FuzzyString Declaration public static FuzzyString ToFuzzy(this string value) Parameters Type Name Description System.String value the string to convert Returns Type Description FuzzyString ToReference(T) Returns a reference to this entity. Declaration public static One ToReference(this T entity) where T : IEntity Parameters Type Name Description T entity Returns Type Description One Type Parameters Name Description T" }, "api/MongoDB.Entities.FieldAttribute.html": { "href": "api/MongoDB.Entities.FieldAttribute.html", @@ -92,7 +92,7 @@ "api/MongoDB.Entities.FuzzyString.html": { "href": "api/MongoDB.Entities.FuzzyString.html", "title": "Class FuzzyString | MongoDB.Entities", - "keywords": "Class FuzzyString Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Inheritance System.Object FuzzyString Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class FuzzyString Properties CharacterLimit Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Declaration public static int CharacterLimit { get; set; } Property Value Type Description System.Int32 Value Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Declaration public string Value { get; set; } Property Value Type Description System.String Operators Implicit(FuzzyString to String) Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Declaration public static implicit operator string (FuzzyString fuzzyString) Parameters Type Name Description FuzzyString fuzzyString Returns Type Description System.String Implicit(String to FuzzyString) Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Declaration public static implicit operator FuzzyString(string value) Parameters Type Name Description System.String value Returns Type Description FuzzyString" + "keywords": "Class FuzzyString Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Inheritance System.Object FuzzyString Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class FuzzyString Constructors FuzzyString() Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Declaration public FuzzyString() FuzzyString(String) instantiate a FuzzyString object with a given string Declaration public FuzzyString(string value) Parameters Type Name Description System.String value the string value to create the FuzzyString with Properties CharacterLimit Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Declaration public static int CharacterLimit { get; set; } Property Value Type Description System.Int32 Value Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. Declaration public string Value { get; set; } Property Value Type Description System.String" }, "api/MongoDB.Entities.GeoNear-1.html": { "href": "api/MongoDB.Entities.GeoNear-1.html", @@ -102,7 +102,7 @@ "api/MongoDB.Entities.html": { "href": "api/MongoDB.Entities.html", "title": "Namespace MongoDB.Entities | MongoDB.Entities", - "keywords": "Namespace MongoDB.Entities Classes AsObjectIdAttribute Use this attribute to mark a string property to store the value in MongoDB as ObjectID if it is a valid ObjectId string. If it is not a valid ObjectId string, it will be stored as string. This is useful when using custom formats for the ID field. AsyncEventHandlerExtensions CollectionAttribute Specifies a custom MongoDB collection name for an entity type. Coordinates2D Represents a 2D geographical coordinate consisting of longitude and latitude DataStreamer Provides the interface for uploading and downloading data chunks for file entities. Date A custom date/time type for precision datetime handling DB The main entrypoint for all data access methods of the library DBContext This db context class can be used as an alternative entry point instead of the DB static class. Distinct Represents a MongoDB Distinct command where you can get back distinct values for a given property of a given Entity. DontPreserveAttribute Properties that don't have this attribute will be omitted when using SavePreserving() TIP: These attribute decorations are only effective if you do not specify a preservation expression when calling SavePreserving() Entity Inherit this class for all entities you want to store in their own collection. Extensions Extension methods for entities FieldAttribute Specifies the field name and/or the order of the persisted document. FileEntity Inherit this base class in order to create your own File Entities Find Represents a MongoDB Find command. TIP: Specify your criteria using .Match() .Sort() .Skip() .Take() .Project() .Option() methods and finally call .Execute() Note: For building queries, use the DB.Fluent* interfaces Find Represents a MongoDB Find command with the ability to project to a different result type. TIP: Specify your criteria using .Match() .Sort() .Skip() .Take() .Project() .Option() methods and finally call .Execute() FuzzyString Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. GeoNear Fluent aggregation pipeline builder for GeoNear IgnoreAttribute Use this attribute to ignore a property when persisting an entity to the database. IgnoreDefaultAttribute Use this attribute to ignore a property when persisting an entity to the database if the value is null/default. Index Represents an index creation command TIP: Define the keys first with .Key() method and finally call the .Create() method. InverseSideAttribute Indicates that this property is the inverse side of a many-to-many relationship JoinRecord Represents a parent-child relationship between two entities. TIP: The ParentID and ChildID switches around for many-to-many relationships depending on the side of the relationship you're accessing. Many Represents a one-to-many/many-to-many relationship between two Entities. WARNING: You have to initialize all instances of this class before accessing any of it's members. Initialize from the constructor of the parent entity as follows: this.InitOneToMany(() => Property); this.InitManyToMany(() => Property, x => x.OtherProperty); ManyBase Base class providing shared state for Many'1 classes Migration Represents a migration history item in the database ModifiedBy NameAttribute ObjectIdAttribute Use this attribute to mark a property in order to save it in MongoDB server as ObjectId One Represents a one-to-one relationship with an IEntity. OwnerSideAttribute Indicates that this property is the owner side of a many-to-many relationship PagedSearch Represents an aggregation query that retrieves results with easy paging support. PagedSearch Represents an aggregation query that retrieves results with easy paging support. PreserveAttribute Use this attribute on properties that you want to omit when using SavePreserving() instead of supplying an expression. TIP: These attribute decorations are only effective if you do not specify a preservation expression when calling SavePreserving() Prop This class provides methods to generate property path strings from lambda expression. Replace Represents an UpdateOne command, which can replace the first matched document with a given entity TIP: Specify a filter first with the .Match(). Then set entity with .WithEntity() and finally call .Execute() to run the command. Template A helper class to build a JSON command from a string with tag replacement Template A helper class to build a JSON command from a string with tag replacement Template A helper class to build a JSON command from a string with tag replacement Transaction Represents a transaction used to carry out inter-related write operations. TIP: Remember to always call .Dispose() after use or enclose in a 'Using' statement. IMPORTANT: Use the methods on this transaction to perform operations and not the methods on the DB class. Update Represents an update command TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command. UpdateAndGet Update and retrieve the first document that was updated. TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command. UpdateAndGet Update and retrieve the first document that was updated. TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command. UpdateBase Watcher Watcher for subscribing to mongodb change streams. Interfaces ICreatedOn Implement this interface on entities you want the library to automatically store the creation date with IEntity The contract for Entity classes IMigration The contract for writing user data migration classes IModifiedOn Implement this interface on entities you want the library to automatically store the modified date with Enums EventType KeyType Order Search Delegates AsyncEventHandler" + "keywords": "Namespace MongoDB.Entities Classes AsObjectIdAttribute Use this attribute to mark a string property to store the value in MongoDB as ObjectID if it is a valid ObjectId string. If it is not a valid ObjectId string, it will be stored as string. This is useful when using custom formats for the ID field. AsyncEventHandlerExtensions CollectionAttribute Specifies a custom MongoDB collection name for an entity type. Coordinates2D Represents a 2D geographical coordinate consisting of longitude and latitude DataStreamer Provides the interface for uploading and downloading data chunks for file entities. Date A custom date/time type for precision datetime handling DB The main entrypoint for all data access methods of the library DBContext This db context class can be used as an alternative entry point instead of the DB static class. Distinct Represents a MongoDB Distinct command where you can get back distinct values for a given property of a given Entity. DontPreserveAttribute Properties that don't have this attribute will be omitted when using SavePreserving() TIP: These attribute decorations are only effective if you do not specify a preservation expression when calling SavePreserving() Entity Inherit this class for all entities you want to store in their own collection. Extensions Extension methods for entities FieldAttribute Specifies the field name and/or the order of the persisted document. FileEntity Inherit this base class in order to create your own File Entities Find Represents a MongoDB Find command. TIP: Specify your criteria using .Match() .Sort() .Skip() .Take() .Project() .Option() methods and finally call .Execute() Note: For building queries, use the DB.Fluent* interfaces Find Represents a MongoDB Find command with the ability to project to a different result type. TIP: Specify your criteria using .Match() .Sort() .Skip() .Take() .Project() .Option() methods and finally call .Execute() FuzzyString Use this type to store strings if you need fuzzy text searching with MongoDB TIP: There's a default limit of 250 characters for ensuring best performance. If you exceed the default limit, an exception will be thrown. You can increase the limit by sacrificing performance/resource utilization by setting the static property FuzzyString.CharacterLimit = 500 at startup. GeoNear Fluent aggregation pipeline builder for GeoNear IgnoreAttribute Use this attribute to ignore a property when persisting an entity to the database. IgnoreDefaultAttribute Use this attribute to ignore a property when persisting an entity to the database if the value is null/default. Index Represents an index creation command TIP: Define the keys first with .Key() method and finally call the .Create() method. InverseSideAttribute Indicates that this property is the inverse side of a many-to-many relationship JoinRecord Represents a parent-child relationship between two entities. TIP: The ParentID and ChildID switches around for many-to-many relationships depending on the side of the relationship you're accessing. Many Represents a one-to-many/many-to-many relationship between two Entities. WARNING: You have to initialize all instances of this class before accessing any of it's members. Initialize from the constructor of the parent entity as follows: this.InitOneToMany(() => Property); this.InitManyToMany(() => Property, x => x.OtherProperty); ManyBase Base class providing shared state for Many'1 classes Migration Represents a migration history item in the database ModifiedBy ObjectIdAttribute Use this attribute to mark a property in order to save it in MongoDB server as ObjectId One Represents a one-to-one relationship with an IEntity. OwnerSideAttribute Indicates that this property is the owner side of a many-to-many relationship PagedSearch Represents an aggregation query that retrieves results with easy paging support. PagedSearch Represents an aggregation query that retrieves results with easy paging support. PreserveAttribute Use this attribute on properties that you want to omit when using SavePreserving() instead of supplying an expression. TIP: These attribute decorations are only effective if you do not specify a preservation expression when calling SavePreserving() Prop This class provides methods to generate property path strings from lambda expression. Replace Represents an UpdateOne command, which can replace the first matched document with a given entity TIP: Specify a filter first with the .Match(). Then set entity with .WithEntity() and finally call .Execute() to run the command. Template A helper class to build a JSON command from a string with tag replacement Template A helper class to build a JSON command from a string with tag replacement Template A helper class to build a JSON command from a string with tag replacement Transaction Represents a transaction used to carry out inter-related write operations. TIP: Remember to always call .Dispose() after use or enclose in a 'Using' statement. IMPORTANT: Use the methods on this transaction to perform operations and not the methods on the DB class. Update Represents an update command TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command. UpdateAndGet Update and retrieve the first document that was updated. TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command. UpdateAndGet Update and retrieve the first document that was updated. TIP: Specify a filter first with the .Match(). Then set property values with .Modify() and finally call .Execute() to run the command. UpdateBase Watcher Watcher for subscribing to mongodb change streams. Interfaces ICreatedOn Implement this interface on entities you want the library to automatically store the creation date with IEntity The contract for Entity classes IMigration The contract for writing user data migration classes IModifiedOn Implement this interface on entities you want the library to automatically store the modified date with Enums EventType KeyType Order Search Delegates AsyncEventHandler" }, "api/MongoDB.Entities.ICreatedOn.html": { "href": "api/MongoDB.Entities.ICreatedOn.html", @@ -174,11 +174,6 @@ "title": "Class ModifiedBy | MongoDB.Entities", "keywords": "Class ModifiedBy Inheritance System.Object ModifiedBy Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class ModifiedBy Properties UserID Declaration [AsObjectId] public string UserID { get; set; } Property Value Type Description System.String UserName Declaration public string UserName { get; set; } Property Value Type Description System.String" }, - "api/MongoDB.Entities.NameAttribute.html": { - "href": "api/MongoDB.Entities.NameAttribute.html", - "title": "Class NameAttribute | MongoDB.Entities", - "keywords": "Class NameAttribute Inheritance System.Object System.Attribute CollectionAttribute NameAttribute Inherited Members CollectionAttribute.Name System.Attribute.Equals(System.Object) System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type) System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Assembly) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Module) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type) System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.GetHashCode() System.Attribute.IsDefaultAttribute() System.Attribute.IsDefined(System.Reflection.Assembly, System.Type) System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type) System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.Module, System.Type) System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean) System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type) System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean) System.Attribute.Match(System.Object) System.Attribute.TypeId System.Object.Equals(System.Object, System.Object) System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax [Obsolete(\"Please use the [Collection(\\\"...\\\")] attribute instead\")] [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class NameAttribute : CollectionAttribute Constructors NameAttribute(String) Declaration public NameAttribute(string name) Parameters Type Name Description System.String name" - }, "api/MongoDB.Entities.ObjectIdAttribute.html": { "href": "api/MongoDB.Entities.ObjectIdAttribute.html", "title": "Class ObjectIdAttribute | MongoDB.Entities", @@ -187,7 +182,7 @@ "api/MongoDB.Entities.One-1.html": { "href": "api/MongoDB.Entities.One-1.html", "title": "Class One | MongoDB.Entities", - "keywords": "Class One Represents a one-to-one relationship with an IEntity. Inheritance System.Object One Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class One where T : IEntity Type Parameters Name Description T Any type that implements IEntity Constructors One() Represents a one-to-one relationship with an IEntity. Declaration public One() Properties ID The Id of the entity referenced by this instance. Declaration [AsObjectId] public string ID { get; set; } Property Value Type Description System.String Methods ToEntityAsync(IClientSessionHandle, CancellationToken) Fetches the actual entity this reference represents from the database. Declaration public Task ToEntityAsync(IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) Parameters Type Name Description MongoDB.Driver.IClientSessionHandle session An optional session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task A Task containing the actual entity ToEntityAsync(Func, ProjectionDefinition>, IClientSessionHandle, CancellationToken) Fetches the actual entity this reference represents from the database with a projection. Declaration public async Task ToEntityAsync(Func, ProjectionDefinition> projection, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) Parameters Type Name Description System.Func < MongoDB.Driver.ProjectionDefinitionBuilder , MongoDB.Driver.ProjectionDefinition > projection p=> p.Include(\"Prop1\").Exclude(\"Prop2\") MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task A Task containing the actual projected entity ToEntityAsync(Expression>, IClientSessionHandle, CancellationToken) Fetches the actual entity this reference represents from the database with a projection. Declaration public async Task ToEntityAsync(Expression> projection, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) Parameters Type Name Description System.Linq.Expressions.Expression < System.Func > projection x => new Test { PropName = x.Prop } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task A Task containing the actual projected entity Operators Implicit(T to One) Operator for returning a new One object from an entity Declaration public static implicit operator One(T entity) Parameters Type Name Description T entity The entity to make a reference to Returns Type Description One Implicit(String to One) Operator for returning a new One object from a string ID Declaration public static implicit operator One(string id) Parameters Type Name Description System.String id The ID to create a new One with Returns Type Description One " + "keywords": "Class One Represents a one-to-one relationship with an IEntity. Inheritance System.Object One Inherited Members System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString() Namespace : MongoDB.Entities Assembly : MongoDB.Entities.dll Syntax public class One where T : IEntity Type Parameters Name Description T Any type that implements IEntity Constructors One() Represents a one-to-one relationship with an IEntity. Declaration public One() One(T) Initializes a reference to an entity in MongoDB. Declaration public One(T entity) Parameters Type Name Description T entity The actual entity this reference represents. One(String) Initializes a reference to an entity in MongoDB. Declaration public One(string id) Parameters Type Name Description System.String id the ID of the referenced entity Properties ID The Id of the entity referenced by this instance. Declaration [AsObjectId] public string ID { get; set; } Property Value Type Description System.String Methods ToEntityAsync(IClientSessionHandle, CancellationToken) Fetches the actual entity this reference represents from the database. Declaration public Task ToEntityAsync(IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) Parameters Type Name Description MongoDB.Driver.IClientSessionHandle session An optional session System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task A Task containing the actual entity ToEntityAsync(Func, ProjectionDefinition>, IClientSessionHandle, CancellationToken) Fetches the actual entity this reference represents from the database with a projection. Declaration public async Task ToEntityAsync(Func, ProjectionDefinition> projection, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) Parameters Type Name Description System.Func < MongoDB.Driver.ProjectionDefinitionBuilder , MongoDB.Driver.ProjectionDefinition > projection p=> p.Include(\"Prop1\").Exclude(\"Prop2\") MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task A Task containing the actual projected entity ToEntityAsync(Expression>, IClientSessionHandle, CancellationToken) Fetches the actual entity this reference represents from the database with a projection. Declaration public async Task ToEntityAsync(Expression> projection, IClientSessionHandle session = null, CancellationToken cancellation = default(CancellationToken)) Parameters Type Name Description System.Linq.Expressions.Expression < System.Func > projection x => new Test { PropName = x.Prop } MongoDB.Driver.IClientSessionHandle session An optional session if using within a transaction System.Threading.CancellationToken cancellation An optional cancellation token Returns Type Description System.Threading.Tasks.Task A Task containing the actual projected entity" }, "api/MongoDB.Entities.Order.html": { "href": "api/MongoDB.Entities.Order.html", @@ -277,7 +272,7 @@ "index.html": { "href": "index.html", "title": "Welcome | MongoDB.Entities", - "keywords": "What is it? A light-weight .net standard library with barely any overhead that aims to simplify access to mongodb by abstracting the official driver while adding useful features on top of it resulting in an elegant API surface which produces beautiful, human friendly data access code. Why use it? Async only API for scalable application development. Don't have to deal with ObjectIds , BsonDocuments & magic strings unless you want to. Built-in support for One-To-One , One-To-Many and Many-To-Many relationships. Query data using LINQ, lambda expressions, filters and aggregation pipelines. Sorting, paging and projecting is made convenient. Simple data migration framework similar to EntityFramework. Programmatically manage indexes. Full text search (including fuzzy matching) with text indexes. Multi-document transaction support. Multiple database support. Easy bulk operations. Easy change-stream support. Easy audit fields support. GeoSpatial search. Global filters. Stream files in chunks to and from mongodb (GridFS alternative). Project types supported: .Net Standard 2.0 (.Net Core 2.0 & .Net Framework 4.6.1 or higher) Get Started Code Samples Benchmarks" + "keywords": "What is it? A light-weight .net standard library with barely any overhead that aims to simplify access to mongodb by abstracting the official driver while adding useful features on top of it resulting in an elegant API surface which produces beautiful, human friendly data access code. Why use it? Async only API for scalable application development. Don't have to deal with ObjectIds , BsonDocuments & magic strings unless you want to. Built-in support for One-To-One , One-To-Many and Many-To-Many relationships. Query data using LINQ, lambda expressions, filters and aggregation pipelines. Sorting, paging and projecting is made convenient. Simple data migration framework similar to EntityFramework. Programmatically manage indexes. Full text search (including fuzzy matching) with text indexes. Multi-document transaction support. Multiple database support. Easy bulk operations. Easy change-stream support. Easy audit fields support. GeoSpatial search. Global filters. Stream files in chunks to and from mongodb (GridFS alternative). Project types supported: .Net Standard 2.1 (.Net Core 3.0 onwards only). Get Started Code Samples Benchmarks" }, "wiki/Async-Support.html": { "href": "wiki/Async-Support.html", @@ -342,7 +337,7 @@ "wiki/Extras-Date.html": { "href": "wiki/Extras-Date.html", "title": "The 'Date' Type | MongoDB.Entities", - "keywords": "The 'Date' Type there's a special Date type you can use to store date/time values in mongodb instead of the regular System.DateTime type. the benefits of using it would be: preserves date/time precision can query using ticks can extend it by inheriting implicitly assignable to and from System.DateTime Examples // define the entity public class Book : Entity { public Date PublishedOn { get; set; } } // save the entity new Book { PublishedOn = DateTime.UtcNow } .Save(); // query with 'Ticks' var book = await DB.Find() .Match(b => b.PublishedOn.Ticks < DateTime.UtcNow.Ticks) .ExecuteFirstAsync(); // query with 'DateTime' var book = await DB.Find() .Match(b => b.PublishedOn.DateTime < DateTime.UtcNow) .ExecuteFirstAsync(); // assign to 'DateTime' from 'Date' DateTime dt = book.PublishedOn; // assign from 'DateTime' to 'Date' Date date = dt; // set/change value with 'Ticks' date.Ticks = DateTime.UtcNow.Ticks; // set/change value with 'DateTime' date.DateTime = DateTime.UtcNow;" + "keywords": "The 'Date' Type there's a special Date type you can use to store date/time values in mongodb instead of the regular System.DateTime type. the benefits of using it would be: preserves date/time precision can query using ticks can extend it by inheriting Examples // define the entity public class Book : Entity { public Date PublishedOn { get; set; } } // save the entity new Book { PublishedOn = DateTime.UtcNow } .Save(); // query with 'Ticks' var book = await DB.Find() .Match(b => b.PublishedOn.Ticks < DateTime.UtcNow.Ticks) .ExecuteFirstAsync(); // query with 'DateTime' var book = await DB.Find() .Match(b => b.PublishedOn.DateTime < DateTime.UtcNow) .ExecuteFirstAsync(); // set/change value with 'Ticks' date.Ticks = DateTime.UtcNow.Ticks; // set/change value with 'DateTime' date.DateTime = DateTime.UtcNow;" }, "wiki/Extras-Prop.html": { "href": "wiki/Extras-Prop.html", @@ -427,7 +422,7 @@ "wiki/Relationships-Referenced.html": { "href": "wiki/Relationships-Referenced.html", "title": "Referenced Relationships | MongoDB.Entities", - "keywords": "Referenced Relationships referenced relationships require a bit of special handling. a one-to-one relationship is defined using the One class and one-to-many as well as many-to-many relationships are defined using the Many class and you have to initialize the Many child properties in the constructor of the parent entity as shown below. public class Book : Entity { public One MainAuthor { get; set; } public Many CoAuthors { get; set; } [OwnerSide] public Many Genres { get; set; } public Book() { this.InitOneToMany(() => CoAuthors); this.InitManyToMany(() => Genres, genre => genre.Books); } } public class Genre : Entity { [InverseSide] public Many Books { get; set; } public Genre() { this.InitManyToMany(() => Books, book => book.Genres); } } notice the parameters of the InitOneToMany and InitManyToMany methods above. the first method only takes one parameter which is just a lambda pointing to the property you want to initialize. the next method takes 2 parameters. first is the property to initialize. second is the property of the other side of the relationship. also note that you specify which side of the relationship a property is using the attributes [OwnerSide] or [InverseSide] for defining many-to-many relationships. One-to-one a reference can be assigned in any of the following three ways: book.MainAuthor = author.ToReference(); //call ToReference on a child book.MainAuthor = author; //assign a child instance book.MainAuthor = \"AuthorID\"; //assign just the ID value of a child await book.SaveAsync(); //call save on parent to store Reference removal book.MainAuthor = null; await book.SaveAsync(); the original author in the Authors collection is unaffected. Entity deletion if you delete an entity that is referenced as above, all references pointing to that entity would then be invalid. as such, book.MainAuthor.ToEntityAsync() will then return null . the .ToEntityAsync() method is described below. for example: book A has 1:1 relationship with author A book B has 1:1 relationship with author A book C has 1:1 relationship with author A now, if you delete author A, the results would be the following: await bookA.MainAuthor.ToEntityAsync() //returns null await bookB.MainAuthor.ToEntityAsync() //returns null await bookC.MainAuthor.ToEntityAsync() //returns null One-to-many & many-to-many await book.Authors.AddAsync(author); //one-to-many await book.Genres.AddAsync(genre); //many-to-many there's no need to call book.SaveAsync() again because references are automatically saved using special join collections. you can read more about them in the Schema Changes section. however, do note that both the parent entity (book) and child (author/genre) being added has to have been previously saved so that they have their ID values populated. otherwise, you'd get an exception instructing you to save them both before calling AddAsync() . alternatively when you don't have access to the parent entity and you only have the parent ID value, you can use the following to access the relationship: await DB.Entity(\"BookID\").Authors.AddAsync(author); there are other overloads for adding relationships with multiple entities or just the string IDs. click here to see a full example of a referenced one-to-many relationship. Reference removal await book.Authors.RemoveAsync(author); await book.Genres.RemoveAsync(genre); the original author in the Authors collection is unaffected. also the genre entity in the Genres collection is unaffected. only the relationship between entities are deleted. there are other overloads for removing relationships with multiple entities or just the string IDs. Entity deletion when you delete an entity that's in a one-to-many or many-to-many relationship, all the references (join records) for the relationship in concern are automatically deleted from the join collections. for example: | author A has 3 referenced books: |-- book A |-- book B |-- book C | author B has 3 referenced book: |-- book A |-- book B |-- book C now, if you delete book B, the children of authors A and B would look like this: | author A: |-- book A |-- book C | author B: |-- book A |-- book C ToEntityAsync() shortcut a reference can be turned back in to an entity with the ToEntityAsync() method. var author = await book.MainAuthor.ToEntityAsync(); you can also project the properties you need instead of getting back the complete entity like so: var author = await book.MainAuthor .ToEntityAsync(a => new Author { Name = a.Name, Age = a.Age }); Transaction support adding and removing related entities require passing in the session when used within a transaction. see here for an example." + "keywords": "Referenced Relationships referenced relationships require a bit of special handling. a one-to-one relationship is defined using the One class and one-to-many as well as many-to-many relationships are defined using the Many class and you have to initialize the Many child properties in the constructor of the parent entity as shown below. public class Book : Entity { public One MainAuthor { get; set; } public Many CoAuthors { get; set; } [OwnerSide] public Many Genres { get; set; } public Book() { this.InitOneToMany(() => CoAuthors); this.InitManyToMany(() => Genres, genre => genre.Books); } } public class Genre : Entity { [InverseSide] public Many Books { get; set; } public Genre() { this.InitManyToMany(() => Books, book => book.Genres); } } notice the parameters of the InitOneToMany and InitManyToMany methods above. the first method only takes one parameter which is just a lambda pointing to the property you want to initialize. the next method takes 2 parameters. first is the property to initialize. second is the property of the other side of the relationship. also note that you specify which side of the relationship a property is using the attributes [OwnerSide] or [InverseSide] for defining many-to-many relationships. One-to-one a reference can be assigned in any of the following two ways: book.MainAuthor = author.ToReference(); //call ToReference on a child book.MainAuthor = new(author); //assign a child instance book.MainAuthor = new(\"AuthorID\"); //assign just the ID value of a child await book.SaveAsync(); //call save on parent to store Reference removal book.MainAuthor = null; await book.SaveAsync(); the original author in the Authors collection is unaffected. Entity deletion if you delete an entity that is referenced as above, all references pointing to that entity would then be invalid. as such, book.MainAuthor.ToEntityAsync() will then return null . the .ToEntityAsync() method is described below. for example: book A has 1:1 relationship with author A book B has 1:1 relationship with author A book C has 1:1 relationship with author A now, if you delete author A, the results would be the following: await bookA.MainAuthor.ToEntityAsync() //returns null await bookB.MainAuthor.ToEntityAsync() //returns null await bookC.MainAuthor.ToEntityAsync() //returns null One-to-many & many-to-many await book.Authors.AddAsync(author); //one-to-many await book.Genres.AddAsync(genre); //many-to-many there's no need to call book.SaveAsync() again because references are automatically saved using special join collections. you can read more about them in the Schema Changes section. however, do note that both the parent entity (book) and child (author/genre) being added has to have been previously saved so that they have their ID values populated. otherwise, you'd get an exception instructing you to save them both before calling AddAsync() . alternatively when you don't have access to the parent entity and you only have the parent ID value, you can use the following to access the relationship: await DB.Entity(\"BookID\").Authors.AddAsync(author); there are other overloads for adding relationships with multiple entities or just the string IDs. click here to see a full example of a referenced one-to-many relationship. Reference removal await book.Authors.RemoveAsync(author); await book.Genres.RemoveAsync(genre); the original author in the Authors collection is unaffected. also the genre entity in the Genres collection is unaffected. only the relationship between entities are deleted. there are other overloads for removing relationships with multiple entities or just the string IDs. Entity deletion when you delete an entity that's in a one-to-many or many-to-many relationship, all the references (join records) for the relationship in concern are automatically deleted from the join collections. for example: | author A has 3 referenced books: |-- book A |-- book B |-- book C | author B has 3 referenced book: |-- book A |-- book B |-- book C now, if you delete book B, the children of authors A and B would look like this: | author A: |-- book A |-- book C | author B: |-- book A |-- book C ToEntityAsync() shortcut a reference can be turned back in to an entity with the ToEntityAsync() method. var author = await book.MainAuthor.ToEntityAsync(); you can also project the properties you need instead of getting back the complete entity like so: var author = await book.MainAuthor .ToEntityAsync(a => new Author { Name = a.Name, Age = a.Age }); Transaction support adding and removing related entities require passing in the session when used within a transaction. see here for an example." }, "wiki/Schema-Changes.html": { "href": "wiki/Schema-Changes.html", diff --git a/docs/manifest.json b/docs/manifest.json index 3a4f7f4fc..8c9242df4 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -65,7 +65,7 @@ "output": { ".html": { "relative_path": "api/MongoDB.Entities.CollectionAttribute.html", - "hash": "MRamBGo/uSQdxVgUK9fob4YYFrWyG/O1FTTsiAK82uE=" + "hash": "LdO37zjJFtfVtVr3PaDoWYrcR6tTwMsUMB3MI/tQBzc=" } }, "is_incremental": false, @@ -77,7 +77,7 @@ "output": { ".html": { "relative_path": "api/MongoDB.Entities.Coordinates2D.html", - "hash": "tk2I7dgh3apjD3CVS7vUNO/cwERaxei8khhmhqLKJvA=" + "hash": "KHLTwYquqUVrKv5cMM5MqYVZbNzfnGX5UN2BqLf1RP8=" } }, "is_incremental": false, @@ -125,7 +125,7 @@ "output": { ".html": { "relative_path": "api/MongoDB.Entities.Date.html", - "hash": "fjyN4Dp//G/U5ltg/Nkyi48MiyYzPiqxSRpLwX5avsE=" + "hash": "HrjvhGdpJREtxu18hxd+wnQNhF1qz1gSwahGKsvr1Pk=" } }, "is_incremental": false, @@ -185,7 +185,7 @@ "output": { ".html": { "relative_path": "api/MongoDB.Entities.Extensions.html", - "hash": "llJKXsbdtG4x8n+P46TZoQvJ1Xo/+E9oDnSno3dC49I=" + "hash": "JM1g2d3W5V6RwELguU44X0irPCLPS3UcATteLq3BpMs=" } }, "is_incremental": false, @@ -245,7 +245,7 @@ "output": { ".html": { "relative_path": "api/MongoDB.Entities.FuzzyString.html", - "hash": "h6gdzZ2SbNa96tkIUm26AdfJMBlD8lTN4AE8eWHVyDk=" + "hash": "7BBakvg0YIzXFVPMoT3gZsQ8Ji3NXHoWwh/G5nr34To=" } }, "is_incremental": false, @@ -431,18 +431,6 @@ "is_incremental": false, "version": "" }, - { - "type": "ManagedReference", - "source_relative_path": "api/MongoDB.Entities.NameAttribute.yml", - "output": { - ".html": { - "relative_path": "api/MongoDB.Entities.NameAttribute.html", - "hash": "uagZMCxGArpgi/SeW4fy4In2aCifqu/mpjMJ4l+sdFA=" - } - }, - "is_incremental": false, - "version": "" - }, { "type": "ManagedReference", "source_relative_path": "api/MongoDB.Entities.ObjectIdAttribute.yml", @@ -461,7 +449,7 @@ "output": { ".html": { "relative_path": "api/MongoDB.Entities.One-1.html", - "hash": "otbsF+UN3qe43uU5BQdL/jtv/cfpXBxszKL1j330ty8=" + "hash": "uJVmxDbftavDuK9aSBlCtCd4pLLUKRyDDWm7ZBADqc8=" } }, "is_incremental": false, @@ -677,7 +665,7 @@ "output": { ".html": { "relative_path": "api/MongoDB.Entities.html", - "hash": "7DVN+trg9gPk4CqNlU3v6A6PsNmj5TNVav9GJcmJycI=" + "hash": "h4oBkxnZleyKZXhkGNfcqe9NpoclxXN/oH9DioP5g80=" } }, "is_incremental": false, @@ -689,7 +677,7 @@ "output": { ".html": { "relative_path": "api/toc.html", - "hash": "412w5XyFhBvFB9MoAe3IS6/4P86lY7hKm0hGx865Uh4=" + "hash": "koY8/eDrrG1DvPvomuYRWxwrKlvIntpulBazN/EHvOc=" } }, "is_incremental": false, @@ -778,7 +766,7 @@ "output": { ".html": { "relative_path": "index.html", - "hash": "1BA61KvIQGvAYvrLaJ2m6Jtzs1eRtp4RBsHGfexRAho=" + "hash": "W29VbcuZt5V9ErDiOlp4Kz5Uk3dyg6+bsLg0XOxNPSw=" } }, "is_incremental": false, @@ -946,7 +934,7 @@ "output": { ".html": { "relative_path": "wiki/Extras-Date.html", - "hash": "A2FOJGNHqmB0gwrxDhjRhg1RJvTiKDIUWFj4lrKdA0E=" + "hash": "CzPPgL3cibSQFnI8KZGopUzSBy52xO+SQiyqKjH5+M4=" } }, "is_incremental": false, @@ -1150,7 +1138,7 @@ "output": { ".html": { "relative_path": "wiki/Relationships-Referenced.html", - "hash": "L0wCPU5qDe2+KKm7gC+tBg7pplvjvVVcR7K11dBt+L0=" + "hash": "wC22D4FeirzCBJaYLzppnDEAmgqwmjDGIqvbYn5F+Xk=" } }, "is_incremental": false, @@ -1225,7 +1213,7 @@ "ManagedReferenceDocumentProcessor": { "can_incremental": false, "incrementalPhase": "build", - "total_file_count": 55, + "total_file_count": 54, "skipped_file_count": 0 }, "ResourceDocumentProcessor": { diff --git a/docs/wiki/Extras-Date.html b/docs/wiki/Extras-Date.html index 45d993499..4796bda0f 100644 --- a/docs/wiki/Extras-Date.html +++ b/docs/wiki/Extras-Date.html @@ -99,7 +99,6 @@

    The 'Date' Type

  • preserves date/time precision
  • can query using ticks
  • can extend it by inheriting
  • -
  • implicitly assignable to and from System.DateTime
  • Examples

    // define the entity
    @@ -125,12 +124,6 @@ 

    Examples

    .Match(b => b.PublishedOn.DateTime < DateTime.UtcNow) .ExecuteFirstAsync(); -// assign to 'DateTime' from 'Date' - DateTime dt = book.PublishedOn; - -// assign from 'DateTime' to 'Date' - Date date = dt; - // set/change value with 'Ticks' date.Ticks = DateTime.UtcNow.Ticks; diff --git a/docs/wiki/Relationships-Referenced.html b/docs/wiki/Relationships-Referenced.html index e69f3d6f3..b5deab8ab 100644 --- a/docs/wiki/Relationships-Referenced.html +++ b/docs/wiki/Relationships-Referenced.html @@ -126,10 +126,10 @@

    Referenced Relationships

    the next method takes 2 parameters. first is the property to initialize. second is the property of the other side of the relationship.

    also note that you specify which side of the relationship a property is using the attributes [OwnerSide] or [InverseSide] for defining many-to-many relationships.

    One-to-one

    -

    a reference can be assigned in any of the following three ways:

    +

    a reference can be assigned in any of the following two ways:

    book.MainAuthor = author.ToReference(); //call ToReference on a child
    -book.MainAuthor = author;               //assign a child instance
    -book.MainAuthor = "AuthorID";           //assign just the ID value of a child
    +book.MainAuthor = new(author);          //assign a child instance
    +book.MainAuthor = new("AuthorID");      //assign just the ID value of a child
     
     await book.SaveAsync();                 //call save on parent to store
     
    diff --git a/docs/xrefmap.yml b/docs/xrefmap.yml index 4786a3933..c19552ddc 100644 --- a/docs/xrefmap.yml +++ b/docs/xrefmap.yml @@ -111,6 +111,12 @@ references: commentId: T:MongoDB.Entities.Coordinates2D fullName: MongoDB.Entities.Coordinates2D nameWithType: Coordinates2D +- uid: MongoDB.Entities.Coordinates2D.#ctor + name: Coordinates2D() + href: api/MongoDB.Entities.Coordinates2D.html#MongoDB_Entities_Coordinates2D__ctor + commentId: M:MongoDB.Entities.Coordinates2D.#ctor + fullName: MongoDB.Entities.Coordinates2D.Coordinates2D() + nameWithType: Coordinates2D.Coordinates2D() - uid: MongoDB.Entities.Coordinates2D.#ctor(System.Double,System.Double) name: Coordinates2D(Double, Double) href: api/MongoDB.Entities.Coordinates2D.html#MongoDB_Entities_Coordinates2D__ctor_System_Double_System_Double_ @@ -253,6 +259,31 @@ references: commentId: T:MongoDB.Entities.Date fullName: MongoDB.Entities.Date nameWithType: Date +- uid: MongoDB.Entities.Date.#ctor + name: Date() + href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date__ctor + commentId: M:MongoDB.Entities.Date.#ctor + fullName: MongoDB.Entities.Date.Date() + nameWithType: Date.Date() +- uid: MongoDB.Entities.Date.#ctor(System.DateTime) + name: Date(DateTime) + href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date__ctor_System_DateTime_ + commentId: M:MongoDB.Entities.Date.#ctor(System.DateTime) + fullName: MongoDB.Entities.Date.Date(System.DateTime) + nameWithType: Date.Date(DateTime) +- uid: MongoDB.Entities.Date.#ctor(System.Int64) + name: Date(Int64) + href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date__ctor_System_Int64_ + commentId: M:MongoDB.Entities.Date.#ctor(System.Int64) + fullName: MongoDB.Entities.Date.Date(System.Int64) + nameWithType: Date.Date(Int64) +- uid: MongoDB.Entities.Date.#ctor* + name: Date + href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date__ctor_ + commentId: Overload:MongoDB.Entities.Date.#ctor + isSpec: "True" + fullName: MongoDB.Entities.Date.Date + nameWithType: Date.Date - uid: MongoDB.Entities.Date.DateTime name: DateTime href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date_DateTime @@ -266,34 +297,6 @@ references: isSpec: "True" fullName: MongoDB.Entities.Date.DateTime nameWithType: Date.DateTime -- uid: MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime - name: Implicit(Date to DateTime) - href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date_op_Implicit_MongoDB_Entities_Date__System_DateTime - commentId: M:MongoDB.Entities.Date.op_Implicit(MongoDB.Entities.Date)~System.DateTime - name.vb: Widening(Date to DateTime) - fullName: MongoDB.Entities.Date.Implicit(MongoDB.Entities.Date to System.DateTime) - fullName.vb: MongoDB.Entities.Date.Widening(MongoDB.Entities.Date to System.DateTime) - nameWithType: Date.Implicit(Date to DateTime) - nameWithType.vb: Date.Widening(Date to DateTime) -- uid: MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date - name: Implicit(DateTime to Date) - href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date_op_Implicit_System_DateTime__MongoDB_Entities_Date - commentId: M:MongoDB.Entities.Date.op_Implicit(System.DateTime)~MongoDB.Entities.Date - name.vb: Widening(DateTime to Date) - fullName: MongoDB.Entities.Date.Implicit(System.DateTime to MongoDB.Entities.Date) - fullName.vb: MongoDB.Entities.Date.Widening(System.DateTime to MongoDB.Entities.Date) - nameWithType: Date.Implicit(DateTime to Date) - nameWithType.vb: Date.Widening(DateTime to Date) -- uid: MongoDB.Entities.Date.op_Implicit* - name: Implicit - href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date_op_Implicit_ - commentId: Overload:MongoDB.Entities.Date.op_Implicit - isSpec: "True" - name.vb: Widening - fullName: MongoDB.Entities.Date.Implicit - fullName.vb: MongoDB.Entities.Date.Widening - nameWithType: Date.Implicit - nameWithType.vb: Date.Widening - uid: MongoDB.Entities.Date.Ticks name: Ticks href: api/MongoDB.Entities.Date.html#MongoDB_Entities_Date_Ticks @@ -2745,6 +2748,25 @@ references: fullName.vb: MongoDB.Entities.Extensions.ToBatches(Of T)(System.Collections.Generic.IEnumerable(Of T), System.Int32) nameWithType: Extensions.ToBatches(IEnumerable, Int32) nameWithType.vb: Extensions.ToBatches(Of T)(IEnumerable(Of T), Int32) +- uid: MongoDB.Entities.Extensions.ToDate(System.DateTime) + name: ToDate(DateTime) + href: api/MongoDB.Entities.Extensions.html#MongoDB_Entities_Extensions_ToDate_System_DateTime_ + commentId: M:MongoDB.Entities.Extensions.ToDate(System.DateTime) + fullName: MongoDB.Entities.Extensions.ToDate(System.DateTime) + nameWithType: Extensions.ToDate(DateTime) +- uid: MongoDB.Entities.Extensions.ToDate(System.Int64) + name: ToDate(Int64) + href: api/MongoDB.Entities.Extensions.html#MongoDB_Entities_Extensions_ToDate_System_Int64_ + commentId: M:MongoDB.Entities.Extensions.ToDate(System.Int64) + fullName: MongoDB.Entities.Extensions.ToDate(System.Int64) + nameWithType: Extensions.ToDate(Int64) +- uid: MongoDB.Entities.Extensions.ToDate* + name: ToDate + href: api/MongoDB.Entities.Extensions.html#MongoDB_Entities_Extensions_ToDate_ + commentId: Overload:MongoDB.Entities.Extensions.ToDate + isSpec: "True" + fullName: MongoDB.Entities.Extensions.ToDate + nameWithType: Extensions.ToDate - uid: MongoDB.Entities.Extensions.ToDocument* name: ToDocument href: api/MongoDB.Entities.Extensions.html#MongoDB_Entities_Extensions_ToDocument_ @@ -2799,6 +2821,19 @@ references: isSpec: "True" fullName: MongoDB.Entities.Extensions.ToDoubleMetaphoneHash nameWithType: Extensions.ToDoubleMetaphoneHash +- uid: MongoDB.Entities.Extensions.ToFuzzy(System.String) + name: ToFuzzy(String) + href: api/MongoDB.Entities.Extensions.html#MongoDB_Entities_Extensions_ToFuzzy_System_String_ + commentId: M:MongoDB.Entities.Extensions.ToFuzzy(System.String) + fullName: MongoDB.Entities.Extensions.ToFuzzy(System.String) + nameWithType: Extensions.ToFuzzy(String) +- uid: MongoDB.Entities.Extensions.ToFuzzy* + name: ToFuzzy + href: api/MongoDB.Entities.Extensions.html#MongoDB_Entities_Extensions_ToFuzzy_ + commentId: Overload:MongoDB.Entities.Extensions.ToFuzzy + isSpec: "True" + fullName: MongoDB.Entities.Extensions.ToFuzzy + nameWithType: Extensions.ToFuzzy - uid: MongoDB.Entities.Extensions.ToReference* name: ToReference href: api/MongoDB.Entities.Extensions.html#MongoDB_Entities_Extensions_ToReference_ @@ -3382,6 +3417,25 @@ references: commentId: T:MongoDB.Entities.FuzzyString fullName: MongoDB.Entities.FuzzyString nameWithType: FuzzyString +- uid: MongoDB.Entities.FuzzyString.#ctor + name: FuzzyString() + href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString__ctor + commentId: M:MongoDB.Entities.FuzzyString.#ctor + fullName: MongoDB.Entities.FuzzyString.FuzzyString() + nameWithType: FuzzyString.FuzzyString() +- uid: MongoDB.Entities.FuzzyString.#ctor(System.String) + name: FuzzyString(String) + href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString__ctor_System_String_ + commentId: M:MongoDB.Entities.FuzzyString.#ctor(System.String) + fullName: MongoDB.Entities.FuzzyString.FuzzyString(System.String) + nameWithType: FuzzyString.FuzzyString(String) +- uid: MongoDB.Entities.FuzzyString.#ctor* + name: FuzzyString + href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString__ctor_ + commentId: Overload:MongoDB.Entities.FuzzyString.#ctor + isSpec: "True" + fullName: MongoDB.Entities.FuzzyString.FuzzyString + nameWithType: FuzzyString.FuzzyString - uid: MongoDB.Entities.FuzzyString.CharacterLimit name: CharacterLimit href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString_CharacterLimit @@ -3395,34 +3449,6 @@ references: isSpec: "True" fullName: MongoDB.Entities.FuzzyString.CharacterLimit nameWithType: FuzzyString.CharacterLimit -- uid: MongoDB.Entities.FuzzyString.op_Implicit(MongoDB.Entities.FuzzyString)~System.String - name: Implicit(FuzzyString to String) - href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString_op_Implicit_MongoDB_Entities_FuzzyString__System_String - commentId: M:MongoDB.Entities.FuzzyString.op_Implicit(MongoDB.Entities.FuzzyString)~System.String - name.vb: Widening(FuzzyString to String) - fullName: MongoDB.Entities.FuzzyString.Implicit(MongoDB.Entities.FuzzyString to System.String) - fullName.vb: MongoDB.Entities.FuzzyString.Widening(MongoDB.Entities.FuzzyString to System.String) - nameWithType: FuzzyString.Implicit(FuzzyString to String) - nameWithType.vb: FuzzyString.Widening(FuzzyString to String) -- uid: MongoDB.Entities.FuzzyString.op_Implicit(System.String)~MongoDB.Entities.FuzzyString - name: Implicit(String to FuzzyString) - href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString_op_Implicit_System_String__MongoDB_Entities_FuzzyString - commentId: M:MongoDB.Entities.FuzzyString.op_Implicit(System.String)~MongoDB.Entities.FuzzyString - name.vb: Widening(String to FuzzyString) - fullName: MongoDB.Entities.FuzzyString.Implicit(System.String to MongoDB.Entities.FuzzyString) - fullName.vb: MongoDB.Entities.FuzzyString.Widening(System.String to MongoDB.Entities.FuzzyString) - nameWithType: FuzzyString.Implicit(String to FuzzyString) - nameWithType.vb: FuzzyString.Widening(String to FuzzyString) -- uid: MongoDB.Entities.FuzzyString.op_Implicit* - name: Implicit - href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString_op_Implicit_ - commentId: Overload:MongoDB.Entities.FuzzyString.op_Implicit - isSpec: "True" - name.vb: Widening - fullName: MongoDB.Entities.FuzzyString.Implicit - fullName.vb: MongoDB.Entities.FuzzyString.Widening - nameWithType: FuzzyString.Implicit - nameWithType.vb: FuzzyString.Widening - uid: MongoDB.Entities.FuzzyString.Value name: Value href: api/MongoDB.Entities.FuzzyString.html#MongoDB_Entities_FuzzyString_Value @@ -4352,25 +4378,6 @@ references: isSpec: "True" fullName: MongoDB.Entities.ModifiedBy.UserName nameWithType: ModifiedBy.UserName -- uid: MongoDB.Entities.NameAttribute - name: NameAttribute - href: api/MongoDB.Entities.NameAttribute.html - commentId: T:MongoDB.Entities.NameAttribute - fullName: MongoDB.Entities.NameAttribute - nameWithType: NameAttribute -- uid: MongoDB.Entities.NameAttribute.#ctor(System.String) - name: NameAttribute(String) - href: api/MongoDB.Entities.NameAttribute.html#MongoDB_Entities_NameAttribute__ctor_System_String_ - commentId: M:MongoDB.Entities.NameAttribute.#ctor(System.String) - fullName: MongoDB.Entities.NameAttribute.NameAttribute(System.String) - nameWithType: NameAttribute.NameAttribute(String) -- uid: MongoDB.Entities.NameAttribute.#ctor* - name: NameAttribute - href: api/MongoDB.Entities.NameAttribute.html#MongoDB_Entities_NameAttribute__ctor_ - commentId: Overload:MongoDB.Entities.NameAttribute.#ctor - isSpec: "True" - fullName: MongoDB.Entities.NameAttribute.NameAttribute - nameWithType: NameAttribute.NameAttribute - uid: MongoDB.Entities.ObjectIdAttribute name: ObjectIdAttribute href: api/MongoDB.Entities.ObjectIdAttribute.html @@ -4407,6 +4414,22 @@ references: fullName.vb: MongoDB.Entities.One(Of T).One() nameWithType: One.One() nameWithType.vb: One(Of T).One() +- uid: MongoDB.Entities.One`1.#ctor(`0) + name: One(T) + href: api/MongoDB.Entities.One-1.html#MongoDB_Entities_One_1__ctor__0_ + commentId: M:MongoDB.Entities.One`1.#ctor(`0) + fullName: MongoDB.Entities.One.One(T) + fullName.vb: MongoDB.Entities.One(Of T).One(T) + nameWithType: One.One(T) + nameWithType.vb: One(Of T).One(T) +- uid: MongoDB.Entities.One`1.#ctor(System.String) + name: One(String) + href: api/MongoDB.Entities.One-1.html#MongoDB_Entities_One_1__ctor_System_String_ + commentId: M:MongoDB.Entities.One`1.#ctor(System.String) + fullName: MongoDB.Entities.One.One(System.String) + fullName.vb: MongoDB.Entities.One(Of T).One(System.String) + nameWithType: One.One(String) + nameWithType.vb: One(Of T).One(String) - uid: MongoDB.Entities.One`1.#ctor* name: One href: api/MongoDB.Entities.One-1.html#MongoDB_Entities_One_1__ctor_ @@ -4433,34 +4456,6 @@ references: fullName.vb: MongoDB.Entities.One(Of T).ID nameWithType: One.ID nameWithType.vb: One(Of T).ID -- uid: MongoDB.Entities.One`1.op_Implicit(`0)~MongoDB.Entities.One{`0} - name: Implicit(T to One) - href: api/MongoDB.Entities.One-1.html#MongoDB_Entities_One_1_op_Implicit__0__MongoDB_Entities_One__0_ - commentId: M:MongoDB.Entities.One`1.op_Implicit(`0)~MongoDB.Entities.One{`0} - name.vb: Widening(T to One(Of T)) - fullName: MongoDB.Entities.One.Implicit(T to MongoDB.Entities.One) - fullName.vb: MongoDB.Entities.One(Of T).Widening(T to MongoDB.Entities.One(Of T)) - nameWithType: One.Implicit(T to One) - nameWithType.vb: One(Of T).Widening(T to One(Of T)) -- uid: MongoDB.Entities.One`1.op_Implicit(System.String)~MongoDB.Entities.One{`0} - name: Implicit(String to One) - href: api/MongoDB.Entities.One-1.html#MongoDB_Entities_One_1_op_Implicit_System_String__MongoDB_Entities_One__0_ - commentId: M:MongoDB.Entities.One`1.op_Implicit(System.String)~MongoDB.Entities.One{`0} - name.vb: Widening(String to One(Of T)) - fullName: MongoDB.Entities.One.Implicit(System.String to MongoDB.Entities.One) - fullName.vb: MongoDB.Entities.One(Of T).Widening(System.String to MongoDB.Entities.One(Of T)) - nameWithType: One.Implicit(String to One) - nameWithType.vb: One(Of T).Widening(String to One(Of T)) -- uid: MongoDB.Entities.One`1.op_Implicit* - name: Implicit - href: api/MongoDB.Entities.One-1.html#MongoDB_Entities_One_1_op_Implicit_ - commentId: Overload:MongoDB.Entities.One`1.op_Implicit - isSpec: "True" - name.vb: Widening - fullName: MongoDB.Entities.One.Implicit - fullName.vb: MongoDB.Entities.One(Of T).Widening - nameWithType: One.Implicit - nameWithType.vb: One(Of T).Widening - uid: MongoDB.Entities.One`1.ToEntityAsync(MongoDB.Driver.IClientSessionHandle,System.Threading.CancellationToken) name: ToEntityAsync(IClientSessionHandle, CancellationToken) href: api/MongoDB.Entities.One-1.html#MongoDB_Entities_One_1_ToEntityAsync_MongoDB_Driver_IClientSessionHandle_System_Threading_CancellationToken_