Open
Description
I am trying to use the merge command, but I get
"Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
I am using the library with .net framework 4.8 web forms project.
Reference to System.ComponentModel.Annotations is added, just couldn't get the exact requested reference. I have tried both 5.0.0 and the 4.3.0 but the error above still remains.
This is the code:
public static int SaveMarks(List<Quizes> marks)
{
var connString = ConnString.ConnectionString;
RepoDb.SqlServerBootstrap.Initialize();
using (var connection = new SqlConnection(connString))
{
return connection.BulkMerge("[tbo].[Quizes]", marks);
}
}`