Load defaults, pass around live IEnumerable, add PK for updating

This commit is contained in:
Dean Herbert
2017-08-14 22:31:23 +09:00
parent 7c9d6c9c83
commit 46bfa4db29
4 changed files with 47 additions and 13 deletions

View File

@ -11,6 +11,9 @@ namespace osu.Game.Input.Bindings
[Table("KeyBinding")]
public class DatabasedKeyBinding : KeyBinding
{
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
[ForeignKey(typeof(RulesetInfo))]
public int? RulesetID { get; set; }
@ -28,7 +31,7 @@ namespace osu.Game.Input.Bindings
public new int Action
{
get { return (int)base.Action; }
private set { base.Action = value; }
set { base.Action = value; }
}
}
}