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 : TreeApp where T : TreeEntity, new() where TDbContext : SugarUnitOfWork, new() { public LongTreeApp(ISugarUnitOfWork unitWork, ISimpleClient 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 } } }