build: 📦 新的解决方案文件格式 slnx 支持来了

This commit is contained in:
tk
2025-02-19 10:52:35 +08:00
committed by nsnail
parent 9155db4d9d
commit a3b4608919
18 changed files with 199 additions and 364 deletions

View File

@ -16,5 +16,5 @@ public interface ICache<out TCacheLoad, out TService>
/// <summary>
/// 关联的服务
/// </summary>
public TService Service { get; }
TService Service { get; }
}

View File

@ -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; }
}

View File

@ -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;
}

View File

@ -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>
/// 同步接口

View File

@ -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>
/// 反射接口列表

View File

@ -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>
/// 用户编号登录