[Entitas:] EntityIndex with multiple key support
See original GitHub issueUsually you generate one key for a given entity, e.g. name : string. In some cases it is helpful that one entity generates more than one key, e.g. a building on a map with position and size.
The building is at position(0,0) but because it has a size of (2,2) should also generate keys for all the other occupied positions.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
[Entitas:] EntityIndex with multiple key support · Issue #279
In some cases it is helpful that one entity generates more than one key, e.g. a building on a map with position and...
Read more >Unique Key constraints for multiple columns in Entity ...
First approach: dbContext.Database.ExecuteSqlCommand(string.Format( @"CREATE UNIQUE INDEX LX_{0} ON {0} ({ ...
Read more >Work with alternate keys (Microsoft Dataverse) - Power Apps
In this article. Create alternate keys; Retrieve and delete alternate keys; Monitor index creation for alternate keys.
Read more >EntityIndex (Oracle - Berkeley DB Java Edition API)
An EntityIndex supports two mechanisms for retrieving entities: The get(K) method returns a single value for a given key. If there are multiple...
Read more >Best practices for generating unique multi-column keys for ...
Best practices for generating unique multi-column keys for weak entities? · Create unique sequence per set of rows sharing the same foreign key...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

There you go https://github.com/sschmid/Entitas-CSharp/blob/develop/Tests/TestFixtures/Fixtures/CustomEntityIndex.cs
If you can represent this as an int, it would be great. Otherwise there’s a risk to create lots of string and increase the gc pressure