Skip to content

Commit

Permalink
🤗 adjust entitybase property to virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkSoul committed Nov 15, 2020
1 parent 5f554bc commit 2f4170e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,17 @@ public abstract class PrivateEntity<TKey> : PrivateEntityBase<TKey>
/// <summary>
/// 创建时间
/// </summary>
public DateTimeOffset CreatedTime { get; set; }
public virtual DateTimeOffset CreatedTime { get; set; }

/// <summary>
/// 更新时间
/// </summary>
public DateTimeOffset? UpdatedTime { get; set; }
public virtual DateTimeOffset? UpdatedTime { get; set; }

/// <summary>
/// 软删除
/// </summary>
[JsonIgnore, FakeDelete(true)]
public bool IsDeleted { get; set; }
public virtual bool IsDeleted { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ public abstract class PrivateEntityBase<TKey> : IPrivateEntity
/// </summary>
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public TKey Id { get; set; }
public virtual TKey Id { get; set; }

/// <summary>
/// 租户Id
/// </summary>
[JsonIgnore]
public Guid? TenantId { get; set; }
public virtual Guid? TenantId { get; set; }
}
}
2 changes: 1 addition & 1 deletion framework/Fur/Fur.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RepositoryUrl>https://gitee.com/monksoul/Fur</RepositoryUrl>
<RepositoryType>Gitee</RepositoryType>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Version>1.0.2</Version>
<Version>1.0.2.1</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
Expand Down

0 comments on commit 2f4170e

Please sign in to comment.