29 lines
954 B
C#
29 lines
954 B
C#
/*
|
||
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
|
||
*如果数据库字段发生变化,请在代码生器重新生成此Model
|
||
*/
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using SqlSugar;
|
||
using VolPro.Entity.SystemModels;
|
||
|
||
namespace VolPro.Entity.DomainModels
|
||
{
|
||
public partial class gateway_nodes
|
||
{
|
||
/// <summary>
|
||
/// 适配器类型列表。从 AdapterTypes(逗号分隔字符串)解析。
|
||
/// 示例:"Owl:main,MC4:31ku" → ["Owl:main","MC4:31ku"]
|
||
/// </summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public List<string> AdapterList
|
||
{
|
||
get => string.IsNullOrEmpty(AdapterTypes)
|
||
? new List<string>()
|
||
: AdapterTypes.Split(',').Select(x => x.Trim()).Where(x => !string.IsNullOrEmpty(x)).ToList();
|
||
set => AdapterTypes = value != null ? string.Join(",", value) : "";
|
||
}
|
||
}
|
||
}
|