mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Switch guid to store as string until fody issues are resolved
See https://github.com/realm/realm-dotnet/issues/740#issuecomment-755898968
This commit is contained in:
@ -4,13 +4,22 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using Realms;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public interface IHasGuidPrimaryKey
|
||||
{
|
||||
[JsonIgnore]
|
||||
[Ignored]
|
||||
public Guid Guid
|
||||
{
|
||||
get => new Guid(ID);
|
||||
set => ID = value.ToString();
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
Guid ID { get; set; }
|
||||
string ID { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user