隐藏平台warn,放开自有模块warn

This commit is contained in:
2023-05-16 17:24:07 +08:00
parent 67d599dce6
commit 1cb50e15d2
42 changed files with 66 additions and 28 deletions

View File

@@ -57,10 +57,10 @@ public class RunService : IRunService, ITransient
/// </summary>
private readonly IBillRullService _billRuleService;
/// <summary>
/// 缓存管理.
/// </summary>
private readonly ICacheManager _cacheManager;
///// <summary>
///// 缓存管理.
///// </summary>
//private readonly ICacheManager _cacheManager;
/// <summary>
/// 用户管理.

View File

@@ -6,6 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8625;CS8629;CS1572;CS1573;CS0168;</NoWarn>
</PropertyGroup>
<ItemGroup>

View File

@@ -872,7 +872,7 @@ namespace JNPF.VisualDev
var len = rowChildDatas.Select(x => x.Value.Count()).OrderByDescending(x => x).FirstOrDefault();
if (len != null && len > 0)
if (len > 0)
{
for (int i = 0; i < len; i++)
{

View File

@@ -1281,7 +1281,7 @@ public class VisualDevService : IVisualDevService, IDynamicApiController, ITrans
foreach (DbTableAndFieldModel? item in addTableList)
{
bool res = await _changeDataBase.Create(link, item, item.FieldList);
if (!res) throw null;
if (!res) Oops.Oh(ErrorCode.COM1008); // throw null;
}
if (await _visualDevRepository.IsAnyAsync(x => x.Id.Equals(vEntity.Id)))

View File

@@ -409,7 +409,7 @@ public class VisualdevModelAppService : IDynamicApiController, ITransient
var len = rowChildDatas.Select(x => x.Value.Count()).OrderByDescending(x => x).FirstOrDefault();
if (len != null && len > 0)
if (len > 0)
{
for (int i = 0; i < len; i++)
{