Book a Demo

Author Topic: Import .net assembly  (Read 2541 times)

tobester

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Import .net assembly
« on: July 18, 2006, 01:56:41 am »
Hi

New bod question here.

I have started designing my class and want to add a DataTable attribute. How do I do this?

I guess that this means importing the System.data and System.data.SqlClient namespaces into my package - is this correct?

This is for a C#.Net project by the way.

Thanks in advance.

Toby

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Import .net assembly
« Reply #1 on: July 18, 2006, 07:09:03 am »
Toby,

There's been quite a lot written here (i.e. in the Sparx forum) about this, with respect to both .Net and Java.

In order to effectively use the 'back end' classes provided by the language framework, you need to first import this framework into your model. Once that's done you can reference the various constructs for such things as data types and inheritance hierarchies.

You should search the forum for detailed discussions, since many of the questions you will have along the way are answered, and several approaches to making the whole thing work are given.

Regardless, you will need to import the necessary language components. For .Net you want to explore the Import Binary Module function. You can reach this through the EA main menu via Project / Source Code Engineering. If you have selected (and highlighted) a package in the Project View tree, then you can also find this by right-clicking and choosing Code Engineering from the context menu.

Good hunting,
David
No, you can't have it!