refactor: Projektdateien migriert. Cloud-NuGet-Pakete durch lokale NuGet-Projekte ersetzt.
This commit is contained in:
17
HRD.WebApi/Models/BaseEntityCore.cs
Normal file
17
HRD.WebApi/Models/BaseEntityCore.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace HRD.WebApi.DAL
|
||||
{
|
||||
public abstract class BaseEntityCore : IBaseEntityCore
|
||||
{
|
||||
public virtual int GetEntityId() => 0;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Id: {GetEntityId()}; {this.GetType().Name}";
|
||||
}
|
||||
|
||||
public virtual string EntityInfo()
|
||||
{
|
||||
return ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user