// Author: Gockner, Simon // Created: 2020-09-18 // Copyright(c) 2020 SimonG. All Rights Reserved. using System.Collections.Generic; using GBase.Attributes; namespace Test.GBase.GBaseIntegrationTest { [GBaseTable("Groups")] public class Group : IGroup { public Group(int key) { Key = key; Items = new List(); } [GBaseColumn] public int Key { get; private set; } public List Items { get; } public override string ToString() => $"{Key}"; public void InitializeFromString(string @string) => Key = int.Parse(@string); } }