Questions tagged [mdriven]
MDriven is a modeling tool which also allows simulation and execution. MDriven removes the need for a lot of the traditional coding/testing needed when producing information systems by raising the level of abstraction.
116
questions
0
votes
1
answer
34
views
Unable to validate model - ecoSpace is null
I have a problem when trying to validate the model
Model Validation| Value cannot be null.
Parameter name: ecoSpace
| System.ArgumentNullException: Value cannot be null.
| Parameter name: ecoSpace
...
0
votes
1
answer
17
views
MDriven | Error on UpdateDatabase, stack trace error below
Please note the below stack trace error we receive at times while updating the database.
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, ...
1
vote
1
answer
20
views
Suggestion for Validate Model Error Message
What I see
Info:
Model errors:
MVH201 Derivation expression specified for non-derived attribute (Issue.Job) [Issue.Job]
I'm wondering if this was intended to be
MVH201 Derivation expression specified ...
0
votes
2
answers
25
views
How to see "non - eco" inserted objects
We are still using ECO5 with VS 2008. A "non eco" application uses the same database as our eco-application does and inserts data. The inserted data (objects) cannot be seen in our eco - ...
0
votes
0
answers
12
views
PSQuery intersection
When querying with PSQuery it is very handy that two matching queries can be combined with Union. An example:
var queryPart1 = = es.PSQuery<A>().Where(..);
var queryPart2 = = es.PSQuery<B&...
1
vote
2
answers
35
views
How to enhance length of Property of an attribute of class in eco Model designer
Iam using mdriven build 7.0.0.11347 for DDD project and have model designed in .ecomdl file.
In this file i have a class Job with WorkDone as one of a property. Backedup SQL table has WorkDone varchar(...
0
votes
0
answers
20
views
MDriven framework local installation on VS 2022 not working
MDrivenFramework_7.0.0.13867_Nightly_vs2022 and all previous installers did not work.
Error message when trying to run VS 2022 post installing VSIX
0
votes
2
answers
21
views
1:n Derived Settable Association
There is an example of n:1 derived settable association in MDriven Wiki: https://wiki.mdriven.net/index.php/Derived_settable_associations
I'm trying to implement for a multi link Collection(Person) - ...
0
votes
1
answer
23
views
How to programmatically acess an Action from code (WPF)?
It is reletively clear for me how to access Actions in a prototype. But how can I do it in code?
E.g. I would like to execute a Class Action from within a Button. I defined an Action ShowPerson in a ...
0
votes
1
answer
15
views
Why do I get different data over Local Server?
I use now persistenceMapperWEBAPIClient1 as PersistentMapper with default Uri http://localhost:5000/api/A0_WebApi and default User: a/Password: 123456
While prototyping on Local Server I have saved ...
0
votes
0
answers
6
views
State Machine Guards and Class Constraints
QUESTION:
WHEN DO CLASS CONSTRAINTS BECOME PART OF STATE MACHINE TRANSITION GUARDS?
This is a demo application:
In the model have a state machine transition with a guard
"not self.Guard23 and (...
0
votes
1
answer
12
views
Using PersistenceMapperWEBAPIClient
If I change to PersistenceMapperWEBAPIClient:
this.PersistenceMapper = this.persistenceMapperWEBAPIClient1;
I get error message on start:
System.IO.FileNotFoundException: "The file or assembly &...
1
vote
2
answers
36
views
How to test REST-Services
can I use Local Turnkey Prototyper to test exposing REST-Services?
Or locally installed Turnkey with MDrivenServer?
I have tried it but with no success
Efim
1
vote
1
answer
15
views
Prototyping does not work with local Turnkey
Please see the model in attachment.
I started prototyping with it. It does work with XML-Persistance, SQL and MDriven-Server, but not with local Turnkey.
Repro: Start Prototyping -> Seekers -> ...
1
vote
1
answer
44
views
How to data bind simple ViewModel to WPF Datagrid?
that's perhaps an absolute newbye question.
I try to bind a simple Viewmodel Person.allinstances with Firstname: string, Lastname: string to WPF DataGrid.
ViewModel:
enter image description here
XAML:
...
0
votes
3
answers
31
views
How to use MDriven OclPs to find all objects matching a list of strings?
In an application I receive a list of strings. Then I want to use OclPs to find all objects where a specific attribute equals any of the strings in the list. E.g. if we have Person objects and receive ...
0
votes
0
answers
18
views
Optimization of MDriven OCL union statements
The SQL representation of union query often have a bad performance. Given following example OCL:
Table.AllInstances->Select(ID < 500)->Union(Table.AllInstances->Select(ID >= 100))
From ...
1
vote
1
answer
64
views
MDriven ECO_ID duplicates
We appear to have a problem with MDriven generating the same ECO_ID for multiple objects. For the most part it seems to happen in conjunction with unexpected process shutdowns and/or server shutdowns, ...
1
vote
1
answer
34
views
PSQuery Performance
I have following model:
A
1
|
*
B
^ ^
| |
B1 B2
where B is an abstract superclass of B1 and B2. I now have a PSQuery like:
var data = es.PSQuery<A>().Where(..).SelectMany(x => ...
0
votes
0
answers
63
views
MDriven Framework setup on VS2022 Community - The 'EcoVsPackage' package did not load correctly
Could you please advise how to fix this error after
MDrivenSetup_7.0.0.xxxxx_Nightly_vs2017.exe setup on VS 2022 Community edition? Restart doesn't help. VS is clean, no other extensions.
Thanks a ...
1
vote
1
answer
56
views
AppCompleteGenericCore > 1Gb of memory
The monitoring of the Local MDrivenServer (cmd: AppCompleteGenericCore.exe -port=5050 -nohttps) shows that the process eats memory up to 1.2Gb regardless of the Model's size.
If I upload the simplest ...
2
votes
1
answer
42
views
Derived attribute with AsTajson call in the custom service
I use .net5 and .netStandard from nuget. The structure of the solution is simple - class library with ecomodel and webapi project.
I've registers custom service in the EcoSpace1.cs as it was advised ...
0
votes
2
answers
48
views
ESType error when ModelDrivenControllerBase is using to call MDrivenEcoSpaceAndModelForNetStandard
a code MyController:ModelDrivenControllerBase<EcoProject1EcoSpace> in the mvc or webapi netcore project shows a error "the type 'MDrivenTemplateProj.EcoProject1EcoSpace' cannot be used as ...
0
votes
1
answer
29
views
Constraints - Constrained Target
I have some DroopyEyes code that expects ConstrainedTargetName to be not null.
However the constraint I have a problem with deals with a relation and not an attribute.The ContrainedTarget dropdown ...
1
vote
1
answer
25
views
MSSQL InvalidCastException - Problem with Attribute of type text - Unable to cast to Micosoft.Data.SqlClient.SqlParamater
Installed latest MDriven version and made some other changes and now I MDriven is unable to save text attribute to MS SQL Server. See below for error message. Demo project has Class1.Attribute1 is ...
0
votes
0
answers
63
views
Derived members, associations are called without being accessed in WinForm when using CurrencyManagerHandle, ExpressionHandle
We are having major issues with Derived Attributes/ Associations, being called without being accessed by the front end in windows application using ExpressionHandle, CurrencyManagerHandle.
We are ...
0
votes
1
answer
33
views
Problem in accessing Derived attributes of model class in Multi database tenant web application
I have 2 application web and desktop. both share Persistence layer. In Persistence layer we have one object of Ecospace shared by web and desktop app. Web is using Angular JS over MVC4 and desktop is ...
0
votes
1
answer
84
views
Error opening MDriven EcoSpace or PMP component designers in Visual Studio .NET Standard project
I created a new .netstandard2.0 MDrivenEcoSpaceAndModelForNetStandard2 project. When it is created, I am not able to open the ecospace or the PMP component designers. I'm using Microsoft Visual ...
1
vote
2
answers
39
views
Setting state of a state machine for test reasons
for the implementation of a unit test I need to setup a specific state of an object. As the state is implemented with a state machine, MDriven rejects the direct assignment of the state value to the ...
0
votes
1
answer
23
views
Impersonation in MDriven?
I am trying to build an “impersonate” page in order to “log in” as another user . I am thus trying to assign the CurrenUser with a vCurrent_XXXX value but the result is that the CurrentUser is set to ...
0
votes
1
answer
29
views
How do I control the logout behavior?
My web application has login by OpenID connect. When I test the logout button I'm redirected to the configured logout URL, but when I try to login again I am already logged in.
I would like it to work ...
0
votes
2
answers
34
views
MDriven | Modlr opens in XML editor even though the default is set to Modlr
I've been facing an issue with my project wherein on double click of the .ecomdl file instead of opening in the Modlr, the file opens in an XML editor.
As you can see in the attached screenshot, Modlr ...
0
votes
2
answers
38
views
Error in Viewmodelhelper.createfromViewmodel method
In MVC 4 web application using Mdriven framework version is 7.0.12531 to access data from SQL 2014 express.
We are encountering error while trying to get data using viewmodel xml (Which contains OCL) ...
1
vote
1
answer
28
views
Generating XML using ViewModelAsXML
How do I render a XMLdocument containing these xsi adm xmlns tags with corresponding URI, I have tried the NodeName tagged value but without luck... Replace would do it but is there a more robust way?
1
vote
1
answer
22
views
Controlling the default language (localization) in MDriven
I am using the MDriven wiki support but would like to control the default language. Now it will revert to the original value is used. My issue is that if a browser with setting of "french" ...
1
vote
1
answer
27
views
Support for ordered lists in MDriven?
I have seen a demo on how to use ordered lists in MDriven but I can not find it on the wiki? Is it deprecated or am I just looking in the wrong place? The need is to show an strictly ordered list, ...
1
vote
1
answer
60
views
Get complete response from POST (rest)
When calling a rest api with POST I would like to know all information in the response and its header. For example, we need to handle a JWT. How is that possible in MDriven?
In the vResponse I get the ...
1
vote
0
answers
53
views
calling the Execute method of IExternalLateBoundService
The question about the calling of the custom .net method implemented in the TurnKey_ExternalLateBound.dll.
I remember that it worked for me, but it was long time ago.
I tried this article and I put ...
0
votes
1
answer
76
views
How do a do "while loop" in ocl when server side or Async?
Im using a rest api for getting orders from a webshop, the result is max 100 orders at a time and there is a page param to use for next 100 orders.
I have solve this in a viewmodel using periodic ...
0
votes
1
answer
27
views
How can I hide the flickring bottom bar with save and cancel in mobile mode?
I have set hideSideBar=true and still in mobile and tablet mode the bottom bar with save and cancel flickers when selfVM.save is called. There is a bottom bar even when not saving hiding content in ...
1
vote
1
answer
33
views
Inheritance rules in MDriven?
I have a case where the designer allows me to set inheritance from one class (no inheritance) towards a superclass but not towards that superclass subclasses? Why would that not be allowed?
2
votes
1
answer
32
views
Is it still possible to do ContentOverride in Winforms ViewModels?
Previously it was possible to use ContentOverride in Winforms ViewModels.
Is this still possible in MDriven 7.0.0.11262?
1
vote
1
answer
48
views
How can I add embed objects in emails?
I want to embed images in my email content, for example logo. Normally in C# I add LinkedResource and refer to contentId in my email template. How can I do this in MDriven?
0
votes
1
answer
24
views
Error in MDriven Server log "Client has different model than Server. Save is not allowed"
I get this error from time to time in the MDrivenServer log. What does it mean and how do I fix it?
0
votes
1
answer
29
views
Changing from SQL Server Compact to SQL Server 2014
I am migrating my database from SQL Server Compact to SQL Server. I get this error in the designer. Connection string works, any hints on what is wrong?
0
votes
1
answer
53
views
How do I change navbar logo and styling dynamic?
I am building a multi tenant platform and want to have different logos and styling of the navbar depending on logged in user or some other business rule. How do I do that?
If I want to add widgets ...
1
vote
1
answer
44
views
Long text breaks styling
I get different results for same column (static text) depending on having long or short text, why?
Correct layout (shorter description)
Incorrect layout (Long description in static column)
0
votes
2
answers
21
views
Problem when passing a singleton to another viewmodel using self.VM.Navigate
In the public part of my app the user starts with a link to a VM (IndexBookingPage) with DVM params. An action looks up the publicbookingpage object from Id, and if found navigate to Eventlist. This ...
0
votes
1
answer
39
views
How do I layout viewmodels?
I’m building the public part of the booking platform and want it to be mobile first. After spending several hours understanding how the layout is rendered. I come to the conclusion that the column ...