From f3be965879ecc1da56aacb741163b750b6da9822 Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 13 Nov 2020 17:00:02 +0100 Subject: [PATCH] - add Key - move IGBaseObject to main lib - mark InitializeFromString() obsolete --- {GBase.Api => GBase/Interfaces}/IGBaseObject.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) rename {GBase.Api => GBase/Interfaces}/IGBaseObject.cs (71%) diff --git a/GBase.Api/IGBaseObject.cs b/GBase/Interfaces/IGBaseObject.cs similarity index 71% rename from GBase.Api/IGBaseObject.cs rename to GBase/Interfaces/IGBaseObject.cs index 7319dd8..9a9f095 100644 --- a/GBase.Api/IGBaseObject.cs +++ b/GBase/Interfaces/IGBaseObject.cs @@ -2,15 +2,23 @@ // Created: 2020-02-14 // Copyright(c) 2020 SimonG. All Rights Reserved. +using System; using System.Collections.Generic; +using GBase.Attributes; -namespace GBase.Api +namespace GBase.Interfaces { /// /// GBase object that allows conversion from /// public interface IGBaseObject { + /// + /// Key + /// + [GBaseColumn(true)] + GBaseKey Key { get; set; } + /// /// The FileName of the GBase file for an entry of this object /// @@ -20,8 +28,9 @@ namespace GBase.Api /// Initialize this from a given /// /// The given + [Obsolete] void InitializeFromString(string @string); //TODO: Try to remove this method, work with keys - void Initialize(List parameters); + void Initialize(GBaseKey key, List parameters); } } \ No newline at end of file