搜尋此網誌

2014-08-16

AutoMapper

Getting Started Guide
AutoMapperSamples

MRKT AutoMapper

Can Automapper be used in a console application?

Using AutoMapper: Getting Started
Using AutoMapper: Creating Mappings
Using AutoMapper: Mapping Instances

Conditional mapping
Custom value resolvers
Null substitution

Translating Objects of One Type to Another with AutoMapper ***** 整理的很詳細
Automapper: Mapping objects

Conditionally overwrite destination if no destination object is used
AutoMapper settings properties to null on destination object

AutoMapper 兩個物件對映到一個類別
Automapper convert from multiple sources
automapper multi objects to one object
How to configure automapper to map from two source objects to a destination object?
(若用在List上可能沒效)

使用AutoMapper做物件複製,注意仍需要做CreateMap,不然會取到Source物件的參考。
Copy object to object (with Automapper ?)

Mapper.Map()是全域的,若要動態建立規則,要使用ConfigurationStore
Different mapping rules for same entity types in AutoMapper
Using the instance version of CreateMap and Map with a WCF service?

opt.UseValue(value)是靜態方法,會使用相同的值。
AutoMapper Tip: DateTime and UseValue don’t mix
AutoMapper: UseValue vs ResolveUsing vs MapFrom
AutoMapper使用简单总结

AutoMapper: “Ignore the rest”?

AutoMapper registration in Unity DI




automapper update existing entity
Updating Entities from DTOs with AutoMapper
How to update an existing Entity from ViewModel using Automapper and EF4 DbContext with Lazy Loading enabled
Using Automapper to update an existing Entity POCO
Why mapping DTOs to Entities using AutoMapper and EntityFramework is horrible




Using AutoMapper to prevent SELECT N+1 problems
Using AutoMapper to perform LINQ aggregations
Projecting computed properties with LINQ and AutoMapper


Using AutoMapper to copy Metadata from Entities to ViewModels

CRUD Opearations using AutoMapper in an MVC Application




AutoMapper 3加入了对开放式泛型以及回调的支持
AutoMapper以及创建跨平台的程序集

沒有留言: