This commit is contained in:
DEVICE8\12494
2023-05-19 08:37:27 +08:00
parent d8099b38df
commit 1c31a4e496
5 changed files with 64 additions and 90 deletions

View File

@@ -3,15 +3,12 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tnb.EquipMgr.Entities
{
using global::Tnb.Common.Contracts;
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.EquipMgr.Entities;
namespace Tnb.EquipMgr.Entities
{
/// <summary>
///

View File

@@ -1,7 +1,7 @@
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
using Tnb.Common.Contracts;
namespace Tnb.EquipMgr.Entities;

View File

@@ -10,9 +10,9 @@ using JNPF.FriendlyException;
using SqlSugar;
using Tnb.EquipMgr.Entities.Dto;
using Tnb.EquipMgr.Entities;
using Tnb.EquipMgr.Utils;
using Mapster;
using JNPF.Common.Contracts;
using JNPF.Common.Extension;
namespace Tnb.EquipMgr
{

View File

@@ -1,23 +0,0 @@
using System.Linq.Expressions;
namespace Tnb.EquipMgr.Utils
{
//public class PropertySet<T>
//{
// public static Dictionary<string, Action<object, object>> ValueFactories = new Dictionary<string, Action<object, object>>(StringComparer.OrdinalIgnoreCase);
// public static Action<object, object> CreateSetPropertyValueAction(string propertyName)
// {
// var property = typeof(T).GetProperty(propertyName);
// var target = Expression.Parameter(typeof(object));
// var propertyValue = Expression.Parameter(typeof(object));
// var castTarget = Expression.Convert(target, typeof(T));
// var castPropertyValue = Expression.Convert(propertyValue, property!.PropertyType);
// var setPropertyValue = Expression.Call(castTarget, property.GetSetMethod()!, castPropertyValue);
// return Expression.Lambda<Action<object, object>>(setPropertyValue, target, propertyValue).Compile();
// }
//}
}

View File

@@ -5,7 +5,7 @@ using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace Tnb.Common.Extension
namespace JNPF.Common.Extension
{
public static class LambdaExpressionExtensions
{