Add IsManaged helper method to EF classes to match realm implementation

This commit is contained in:
Dean Herbert
2021-11-19 21:53:40 +09:00
parent d397524878
commit eecf6ad558
12 changed files with 24 additions and 0 deletions

View File

@ -10,6 +10,8 @@ namespace osu.Game.IO
{
public int ID { get; set; }
public bool IsManaged => ID > 0;
public string Hash { get; set; }
public string StoragePath => Path.Combine(Hash.Remove(1), Hash.Remove(2), Hash);