vb.netentity-framework-extensions

BulkSynchronize remove subset data VB.NET


I am using Entity Framework Extensions (EFE) in VB.Net project and I wanna to know how to write below mentioned C# Syntax in VB.Any help is appreciated

ctx.BulkSynchronize(list, options => options.ColumnSynchronizeDeleteKeySubsetExpression = c => c.Type)


Solution

  • Here is an example with VB.NET

    context.BulkMerge(customers, New Action(Of Z.EntityFramework.Extensions.EntityBulkOperation(Of Customer))(Sub(bulk As Z.EntityFramework.Extensions.EntityBulkOperation(Of Customer))
              bulk.ColumnPrimaryKeyExpression = Function(cust As Customer) cust.Code
          End Sub))