public static TFSEntity MapTo <TSource, TFSEntity>(this TSource source, IMapper mapper, FSScope scope, Action <IMappingOperationOptions <TSource, TFSEntity> > opts)
            where TFSEntity : class, IDevFrameworkObject
        {
            var target = scope.Create <TFSEntity>();

            return(mapper.Map(source, target, opts));
        }
예제 #2
0
 public TFSEntity Create <TFSEntity>(FSScope scope)
     where TFSEntity : class, IDevFrameworkObject => scope.Create <TFSEntity>();
 public static TFSEntity MapTo <TFSEntity>(this object source, IMapper mapper, FSScope scope)
     where TFSEntity : class, IDevFrameworkObject
 {
     return(mapper.Map(source, scope.Create <TFSEntity>()));
 }