1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace WingServerCommon.Mapper
- {
- public static class MappingExtends
- {
- /// <summary>
- /// Mapping to Type C
- /// </summary>
- /// <typeparam name="T"></typeparam>
- /// <typeparam name="C"></typeparam>
- /// <param name="entity"></param>
- /// <returns></returns>
- public static C MappingTo<C>(this object entity)
- {
- return AutoMapping.MapperInstance.Map<C>(entity);
- }
- }
- }
|