Channels ▼


LANSA Open for .NET Version 3 Ships

LANSA has announced Version 3 of LANSA Open for .NET, which gives Microsoft .NET Framework developers access to data and information on remote servers via the LANSA Repository. LANSA Open for .NET Version 3 ships with a class library and includes ready-to-run samples in C#.NET and VB.NET. LANSA for Open .NET does not require additional LANSA software to be installed on the .NET client system.

The new release now includes a Repository Explorer and a Data Model Editor so .NET developers can connect to a LANSA Repository on an IBM i server and inspect the objects defined in the LANSA Repository. An example includes viewing and editing the content of tables in DB2 databases. From the Visual Studio IDE, .NET developers construct a data model for their application from DB2 tables defined in the LANSA Repository. They construct the model by dragging objects from the Repository Explorer to the Data Model Editor. Saving the data model generates the .NET classes and methods that will access the table on the IBM i server from the .NET application.

The C# code to access, for example, an employee table would be as simple as creating a LANSA data context and retrieving the employee details:

// Create a LANSA data context
DataContext context = new DataContext(true);
// Retrieve all fields of an employee with key field EmployeeNumber = "A0070"
var employee = context.Employees.RetrieveItem("A0070");

An IBM i or LANSA administrator can also create data models for use by .NET developers. There is a standalone version of the Repository Explorer and Data Model Editor (not integrated into Visual Studio) for use by IBM i developers or administrators who do not use Visual Studio.

Any .NET applications (written with C# or Visual Basic) can use the business rules defined in the LANSA Repository. No extra effort is required from the .NET developers and they do not need to code business rules in the .NET applications. Multilingual texts (such as field labels, headings and help text) defined in the LANSA Repository are also available for reuse by .NET applications. Not having to duplicate the business rules in the .NET applications increases developer productivity and reduces the ongoing maintenance effort.

With Version 3,.NET developers also have access to IBM i server objects. They can write code to inspect spooled files, issue operating system commands and start programs. Data queues on the IBM i provide messaging services for program-to-program communication. In addition, .NET developers can write programs to use the same messaging services. A program running on the IBM i server and a .NET program can work collaboratively to meet a business requirement by sending messages to each other via data queues.

Related Reading

More Insights

Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.