mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use realm support for Guid
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using Realms;
|
||||
|
||||
@ -11,16 +10,7 @@ namespace osu.Game.Database
|
||||
public interface IHasGuidPrimaryKey
|
||||
{
|
||||
[JsonIgnore]
|
||||
[Ignored]
|
||||
public Guid Guid
|
||||
{
|
||||
get => new Guid(ID);
|
||||
set => ID = value.ToString();
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[PrimaryKey]
|
||||
string ID { get; set; }
|
||||
public Guid ID { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user