Executes INSERT statement generated by specified table name and annotated POCO model.
Namespace: NReco.DataAssembly: NReco.Data (in NReco.Data.dll) Version: 1.0.2
public int Insert(
string tableName,
Object pocoModel
)
public int Insert(
string tableName,
Object pocoModel
)
Public Function Insert (
tableName As String,
pocoModel As Object
) As Integer
Public Function Insert (
tableName As String,
pocoModel As Object
) As Integer
public:
int Insert(
String^ tableName,
Object^ pocoModel
)
public:
int Insert(
String^ tableName,
Object^ pocoModel
)
member Insert :
tableName : string *
pocoModel : Object -> int
member Insert :
tableName : string *
pocoModel : Object -> int
Parameters
- tableName
- Type: System String
table name
- pocoModel
- Type: System Object
POCO model with public properties that match table columns.
Return Value
Type:
Int32Number of inserted data records.