You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
854 B
C#
31 lines
854 B
C#
using System.Linq;
|
|
using Infrastructure;
|
|
using OpenAuth.App.Interface;
|
|
using OpenAuth.Repository;
|
|
using OpenAuth.Repository.Core;
|
|
using SqlSugar;
|
|
|
|
namespace OpenAuth.App.Base
|
|
{
|
|
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
|
|
}
|
|
}
|
|
} |