Skip to content

Question: Getting Error on Merge  #837

Open
@baffourt

Description

@baffourt

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);
            }
}`


Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions