From 24a3dc8e5fc9d697808f1f1df8af3afd339db5c2 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Fri, 6 Mar 2020 15:05:15 +0100 Subject: [PATCH] - implement and use NotifyGBaseEntryChanged --- Test.GBase/TestClasses/Foo.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Test.GBase/TestClasses/Foo.cs b/Test.GBase/TestClasses/Foo.cs index e605a0c..20dd82e 100644 --- a/Test.GBase/TestClasses/Foo.cs +++ b/Test.GBase/TestClasses/Foo.cs @@ -2,14 +2,25 @@ // Created: 2020-01-27 // Copyright(c) 2020 SimonG. All Rights Reserved. +using GBase.Api; using GBase.Attributes; namespace Test.GBase.TestClasses { [GBaseTable] - public class Foo + public class Foo : NotifyGBaseEntryChanged { + private string _name; + [GBaseEntry] - public string Name { get; set; } + public string Name + { + get => _name; + set + { + _name = value; + RaiseGBaseEntryChanged(this, nameof(Name), _name); + } + } } } \ No newline at end of file