Setup context, write usage, wrapper classes

This commit is contained in:
Dean Herbert
2021-01-07 14:07:36 +09:00
parent dce9937e9b
commit 9cfede2e7e
6 changed files with 383 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace osu.Game.Database
{
public interface IHasGuidPrimaryKey
{
[JsonIgnore]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
Guid ID { get; set; }
}
}