37 lines
997 B
C#
37 lines
997 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
|
|
namespace JiShe.CollectBus.Analyzers.Shared
|
|
{
|
|
public interface ISourceEntityAccessor<T>
|
|
{
|
|
/// <summary>
|
|
/// 获取属性值
|
|
/// </summary>
|
|
/// <param name="entity"></param>
|
|
/// <param name="propertyName"></param>
|
|
/// <returns></returns>
|
|
object GetPropertyValue(T entity, string propertyName);
|
|
|
|
/// <summary>
|
|
/// 设置属性值
|
|
/// </summary>
|
|
/// <param name="entity"></param>
|
|
/// <param name="propertyName"></param>
|
|
/// <param name="value"></param>
|
|
void SetPropertyValue(T entity, string propertyName, object value);
|
|
|
|
/// <summary>
|
|
/// 属性名称集合
|
|
/// </summary>
|
|
List<string> PropertyNameList { get; }
|
|
|
|
/// <summary>
|
|
/// 属性信息集合
|
|
/// </summary>
|
|
List<PropertyInfo> PropertyInfoList { get; }
|
|
}
|
|
}
|