diff --git a/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj b/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj index 0cb855a..e4f7ede 100644 --- a/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj +++ b/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj @@ -1,7 +1,7 @@  - net8.0;net70; + net8.0;net70; false $(Version) diff --git a/Contentstack.Core.Tests/EntryTest.cs b/Contentstack.Core.Tests/EntryTest.cs index ec578eb..2312422 100644 --- a/Contentstack.Core.Tests/EntryTest.cs +++ b/Contentstack.Core.Tests/EntryTest.cs @@ -99,7 +99,7 @@ await sourceEntry { Assert.True(result.Uid == sourceEntry.Uid); Assert.NotNull(result._variant); - Assert.NotNull(result._variant.uid); + Assert.NotNull(result._variant["uid"]); } }); } diff --git a/Contentstack.Core/Models/Entry.cs b/Contentstack.Core/Models/Entry.cs index 401a7d7..945a7ea 100644 --- a/Contentstack.Core/Models/Entry.cs +++ b/Contentstack.Core/Models/Entry.cs @@ -48,7 +48,7 @@ private string _Url internal Dictionary _metadata = new Dictionary(); #endregion - + #region Public Properties /// /// Title of an entry @@ -110,6 +110,22 @@ private string _Url /// public Dictionary Metadata { get; set; } + /// + /// Set key/value attributes of an current entry instance. + /// + /// + /// + /// ContentstackClient stack = new ContentstackClinet("api_key", "delivery_token", "environment"); + /// Entry entry = stack.ContentType("contentType_id").Entry("entry_uid"); + /// entry.Fetch<Product>().ContinueWith((entryResult) => { + /// //Your callback code. + /// //var result = entryResult.Result.Object; + /// }); + /// + /// + public Dictionary _variant { get; set; } + + /// /// Set key/value attributes of an current entry instance. ///