BorPred–the ways to use

BoringPredictableServer is an IIS-application that has:

  • Multiple Eco Persistence mappers – exposed via WCF
  • Integration from Modlr/AppComplete to receive sent models
  • Built in evolve mechanism
  • Supports SQLCE,SQLServer and MySQL as database backend
  • Has ability to run server side jobs based on Modlr Actions and ViewModels
  • Can execute the model via AutoForms
  • Can execute the model via WECPOF as an ASP.NET application
  • Can execute the model via WECPOF as XBAP WPF application
  • Handles Login and roles
  • Numerous web-services to get to data
  • Runs elegantly on Azure web

The JSon way

You can access the borpred via a Rest interface. If you use php it might look like this:

 

$url = "https://YourBorPredUrl/api/JSonRest?user=SomeUser&pwd=SomePWD&db=A1&ocl=AAA.allinstances";

$content = file_get_contents($url);
$content=trim($content,'"');
$content=stripslashes($content);
$phpArray=json_decode($content,true);
echo json_last_error(); 

echo "<h2>RESULT OF FETCH</h2>";

  foreach ($phpArray as $key => $value) { 
     echo "<h2>$key</h2>";
     foreach ($value as $k => $v) { 
         echo "$k | $v <br />"; 
     }
  }

 

results depends entirely of loaded model, and instances in that model

RESULT OF FETCH

0

class | AAA
externalid | 1!8
Guid | 76c742ea-9e63-4534-8f04-4252c38dd2df
CreateTime | 2013-09-15 05:09:45
Attribute1 | RA
AttributeA | fff2
DDDD | -1

1

class | AAA
externalid | 1!11
Guid | 76c742ea-9e63-4534-8f04-4252c38dd2df
CreateTime | 2013-09-15 05:09:45
Attribute1 | RA
AttributeA | aaa
DDDD | -1

2

class | AAA
externalid | 1!12
Guid | 76c742ea-9e63-4534-8f04-4252c38dd2df
CreateTime | 2013-09-15 05:09:45
Attribute1 | RA
AttributeA | aaa
DDDD | -1

The JSon approach has 3 ways in, Get, Update,Delete.

“Get” use ocl questions and Modlr ViewModels for data scoping.
”Update” use externalId as identifier – if it contains the word “new” a new object is created and the new key is returned, this enables you to save graphs by using new1,new2 etc and let objects refer each other

The ECO way

Of course the ECO way is the most sophisticated way to use BorPred persistence mapper.

Fully managed IdentityMap
LazyFetch
Undo/Redo
Statemachines
MultiClient change awareness with Refresh
Async model to always have unlocked UI
In memory transactions with undo rollbacks
ViewModels

(available in Silverlight5, Phone8, WindowsStore, Windows )

The WECPOF way

WECPOF takes the ideas of being declarative and model-driven all the way to the top. A complete application in WPF can be produced without any unique code – only unique model. It still leaves plenty of room for creation with WPF styles, Model and when needed  externally defined c# controls. This is where you want to be if you ever get the feeling of déjà vu when coding similar things over and over.

The declaration of a WECPOF app is a process that is fun and easy, paired with BorPred evolve – you will be faster than you think is possible. Suitable for systems that should be error free from start, prepared for fast change and easy for users to learn.

This entry was posted in MDrivenServer. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*