Infrastructure/OpenAuth.BaseApp/Tree/LongTreeApp.cs

31 lines
854 B
C#
Raw Normal View History

2024-11-13 09:19:06 +08:00
using System.Linq;
using Infrastructure;
2025-05-13 15:18:14 +08:00
using OpenAuth.Auth.Interface;
2024-11-13 09:19:06 +08:00
using OpenAuth.Repository;
using OpenAuth.Repository.Core;
using SqlSugar;
2025-05-13 15:18:14 +08:00
namespace OpenAuth.BaseApp
2024-11-13 09:19:06 +08:00
{
public class LongTreeApp<T, TDbContext> : TreeApp<T, TDbContext, long>
where T : TreeEntity<long>, new()
where TDbContext : SugarUnitOfWork, new()
{
public LongTreeApp(ISugarUnitOfWork<TDbContext> unitWork, ISimpleClient<T> repository, IAuth auth)
: base(unitWork, repository, auth)
{
}
protected override long GetDefaultId()
{
return 0; // Define your default Id value for long type
}
protected override string GetDefaultCascadeId()
{
return "";
//return "0."; // Define your default CascadeId value for long type
}
}
}