Skip to content

Commit

Permalink
Update EasyDataAspNetCoreTest03
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergiy Korzh committed Nov 29, 2023
1 parent f25b501 commit 73f84b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ private bool TryResolveDefaultValue(IProperty property, out object value)
value = dva?.Value;

if (value == null) {
var instance = ResolveInstance(property.DeclaringEntityType);
var instance = ResolveInstance(property.DeclaringType as IEntityType);
value = property.PropertyInfo.GetValue(instance);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Nullable>disable</Nullable>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace EasyDataBasicDemo.Models

public class ErrorViewModel
{
public string? RequestId { get; set; }
public string RequestId { get; set; }

public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
Expand Down

0 comments on commit 73f84b1

Please sign in to comment.