Skip to content

Commit

Permalink
修复动态类型找不到方法的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Jun 7, 2024
1 parent 4ec8c0f commit a293999
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<Version>5.1.5</Version>
<FileVersion>5.1.5</FileVersion>
<AssemblyVersion>5.1.5</AssemblyVersion>
<Version>5.1.6</Version>
<FileVersion>5.1.6</FileVersion>
<AssemblyVersion>5.1.6</AssemblyVersion>
<Authors>zlzforever@163.com;</Authors>
<Copyright>Copyright 2023 Lewis Zou</Copyright>
<Description>DotnetSpider, a .NET Standard web crawling library. It is lightweight, efficient and fast high-level web crawling &amp; scraping framework</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/DotnetSpider/DataFlow/Storage/Entity/EntityBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace DotnetSpider.DataFlow.Storage.Entity;
/// 获取实体的表元数据
/// </summary>
/// <returns></returns>
TableMetadata IEntity.GetTableMetadata()
public TableMetadata GetTableMetadata()
{
Configure();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected override async Task HandleAsync(DataFlowContext context,
foreach (var kv in entities)
{
var list = kv.Value;
var firstItem = list.ElementAtOrDefault(0);
var firstItem = list.ElementAtOrDefault(0) as IEntity;
if (firstItem == null)
{
continue;
Expand Down

0 comments on commit a293999

Please sign in to comment.