diff --git a/src/MongoFramework/Attributes/IndexAttribute.cs b/src/MongoFramework/Attributes/IndexAttribute.cs
index 625c02c4..f6387f69 100644
--- a/src/MongoFramework/Attributes/IndexAttribute.cs
+++ b/src/MongoFramework/Attributes/IndexAttribute.cs
@@ -28,7 +28,7 @@ public class IndexAttribute : Attribute
///
/// Whether the index should add a tenant key.
///
- public bool IsTenantExclusve { get; set; }
+ public bool IsTenantExclusive { get; set; }
///
/// Applies a standard index to the property with the specified sort order.
diff --git a/src/MongoFramework/Infrastructure/Mapping/Processors/IndexProcessor.cs b/src/MongoFramework/Infrastructure/Mapping/Processors/IndexProcessor.cs
index 725375d0..0eb490fc 100644
--- a/src/MongoFramework/Infrastructure/Mapping/Processors/IndexProcessor.cs
+++ b/src/MongoFramework/Infrastructure/Mapping/Processors/IndexProcessor.cs
@@ -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
});
}
}
diff --git a/tests/MongoFramework.Tests/Infrastructure/Indexing/IndexModelBuilderTests.cs b/tests/MongoFramework.Tests/Infrastructure/Indexing/IndexModelBuilderTests.cs
index ad025fea..922ca465 100644
--- a/tests/MongoFramework.Tests/Infrastructure/Indexing/IndexModelBuilderTests.cs
+++ b/tests/MongoFramework.Tests/Infrastructure/Indexing/IndexModelBuilderTests.cs
@@ -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; }
}
diff --git a/tests/MongoFramework.Tests/MongoDbTenantSetTests.cs b/tests/MongoFramework.Tests/MongoDbTenantSetTests.cs
index 85c4becc..57cad153 100644
--- a/tests/MongoFramework.Tests/MongoDbTenantSetTests.cs
+++ b/tests/MongoFramework.Tests/MongoDbTenantSetTests.cs
@@ -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]