Esempio n. 1
0
        public static TProjection ProjectedAs <TProjection>(this object item) where TProjection : class
        {
            var adapter = TypeAdapterFactory.CreateAdapter();

            return(adapter.Adapt <TProjection>(item));
        }
Esempio n. 2
0
        public static List <TProjection> ProjectedAsCollection <TProjection>(this IEnumerable items) where TProjection : class
        {
            var adapter = TypeAdapterFactory.CreateAdapter();

            return(adapter.Adapt <List <TProjection> >(items));
        }