diff --git a/Contentstack.Core.Tests/EntryTest.cs b/Contentstack.Core.Tests/EntryTest.cs index e35bcba..ea9fbd4 100644 --- a/Contentstack.Core.Tests/EntryTest.cs +++ b/Contentstack.Core.Tests/EntryTest.cs @@ -98,6 +98,8 @@ await sourceEntry else { Assert.True(result.Uid == sourceEntry.Uid); + Assert.NotNull(result._variant); + Assert.NotNull(result._variant["_uid"]); } }); } @@ -120,6 +122,8 @@ await sourceEntry else { Assert.True(result.Uid == sourceEntry.Uid); + Assert.NotNull(result._variant); + 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. ///