admin管理员组

文章数量:1612147

错误:
The current type is an interface and cannot be constructed. Are you missing a type mapping?
原因:
在使用DI(dependency injection)依赖注入的时候,忘记注册了。
解决:
注册一下接口和方法
container.RegisterType

本文标签: InterfacetypeCurrentmappingmissing