Skip to content

Commit

Permalink
Merge pull request #34 from Takasaki-Studio/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Takasakiii authored Nov 7, 2023
2 parents cf53ff0 + db79916 commit f27e45a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Lina/Database/Models/BaseEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ public abstract class BaseEntity<TPkType>
/// Entity id
/// </summary>
public TPkType Id { get; set; } = default!;

public T Clone<T>()
where T: BaseEntity<TPkType>
{
return (T)MemberwiseClone();
}
}
2 changes: 1 addition & 1 deletion Lina/Lina.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.2.3</Version>
<Version>1.2.4</Version>
<PackageId>TakasakiStudio.Lina</PackageId>
<Authors>TakasakiStudio</Authors>
<RepositoryUrl>https://github.com/Takasaki-Studio/Lina</RepositoryUrl>
Expand Down

0 comments on commit f27e45a

Please sign in to comment.