1
This commit is contained in:
@@ -3,15 +3,12 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Tnb.EquipMgr.Entities
|
|
||||||
{
|
|
||||||
using global::Tnb.Common.Contracts;
|
|
||||||
using JNPF.Common.Contracts;
|
using JNPF.Common.Contracts;
|
||||||
using JNPF.Common.Security;
|
using JNPF.Common.Security;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace Tnb.EquipMgr.Entities;
|
namespace Tnb.EquipMgr.Entities
|
||||||
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using JNPF.Common.Contracts;
|
using JNPF.Common.Contracts;
|
||||||
using JNPF.Common.Security;
|
using JNPF.Common.Security;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using Tnb.Common.Contracts;
|
|
||||||
|
|
||||||
namespace Tnb.EquipMgr.Entities;
|
namespace Tnb.EquipMgr.Entities;
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ using JNPF.FriendlyException;
|
|||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using Tnb.EquipMgr.Entities.Dto;
|
using Tnb.EquipMgr.Entities.Dto;
|
||||||
using Tnb.EquipMgr.Entities;
|
using Tnb.EquipMgr.Entities;
|
||||||
using Tnb.EquipMgr.Utils;
|
|
||||||
using Mapster;
|
using Mapster;
|
||||||
using JNPF.Common.Contracts;
|
using JNPF.Common.Contracts;
|
||||||
|
using JNPF.Common.Extension;
|
||||||
|
|
||||||
namespace Tnb.EquipMgr
|
namespace Tnb.EquipMgr
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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();
|
|
||||||
// }
|
|
||||||
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -5,7 +5,7 @@ using System.Linq.Expressions;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Tnb.Common.Extension
|
namespace JNPF.Common.Extension
|
||||||
{
|
{
|
||||||
public static class LambdaExpressionExtensions
|
public static class LambdaExpressionExtensions
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user