Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed Oct 21, 2014
1 parent b568544 commit 6fb7d63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int result = function.GetInt("e_result");
You can write:

```C#
using (SapRfcConnection conn = new SapRfcConnection("TST"))
using (SapRfcConnection conn = new PlainSapRfcConnection("TST"))
{
var result = conn.ExecuteFunction("Z_SSRT_SUM", new {
i_num1 = 2,
Expand All @@ -64,7 +64,7 @@ Well, yes, it is.
But what about write this:

```C#
using (SapRfcConnection conn = new SapRfcConnection("TST"))
using (SapRfcConnection conn = new PlainSapRfcConnection("TST"))
{
var customer = new ZCustomer(3, "Some Company", true);
var result = conn.ExecuteFunction("Z_SSRT_ADD_CUSTOMER", new {
Expand Down Expand Up @@ -111,7 +111,7 @@ But because of this class we can work with tables parameters!
Check this out.

```C#
using (SapRfcConnection conn = new SapRfcConnection("TST"))
using (SapRfcConnection conn = new PlainSapRfcConnection("TST"))
{
var result = conn.ExecuteFunction("Z_SSRT_GET_ALL_CUSTOMERS");
var customers = result.GetTable<ZCustomer>("t_customers");
Expand Down Expand Up @@ -143,14 +143,14 @@ public class AirlineCompany
}

//Reading all table entries
using (SapRfcConnection conn = new SapRfcConnection("TST"))
using (SapRfcConnection conn = new PlainSapRfcConnection("TST"))
{
var scarr = conn.ReadTable<AirlineCompany>("SCARR");
Assert.AreEqual(18, scarr.Count());
}

//Reading two fields with where clause
using (SapRfcConnection conn = new SapRfcConnection("TST"))
using (SapRfcConnection conn = new PlainSapRfcConnection("TST"))
{
var scarr = conn.ReadTable<AirlineCompany>("SCARR",
fields: new string[] { "CARRID", "CARRNAME" },
Expand Down

0 comments on commit 6fb7d63

Please sign in to comment.