#1 2016-03-23 17:25:55

corchi72
Member
Registered: 2010-12-10
Posts: 232

Visual Studio 2015 and mORMot

Hi, Can anyone tell me if there is an example of a client written in C#/ASP.NET that reads the mORMot server?

Thanks corchi!

Offline

#2 2016-03-23 19:00:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Visual Studio 2015 and mORMot

Not as far as I remember in this forum...

Offline

#3 2016-03-24 09:06:22

corchi72
Member
Registered: 2010-12-10
Posts: 232

Re: Visual Studio 2015 and mORMot

I was referring to a possible example stretch of the project:

https://www.totolotek.pl/MainOdds.aspx

discussed:

http://synopse.info/forum/viewtopic.php?id=1954

develped by:

aloe

Thanks corchi

Offline

#4 2016-03-24 09:51:37

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Visual Studio 2015 and mORMot

Such a client expects just a REST client + HTTP and JSON support.
Pretty easy to write in C#.

But C# client code generation was on the roadmap.
Not implemented yet, since not needed here up to now.

Offline

#5 2016-03-24 14:33:32

aloe
Member
From: Greece
Registered: 2015-08-17
Posts: 6

Re: Visual Studio 2015 and mORMot

Hi Corrado,  answering also to your private message (i received an email through the auto mailer).

As Arnaud Bouchez wrote above, such a client needs to implement just an http get + json.

There are many ways, a very simple one:
run a mormot server, listening to IP 127.0.0.1 port 7000 for example.
At the client side, from Visual Studio C# or VB.NET:
http get this link: http://127.0.0.1:7000/root/?SQL=select * from your_table_name
it will return a json
Put the link in a browser to see it, if security is disabled you ll see data.
You have to convert this json to C# dataset and then you have it all.

Depends on what else you want to do.
If you want to edit data, I suppose above is not the best way to work.

If you need any example code for the mormot server side, i would start from the examples in the package.

Offline

#6 2016-03-24 14:58:12

corchi72
Member
Registered: 2010-12-10
Posts: 232

Re: Visual Studio 2015 and mORMot

I'd like to see an example, with authentication .. I've already developed the server that uses authentication.
If you could post an example or lines of code that allow me to do the basics:
DELETE,UPDATE,INSERT !!

nothing easier from someone who has already done!!

I'd be very grateful!!!!!:)

Thank corchi72

Offline

Board footer

Powered by FluxBB