Skip to content

Commit

Permalink
Fixed typo with IsTenantExclusive for index attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Turnerj committed Dec 17, 2020
1 parent fa9438d commit 1c66247
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/MongoFramework/Attributes/IndexAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class IndexAttribute : Attribute
/// <summary>
/// Whether the index should add a tenant key.
/// </summary>
public bool IsTenantExclusve { get; set; }
public bool IsTenantExclusive { get; set; }

/// <summary>
/// Applies a standard index to the property with the specified sort order.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void ApplyMapping(IEntityDefinition definition, BsonClassMap classMap)
SortOrder = indexAttribute.SortOrder,
IndexPriority = indexAttribute.IndexPriority,
IndexType = indexAttribute.IndexType,
IsTenantExclusive = indexAttribute.IsTenantExclusve
IsTenantExclusive = indexAttribute.IsTenantExclusive
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class TenantUniqueConstraintModel : IHaveTenantId
{
public string TenantId { get; set; }

[Index("UniqueIndex", IndexSortOrder.Ascending, IsUnique = true, IsTenantExclusve = true)]
[Index("UniqueIndex", IndexSortOrder.Ascending, IsUnique = true, IsTenantExclusive = true)]
public string UniqueIndex { get; set; }
}

Expand Down
2 changes: 1 addition & 1 deletion tests/MongoFramework.Tests/MongoDbTenantSetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TestUniqueModel : IHaveTenantId
public string Id { get; set; }
public string TenantId { get; set; }

[Index(IndexType.Standard, IsUnique = true, IsTenantExclusve = true)]
[Index(IndexType.Standard, IsUnique = true, IsTenantExclusive = true)]
public string UserName { get; set; }
}
[TestMethod]
Expand Down

0 comments on commit 1c66247

Please sign in to comment.