开发者

WCF PerSession service and AutoMapper

开发者 https://www.devze.com 2023-03-17 16:10 出处:网络
where should I put the code for configuring AutoMapper mapping between DTO and EntityFramework Entities for WCF PerSession services?

where should I put the code for configuring AutoMapper mapping between DTO and EntityFramework Entities for WCF PerSession services?

If in the default constructor, does that mean every session will create an individual mapping and causes lots of ov开发者_开发问答erhead on the server side?

Thanks


Configuration of AutoMapper is global for the whole application so your service should not do any configuration itself. AutoMapper should be configured in your application bootstraper (when the application starts). For example in WCF service hosted in IIS (over HTTP) you can use standard Global.asax and Application_Start.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号