Browse Source

Remove the [BsonExtraElements] attribute from the MongoDB entities to prevent future collisions

pull/639/head
Kévin Chalet 8 years ago
parent
commit
513ebcae8e
  1. 4
      src/OpenIddict.MongoDb.Models/OpenIddictApplication.cs
  2. 4
      src/OpenIddict.MongoDb.Models/OpenIddictAuthorization.cs
  3. 4
      src/OpenIddict.MongoDb.Models/OpenIddictScope.cs
  4. 4
      src/OpenIddict.MongoDb.Models/OpenIddictToken.cs

4
src/OpenIddict.MongoDb.Models/OpenIddictApplication.cs

@ -72,8 +72,8 @@ namespace OpenIddict.MongoDb.Models
/// <summary> /// <summary>
/// Gets or sets the additional properties associated with the current application. /// Gets or sets the additional properties associated with the current application.
/// </summary> /// </summary>
[BsonExtraElements] [BsonElement("properties"), BsonIgnoreIfNull]
public virtual BsonDocument Properties { get; set; } = new BsonDocument(); public virtual BsonDocument Properties { get; set; }
/// <summary> /// <summary>
/// Gets or sets the callback URLs associated with the current application. /// Gets or sets the callback URLs associated with the current application.

4
src/OpenIddict.MongoDb.Models/OpenIddictAuthorization.cs

@ -38,8 +38,8 @@ namespace OpenIddict.MongoDb.Models
/// <summary> /// <summary>
/// Gets or sets the additional properties associated with the current authorization. /// Gets or sets the additional properties associated with the current authorization.
/// </summary> /// </summary>
[BsonExtraElements] [BsonElement("properties"), BsonIgnoreIfNull]
public virtual BsonDocument Properties { get; set; } = new BsonDocument(); public virtual BsonDocument Properties { get; set; }
/// <summary> /// <summary>
/// Gets or sets the scopes associated with the current authorization. /// Gets or sets the scopes associated with the current authorization.

4
src/OpenIddict.MongoDb.Models/OpenIddictScope.cs

@ -52,8 +52,8 @@ namespace OpenIddict.MongoDb.Models
/// <summary> /// <summary>
/// Gets or sets the additional properties associated with the current scope. /// Gets or sets the additional properties associated with the current scope.
/// </summary> /// </summary>
[BsonExtraElements] [BsonElement("properties"), BsonIgnoreIfNull]
public virtual BsonDocument Properties { get; set; } = new BsonDocument(); public virtual BsonDocument Properties { get; set; }
/// <summary> /// <summary>
/// Gets or sets the resources associated with the current scope. /// Gets or sets the resources associated with the current scope.

4
src/OpenIddict.MongoDb.Models/OpenIddictToken.cs

@ -65,8 +65,8 @@ namespace OpenIddict.MongoDb.Models
/// <summary> /// <summary>
/// Gets or sets the additional properties associated with the current token. /// Gets or sets the additional properties associated with the current token.
/// </summary> /// </summary>
[BsonExtraElements] [BsonElement("properties"), BsonIgnoreIfNull]
public virtual BsonDocument Properties { get; set; } = new BsonDocument(); public virtual BsonDocument Properties { get; set; }
/// <summary> /// <summary>
/// Gets or sets the reference identifier associated /// Gets or sets the reference identifier associated

Loading…
Cancel
Save