hangfire 测试提交
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
47be1e52c9
commit
4d4af84716
|
@ -16,12 +16,12 @@ namespace IRaCIS.Core.API
|
||||||
services.AddHangfire(hangFireConfig =>
|
services.AddHangfire(hangFireConfig =>
|
||||||
{
|
{
|
||||||
//本地window 调试 使用内存,服务器部署使用数据库,防止服务器任务调度到本地
|
//本地window 调试 使用内存,服务器部署使用数据库,防止服务器任务调度到本地
|
||||||
//if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
//{
|
{
|
||||||
// hangFireConfig.UseInMemoryStorage();
|
hangFireConfig.UseInMemoryStorage();
|
||||||
|
|
||||||
//}
|
}
|
||||||
//else
|
else
|
||||||
{
|
{
|
||||||
//指定存储介质
|
//指定存储介质
|
||||||
hangFireConfig.UseSqlServerStorage(hangFireConnStr, new SqlServerStorageOptions()
|
hangFireConfig.UseSqlServerStorage(hangFireConnStr, new SqlServerStorageOptions()
|
||||||
|
|
|
@ -2328,6 +2328,13 @@
|
||||||
</member>
|
</member>
|
||||||
<!-- Badly formed XML comment ignored for member "T:IRaCIS.Core.Application.Service.MinimalApiService.TestMinimalApiService" -->
|
<!-- Badly formed XML comment ignored for member "T:IRaCIS.Core.Application.Service.MinimalApiService.TestMinimalApiService" -->
|
||||||
<!-- Badly formed XML comment ignored for member "M:IRaCIS.Core.Application.Service.MinimalApiService.TestMinimalApiService.#ctor(IRaCIS.Core.Domain.Share.IUserInfo,IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Infra.EFCore.TestLength})" -->
|
<!-- Badly formed XML comment ignored for member "M:IRaCIS.Core.Application.Service.MinimalApiService.TestMinimalApiService.#ctor(IRaCIS.Core.Domain.Share.IUserInfo,IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Infra.EFCore.TestLength})" -->
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.MinimalApiService.TestMinimalApiService.TestEfcoreJson">
|
||||||
|
<summary>
|
||||||
|
测试efcore json 列支持情况
|
||||||
|
https://devblogs.microsoft.com/dotnet/array-mapping-in-ef-core-8/
|
||||||
|
</summary>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.OAuthService.TestClientCredentialsAsync">
|
<member name="M:IRaCIS.Core.Application.Service.OAuthService.TestClientCredentialsAsync">
|
||||||
<summary>
|
<summary>
|
||||||
测试客户端凭证代码
|
测试客户端凭证代码
|
||||||
|
|
|
@ -24,7 +24,11 @@ namespace IRaCIS.Core.Application.Service.MinimalApiService
|
||||||
public class TestMinimalApiService(IUserInfo _userInfo, IRepository<TestLength> _testLengthRepository) : ServiceBase
|
public class TestMinimalApiService(IUserInfo _userInfo, IRepository<TestLength> _testLengthRepository) : ServiceBase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 测试efcore json 列支持情况
|
||||||
|
/// https://devblogs.microsoft.com/dotnet/array-mapping-in-ef-core-8/
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<IResponseOutput> TestEfcoreJson()
|
public async Task<IResponseOutput> TestEfcoreJson()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -43,10 +47,13 @@ namespace IRaCIS.Core.Application.Service.MinimalApiService
|
||||||
|
|
||||||
var jobjectList1 = _testLengthRepository.AsQueryable().Where(t=>t.TestJsonObjectLsit.Any(c=>c.Name=="name1")).ToList();
|
var jobjectList1 = _testLengthRepository.AsQueryable().Where(t=>t.TestJsonObjectLsit.Any(c=>c.Name=="name1")).ToList();
|
||||||
|
|
||||||
|
var jobjectList2 = _testLengthRepository.AsQueryable().Where(t => t.TestJsonObjectLsit.Any(c => c.Name == "name1")).SelectMany(t=>t.TestJsonObjectLsit).ToList();
|
||||||
|
|
||||||
|
|
||||||
var d1 = _testLengthRepository.Where(t => t.StringList.Any(t => t == "string1")).ToList();
|
var d1 = _testLengthRepository.Where(t => t.StringList.Any(t => t == "string1")).ToList();
|
||||||
var d2 = _testLengthRepository.Where(t => t.StringList.Contains("string1")).ToList();
|
var d2 = _testLengthRepository.Where(t => t.StringList.Contains("string1")).ToList();
|
||||||
|
|
||||||
|
|
||||||
//selectMany 报错 不支持
|
//selectMany 报错 不支持
|
||||||
//var d20 = _testLengthRepository.Where(t => t.StringList.Contains("string1")).SelectMany(t => t.StringList).ToList();
|
//var d20 = _testLengthRepository.Where(t => t.StringList.Contains("string1")).SelectMany(t => t.StringList).ToList();
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace IRaCIS.Core.Domain.Models;
|
||||||
|
|
||||||
[Comment("后台 - 系统账户")]
|
[Comment("后台 - 系统账户")]
|
||||||
[Table("User")]
|
[Table("User")]
|
||||||
public class User : BaseFullDeleteAuditEntity
|
public class User : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue