مسطح سازی رابطههای EF با Express Mapper
نویسنده: وحید نصیری
تاریخ: ۱۳۹۵/۰۲/۰۲ ۱۰:۳
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
//code to set up the mapping ExpressMapper.Mapper.Register<Father, FlattenDto>().Flatten(); ExpressMapper.Mapper.Compile(CompilationTypes.Source); //code to execute the EF command and get the data var flattened = dbContext.Fathers.Project<Father, FlattenDto>().ToList();