The name of the WCF client generated for the basic SQL operations that the Oracle Database adapter surfaces is based on the name of the table or view, as in the following table.
|
Oracle Database Artifact
|
WCF Client Name
|
| Table | [SCHEMA]Table[TABLE_NAME]Client |
| View | [SCHEMA]View[VIEW_NAME]Client |
[SCHEMA] = Collection of Oracle artifacts; for example, SCOTT.
[TABLE_NAME] = The name of the table; for example, ACCOUNTACTIVITY.
[VIEW_NAME] = The name of the view.
The following table shows the method signatures for the basic SQL operations on a table. The signatures are the same for a view, except that the view namespace and name replace those of the table.
|
Operation
|
Method Signature
|
| Insert | long Insert([TABLE_NS].[TABLE_NAME]RECORDINSERT[] RECORDSET, string COLUMN_NAMES, string QUERY); |
| Select | [TABLE_NS].[TABLE_NAME]RECORDSELECT[] Select(string COLUMN_NAMES, string FILTER); |
| Update | long Update([TABLE_NS].[TABLE_NAME]RECORDUPDATE RECORDSET, string FILTER); |
| Delete | Long Delete(string FILTER); |
[TABLE_NS] = The name of the table namespace; for example, microsoft.lobservices.oracledb._2007._03.SCOTT.Table.ACCOUNTACTIVITY.
[TABLE_NAME] = The name of the table; for example, ACCOUNTACTIVITY.
The record types used by the Insert, Update, and Select operations are all defined in the table or view namespace.
The following code shows the method signatures for a WCF client class generated for the Delete, Insert, Select and Update operations on the /SCOTT/ACCOUNTACTIVITY table.
public partial class SCOTTTableACCOUNTACTIVITYClient : System.ServiceModel.ClientBase<SCOTTTableACCOUNTACTIVITY>, SCOTTTableACCOUNTACTIVITY {
public long Delete(string FILTER);
public long Insert(microsoft.lobservices.oracledb._2007._03.SCOTT.Table.ACCOUNTACTIVITY.ACCOUNTACTIVITYRECORDINSERT[] RECORDSET, string COLUMN_NAMES, string QUERY);
public microsoft.lobservices.oracledb._2007._03.SCOTT.Table.ACCOUNTACTIVITY.ACCOUNTACTIVITYRECORDSELECT[] Select(string COLUMN_NAMES, string FILTER);
public long Update(microsoft.lobservices.oracledb._2007._03.SCOTT.Table.ACCOUNTACTIVITY.ACCOUNTACTIVITYRECORDUPDATE RECORDSET, string FILTER);
}