diff --git a/GBase/GBaseObject.cs b/GBase/GBaseObject.cs index f4d3939..0d03ad2 100644 --- a/GBase/GBaseObject.cs +++ b/GBase/GBaseObject.cs @@ -40,12 +40,6 @@ namespace GBase protected async Task> GetValues(T @this, string propertyName, CancellationToken cancellationToken) => await _gBaseTable.GetValues(@this, propertyName, cancellationToken); - /// - /// Initialize this from a given - /// - /// The given - public abstract void InitializeFromString(string @string); - public abstract void Initialize(GBaseKey key, List parameters); } } \ No newline at end of file diff --git a/Test.GBase/GBaseIntegrationTest/Group.cs b/Test.GBase/GBaseIntegrationTest/Group.cs index 7917268..3fec9cc 100644 --- a/Test.GBase/GBaseIntegrationTest/Group.cs +++ b/Test.GBase/GBaseIntegrationTest/Group.cs @@ -32,7 +32,6 @@ namespace Test.GBase.GBaseIntegrationTest public string FileName => $"Group{Number}"; public override string ToString() => $"{Number}"; - public void InitializeFromString(string @string) => Number = int.Parse(@string); public void Initialize(GBaseKey key, List parameters) { Key = key; diff --git a/Test.GBase/GBaseIntegrationTest/Item.cs b/Test.GBase/GBaseIntegrationTest/Item.cs index 65e372f..e85b4a0 100644 --- a/Test.GBase/GBaseIntegrationTest/Item.cs +++ b/Test.GBase/GBaseIntegrationTest/Item.cs @@ -33,14 +33,6 @@ namespace Test.GBase.GBaseIntegrationTest public override string ToString() => $"{Number}/{Name}"; - public void InitializeFromString(string @string) - { - string[] properties = @string.Split('/'); - - Number = int.Parse(properties[0]); - Name = properties[1]; - } - public void Initialize(GBaseKey key, List parameters) { Key = key; diff --git a/Test.GBase/TestClasses/Foo.cs b/Test.GBase/TestClasses/Foo.cs index 2aacb47..acdfbe5 100644 --- a/Test.GBase/TestClasses/Foo.cs +++ b/Test.GBase/TestClasses/Foo.cs @@ -40,11 +40,6 @@ namespace Test.GBase.TestClasses public GBaseKey Key { get; set; } public string FileName => Name; - public void InitializeFromString(string @string) - { - throw new NotImplementedException(); - } - public void Initialize(GBaseKey key, List parameters) { throw new NotImplementedException(); diff --git a/Test.GBase/TestClasses/UserType.cs b/Test.GBase/TestClasses/UserType.cs index afbbad6..3ad9926 100644 --- a/Test.GBase/TestClasses/UserType.cs +++ b/Test.GBase/TestClasses/UserType.cs @@ -26,12 +26,6 @@ namespace Test.GBase.TestClasses public GBaseKey Key { get; set; } public string FileName { get; } - public void InitializeFromString(string @string) - { - string numberString = @string.Split('_').Last(); - Number = Convert.ToInt32(numberString); - } - public void Initialize(GBaseKey key, List parameters) { throw new NotImplementedException();