Browse Source

Add GetObjectKey method to MyEntity class

Introduced the GetObjectKey method to MyEntity, returning the string representation of the entity's Id. This may be used for scenarios requiring a unique key in string format.
pull/24374/head
Halil İbrahim Kalkan 4 months ago
parent
commit
d425c0f86d
  1. 5
      framework/test/Volo.Abp.Ddd.Tests/Volo/Abp/Domain/Entities/EntityHelper_Tests.cs

5
framework/test/Volo.Abp.Ddd.Tests/Volo/Abp/Domain/Entities/EntityHelper_Tests.cs

@ -55,6 +55,11 @@ public class EntityHelper_Tests
{
return new object[] { Id };
}
public string GetObjectKey()
{
return Id.ToString();
}
}
private class MyEntityDisablesIdGeneration : Entity<Guid>

Loading…
Cancel
Save