Example of a MVC.Net Web Appl. to Communicate with NAV db

Administrator
Member, Moderator, Administrator Posts: 2,506
Example of a MVC.Net Web Application to Communicate with a NAV Database
A working example of how to use an MVC.Net Razor web project to connect to a Dynamics NAV database, allowing you to change companies on the fly while using the Entity Framework.
For a tutorial on this topic, please see: http://blog.dynms.com/2012/07/how-to-us ... s-nav.html
http://www.mibuso.com/dlinfo.asp?FileID=1454
Discuss this download here.
A working example of how to use an MVC.Net Razor web project to connect to a Dynamics NAV database, allowing you to change companies on the fly while using the Entity Framework.
For a tutorial on this topic, please see: http://blog.dynms.com/2012/07/how-to-us ... s-nav.html
http://www.mibuso.com/dlinfo.asp?FileID=1454
Discuss this download here.
0
Comments
-
Thanks a lot for sharing this solution.
I've searched for a while for an easy mvc "template" and was very happy to find this one even with the complete NAV integration.
I tested it with VS2012 and everything was working.
Best regards
Sebastian0 -
This solution doesn't execute the business logic, or did I miss that? Accessing tables directly is not the recommended way to integrate with NAV.0
-
Hi ara3n,
this is correct, you are reading and writing directly from/to the tables.
But I'm sure this example can be modified to use nav webservices, too.
Last but not least the developer should allways know what he's doing.
Otherwise he should keep his fingers away of this.0 -
Hi Bastir,
You're welcome.
Hi ara3n,
You're entirely correct and I'm glad you pointed that out: no business logic is executed and as such carries risk and limited applicability with it (for example you couldn't post documents).
To provide some context: this download is part of an example series that we plan to do about various web integration options with Dynamics NAV.
In the first blog post on this topic we introduce some of the options available, and some decisions to make when choosing them ( http://blog.dynms.com/2012/07/web-integ ... s-and.html ).
In that article we also describe how no business logic is available when using the database option, and we'd love to hear more on the topic.
In the future we're hoping to extend this with an example using the 2009 web services, and Odata.
This particular example is to work with the tutorial here: ( http://blog.dynms.com/2012/07/how-to-us ... s-nav.html ).
Thanks for the feedback,
-Tim
Dynamics Manufacturing Solutions0 -
Thanks for sharing this solution.
It's very useful for Add-On developer.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions