コード例 #1
0
        public static IList <TViewModel> ToViewModels <TModel, TViewModel>(this IList <TModel> models) where TModel : IEntitySet
        {
            IList <TViewModel> t = Mapping.Default <IList <TModel>, IList <TViewModel> >(models);

            return(t);
        }
コード例 #2
0
        public static TViewModel ToViewModel <TViewModel>(this IEntitySet entity) where TViewModel : class
        {
            TViewModel t = Mapping.Default <IEntitySet, TViewModel>(entity);

            return(t);
        }