I would like to know if there is a possibility to make a DDD Design Solution with two View Ports, one for mobile application using PhoneGap and the other MVC 5.
There is. To configure your project for multiple View Ports , make sure to invoke the DisplayModeProvider
at the start of your system, Global.asax.cs file:
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
...
var displayModes = DisplayModeProvider.Instance.Modes;
...
}
}
Once this is done, produce your Views for Phonegap using the .Mobile.cshtml
suffix. For example, if you want to customize the system layout by differentiating the View Port layout of the mobile View , create two files:
- /Views/Shared/_Layout.cshtml
- /Views/Shared/_Layout.Mobile.cshtml
This also applies to every View of your system: not just Layout.
Your application is already able to detect the User Agent (the device browser and device type) and will call the correct View for each case. >
I would like to make a Domain equal to both conforming to the DDD, but the bank know it will be different, using SQL Server and another Javascript database, eg SQLite.
The Models part of your project already follows the DDD. No further changes are required.
It is not necessary to use two bank technologies. Only SQL Server is enough to produce what you need.