Reference VelocityDB

Created at 24 Apr 2015, 17:03
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
docotor's avatar

docotor

Joined 23.04.2015

Reference VelocityDB
24 Apr 2015, 17:03


I have need to write data into VelocityDB. For this purpose I referenced libraries which are used by this DB. But when I execute code, I'm getting following error message:

Updated with TypeInitializationException: The type initializer for 'VelocityDb.Session.SessionBase' threw an exception.

Here is the code:

 

public static void AddToDb(string addToDbStringBuy, string addToDbStringSell)
        {
            using (SessionNoServer session = new SessionNoServer("d:\\VeloDB\\"))
            {
                session.BeginUpdate();
                var domData = DomArray.Parse(addToDbStringBuy, addToDbStringSell);
                session.Persist(domData);
                session.Commit();
            }
        }

 


@docotor
Replies

Spotware
19 Jun 2015, 12:36

Dear Trader,

We do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.


@Spotware

MerlinBrasil
02 Jul 2015, 21:29

RE:

Hi Docotor

I'm also working with cAlgo, VelocityDB, etc.

Feel free to contact me via Skype: merlinbrasil


@MerlinBrasil