#ExplicitKey

Dapper.Contrib:GetAsync<T> only supports an entity with a [Key] or an [ExplicitKey] property

异常处理:http://www.cnblogs.com/dunitian/p/4523006.html#dapper原来Model是这样滴修改后是这样滴注意点:Model里面的Table和Key是Dapper.Contrib.Extensions命名空间下的成功~  ...