Appframe Knowledge Base


1 hits
1

How to insert data using afAccessLayer

Dim vList As New List(Of KeyValuePair(Of String, Object))
vList.Add(New KeyValuePair(Of String, Object)("Title", "Testing1233"))
vList.Add(New KeyValuePair(Of String, Object)("Status", "Open"))
 
Dim vColumnsToRetreive As New Appframe3.Common.Data.Columns.afSelectColumnCollection()
vColumnsToRetreive.Add("Primkey")
vColumnsToRetreive.Add("RiskID")
 
Dim vData As DataTable
vData = Appframe3.Common.Data.afAccessLayer.AddData("atbv_RiskMgmt_Risks", vList, vColumnsToRetreive, "atbv_RiskMgmt_Risks")

win · Perma link post comment Posted by: Peter Øren (12-jan-2012)