mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-02 18:17:31 +08:00
build: 📦 新的解决方案文件格式 slnx 支持来了
This commit is contained in:
@ -16,5 +16,5 @@ public interface ICache<out TCacheLoad, out TService>
|
||||
/// <summary>
|
||||
/// 关联的服务
|
||||
/// </summary>
|
||||
public TService Service { get; }
|
||||
TService Service { get; }
|
||||
}
|
@ -8,10 +8,10 @@ public interface IEventData<T>
|
||||
/// <summary>
|
||||
/// 事件发生时间
|
||||
/// </summary>
|
||||
public DateTime CreatedTime { get; init; }
|
||||
DateTime CreatedTime { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 负载
|
||||
/// </summary>
|
||||
public T PayLoad { get; init; }
|
||||
T PayLoad { get; init; }
|
||||
}
|
@ -58,7 +58,7 @@ public sealed class FreeSqlBuilder(DatabaseOptions databaseOptions)
|
||||
{
|
||||
return typeof(IBaseRepository<>).MakeGenericType(entityType)
|
||||
.GetMethod( //
|
||||
nameof(IBaseRepository<dynamic>.Insert) //
|
||||
nameof(IBaseRepository<>.Insert) //
|
||||
, BindingFlags.Public | BindingFlags.Instance //
|
||||
, null //
|
||||
, CallingConventions.Any //
|
||||
@ -119,7 +119,7 @@ public sealed class FreeSqlBuilder(DatabaseOptions databaseOptions)
|
||||
|
||||
// 如果表存在数据,跳过
|
||||
var select = typeof(IFreeSql).GetMethod(nameof(freeSql.Select), 1, Type.EmptyTypes)?.MakeGenericMethod(entityType).Invoke(freeSql, null);
|
||||
if (select?.GetType().GetMethod(nameof(ISelect<dynamic>.Any), 0, Type.EmptyTypes)?.Invoke(select, null) as bool? ?? true) {
|
||||
if (select?.GetType().GetMethod(nameof(ISelect<>.Any), 0, Type.EmptyTypes)?.Invoke(select, null) as bool? ?? true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ public interface IApiModule : ICrudModule<CreateApiReq, QueryApiRsp // 创建类
|
||||
/// <summary>
|
||||
/// 平面查询接口
|
||||
/// </summary>
|
||||
public Task<IEnumerable<QueryApiRsp>> PlainQueryAsync(QueryReq<QueryApiReq> req);
|
||||
Task<IEnumerable<QueryApiRsp>> PlainQueryAsync(QueryReq<QueryApiReq> req);
|
||||
|
||||
/// <summary>
|
||||
/// 同步接口
|
||||
|
@ -10,7 +10,7 @@ public interface IApiService : IService, IApiModule
|
||||
/// <summary>
|
||||
/// 接口是否存在
|
||||
/// </summary>
|
||||
public Task<bool> ExistAsync(QueryReq<QueryApiReq> req);
|
||||
Task<bool> ExistAsync(QueryReq<QueryApiReq> req);
|
||||
|
||||
/// <summary>
|
||||
/// 反射接口列表
|
||||
|
@ -10,7 +10,7 @@ public interface IUserService : IService, IUserModule
|
||||
/// <summary>
|
||||
/// 用户是否存在
|
||||
/// </summary>
|
||||
public Task<bool> ExistAsync(QueryReq<QueryUserReq> req);
|
||||
Task<bool> ExistAsync(QueryReq<QueryUserReq> req);
|
||||
|
||||
/// <summary>
|
||||
/// 用户编号登录
|
||||
|
Reference in New Issue
Block a user