12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading;
- namespace NXWMS.Client.Code.Extends
- {
- /// <summary>
- /// 实体扩展
- /// </summary>
- public static class EntityExtentions
- {
- /// <summary>
- /// 追加并且又返回值
- /// </summary>
- /// <typeparam name="T"></typeparam>
- /// <param name="tEntity"></param>
- /// <param name="data"></param>
- /// <returns></returns>
- public static List<T> Add<T>(this List<T> tEntity,T data) where T : class
- {
- tEntity.Add(data);
- return tEntity;
- }
- }
- }
|