摘要:
新建项目用nuget安装entityFramework,Install-Package Entityframework建一个model和context //[Table("Customers")] public class Customer { //[Key] ... 阅读全文
摘要:
AutoMapper对象转换方面(Object-Object Mapping)对象映射工具,实现对象和对象之间的转化。主要应用在项目的dto,model,entity或viewmodel之间转换,其实AutoMapper涵盖所有对象(Object)之间的转换。下面演示他的基本用法: publi... 阅读全文