This article is a mirror article of machine translation, please click here to jump to the original article.

View: 24373|Reply: 0

[Source] System.MissingMethodException: 找不到方法:“Void Dapper.DynamicP...

[Copy link]
Posted on 4/22/2019 12:16:25 PM | | | |
Unhandled exception: System.MissingMethodException: Method not found: "Void Dapper.DynamicParameters.Add(System.String, System.Object, System.Nullable'1<System.Data.DbType>, System.Nullable'1<System.Data.ParameterDirection>, System.Nullable`1<Int32>, System.Nullable`1<Byte>, System.Nullable`1<Byte>)”。


Error cause,The Dapper version is too low, because I installed the DapperExtensions component directly with the nuget command, and did not install Dapper, because I knew that DapperExtensions dependent on Dapper would automatically install Dapper for me, as follows:

Dapper 1.12.0 is being installed.
Adding package "Dapper.1.12.0" to folder "C:\project\my\itsvse\packages"
Package "Dapper.1.12.0" has been added to folder "C:\project\my\itsvse\packages"
Added package "Dapper.1.12.0" to "packages.config"
"Dapper 1.12.0" has been successfully installed to itsvse. Translate
  OKhttps://api.nuget.org/v3-flatcon ... ensions.1.6.3.nupkg19182 milliseconds
DapperExtensions 1.6.3 is being installed.
Adding package "DapperExtensions.1.6.3" to folder "C:\project\my\itsvse\packages"
Package "DapperExtensions.1.6.3" has been added to folder "C:\project\my\itsvse\packages"
Added package "DapperExtensions.1.6.3" to "packages.config"
"DapperExtensions 1.6.3" has been successfully installed to itsvse. Translate
The nuget operation took 19.59 sec
Time Elapsed: 00:00:41.1359161


Dapper 1.12.0.0 was released on 9/19/2012, and the version is too old.

Solution, update the Dapper version with the following command:

(End)




Previous:Express or label printer with scanning gun development documents
Next:C# Enum Simple Permission Design uses the FlagsAttribute property
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com