diff --git a/Lina/Database/Models/BaseEntity.cs b/Lina/Database/Models/BaseEntity.cs index 947fd0f..24aa97b 100644 --- a/Lina/Database/Models/BaseEntity.cs +++ b/Lina/Database/Models/BaseEntity.cs @@ -10,4 +10,10 @@ public abstract class BaseEntity /// Entity id /// public TPkType Id { get; set; } = default!; + + public T Clone() + where T: BaseEntity + { + return (T)MemberwiseClone(); + } } \ No newline at end of file diff --git a/Lina/Lina.csproj b/Lina/Lina.csproj index 1501c6d..7c184af 100644 --- a/Lina/Lina.csproj +++ b/Lina/Lina.csproj @@ -5,7 +5,7 @@ enable enable true - 1.2.3 + 1.2.4 TakasakiStudio.Lina TakasakiStudio https://github.com/Takasaki-Studio/Lina