A database based on .net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
894 B

// 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()
{
Items = new List<IItem>();
}
public Group(int key)
{
Key = key;
Items = new List<IItem>();
}
[GBaseColumn]
public int Key { get; private set; }
public List<IItem> Items { get; }
public string FileName => $"Group{Key}";
public override string ToString() => $"{Key}";
public void InitializeFromString(string @string) => Key = int.Parse(@string);
public void Initialize(List<object> parameters)
{
Key = (int) parameters[0];
}
}
}