Quantcast
Channel: e-conomic Global API Forum
Viewing all articles
Browse latest Browse all 2527

.NET • CashBookEntry.CreateFromDataArray

$
0
0
Hi,

I try to create multiple entries in a cashbook in one step, but it still creates roundstrips foreach entry.

I cache all data locally as recommended.

I create the work array

var cashBookEntriesData = new ICashBookEntryData[numberOfEntries];

I apply to each entry (which caues the roundtrip)

cashBookEntriesData[i] = _session.CashBookEntryData.Create(CashBookEntryType.FinanceVoucher, myCashBook, null, null, myAccount, myContraAccount);

And finally update.

_session.CashBookEntry.CreateFromDataArray(cashBookEntriesData);

besides the roundtrip then it works perfect... but takes forever.

So the question is how do I create the entries without using the Create methode, the properties has no setters?

Per

Statistics: Posted by perbuus — Mon Mar 04, 2013 1:18 pm — Replies 2 — Views 34



Viewing all articles
Browse latest Browse all 2527

Trending Articles