优化了示例工程

This commit is contained in:
fengjiayi
2024-09-28 23:55:19 +08:00
parent 51bdbab4d1
commit 10e5d172c6
56 changed files with 9920 additions and 455 deletions

View File

@@ -20,9 +20,9 @@ namespace Serein.Library.Entity
/// </summary>
public bool IsExplicitData { get; set; }
/// <summary>
/// 是否为值转换器
/// 转换器 IEnumConvertor<,>
/// </summary>
public bool IsEnumConvertor { get; set; }
public Func<object, object> Convertor { get; set; }
///// <summary>
///// 显式类型
///// </summary>
@@ -57,6 +57,7 @@ namespace Serein.Library.Entity
IsExplicitData = IsExplicitData,
ExplicitType = ExplicitType,
ExplicitTypeName = ExplicitTypeName,
Convertor = Convertor,
DataType = DataType,
ParameterName = ParameterName,
DataValue = string.IsNullOrEmpty(DataValue) ? string.Empty : DataValue,

View File

@@ -7,11 +7,13 @@ namespace Serein.Library.Entity
{
/// <summary>
/// 每个节点有独自的MethodDetails实例
/// </summary>
public class MethodDetails
{
/// <summary>
/// 拷贝
/// 从DLL拖动出来时拷贝新的实例
/// </summary>
/// <returns></returns>
public MethodDetails Clone()
@@ -37,7 +39,7 @@ namespace Serein.Library.Entity
/// <summary>
/// 是否保护参数
/// </summary>
public bool IsProtectionParameter { get; set; } = false;
public bool IsProtectionParameter { get; set; } = true;
/// <summary>
/// 作用实例的类型