Skip to content

Commit 1c66247

Browse files
committed
Fixed typo with IsTenantExclusive for index attribute
1 parent fa9438d commit 1c66247

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/MongoFramework/Attributes/IndexAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class IndexAttribute : Attribute
2828
/// <summary>
2929
/// Whether the index should add a tenant key.
3030
/// </summary>
31-
public bool IsTenantExclusve { get; set; }
31+
public bool IsTenantExclusive { get; set; }
3232

3333
/// <summary>
3434
/// Applies a standard index to the property with the specified sort order.

src/MongoFramework/Infrastructure/Mapping/Processors/IndexProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void ApplyMapping(IEntityDefinition definition, BsonClassMap classMap)
2525
SortOrder = indexAttribute.SortOrder,
2626
IndexPriority = indexAttribute.IndexPriority,
2727
IndexType = indexAttribute.IndexType,
28-
IsTenantExclusive = indexAttribute.IsTenantExclusve
28+
IsTenantExclusive = indexAttribute.IsTenantExclusive
2929
});
3030
}
3131
}

tests/MongoFramework.Tests/Infrastructure/Indexing/IndexModelBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class TenantUniqueConstraintModel : IHaveTenantId
8888
{
8989
public string TenantId { get; set; }
9090

91-
[Index("UniqueIndex", IndexSortOrder.Ascending, IsUnique = true, IsTenantExclusve = true)]
91+
[Index("UniqueIndex", IndexSortOrder.Ascending, IsUnique = true, IsTenantExclusive = true)]
9292
public string UniqueIndex { get; set; }
9393
}
9494

tests/MongoFramework.Tests/MongoDbTenantSetTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class TestUniqueModel : IHaveTenantId
2626
public string Id { get; set; }
2727
public string TenantId { get; set; }
2828

29-
[Index(IndexType.Standard, IsUnique = true, IsTenantExclusve = true)]
29+
[Index(IndexType.Standard, IsUnique = true, IsTenantExclusive = true)]
3030
public string UserName { get; set; }
3131
}
3232
[TestMethod]

0 commit comments

Comments
 (0)