Skip to content

Commit

Permalink
fix: fix: github workflow failing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeem-cs committed Oct 7, 2024
1 parent abebc7b commit c294f55
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Contentstack.Core.Tests/Contentstack.Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">

<PropertyGroup>
<TargetFramework>net8.0;net70;</TargetFramework>
<TargetFrameworks>net8.0;net70;</TargetFrameworks>

<IsPackable>false</IsPackable>
<ReleaseVersion>$(Version)</ReleaseVersion>
Expand Down
2 changes: 1 addition & 1 deletion Contentstack.Core.Tests/EntryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
}
});
}
Expand Down
18 changes: 17 additions & 1 deletion Contentstack.Core/Models/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private string _Url

internal Dictionary<string, object> _metadata = new Dictionary<string, object>();
#endregion


#region Public Properties
/// <summary>
/// Title of an entry
Expand Down Expand Up @@ -110,6 +110,22 @@ private string _Url
/// </example>
public Dictionary<string, object> Metadata { get; set; }

/// <summary>
/// Set key/value attributes of an current entry instance.
/// </summary>
/// <example>
/// <code>
/// ContentstackClient stack = new ContentstackClinet(&quot;api_key&quot;, &quot;delivery_token&quot;, &quot;environment&quot;);
/// Entry entry = stack.ContentType(&quot;contentType_id&quot;).Entry(&quot;entry_uid&quot;);
/// entry.Fetch&lt;Product&gt;().ContinueWith((entryResult) =&gt; {
/// //Your callback code.
/// //var result = entryResult.Result.Object;
/// });
/// </code>
/// </example>
public Dictionary<string, object> _variant { get; set; }


/// <summary>
/// Set key/value attributes of an current entry instance.
/// </summary>
Expand Down

0 comments on commit c294f55

Please sign in to comment.