Anybody tried Hibernate.org while using C#.NET to connect to DB2 on the
iSeries? I use it in Java, but I am connecting to MySQL on a Wintel
machine. Note that Hibernate was originally created for Java but they now
have a .NET port.

Aaron Bartell
http://mowyourlawn.com

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Walden H. Leverich
Sent: Tuesday, July 03, 2007 11:16 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] C## ASP connecting to AS/400 DB

Mark,

First, there's only one # sign, it's C#, and it's ASP.Net, not ASP (ASP was
the classic pre-.net stuff). We know what you mean, in other circles this
might cause problems. <G>

Now, on to your questions...

1) Yes, ignoring things like grasshopper and c#->java byte code converters,
it runs on a windows box

2) Yes, you need some connection. JDBC isn't really an option since it's for
java. If you're looking to treat the 400 like a database than what you want
it the Client Access .Net data driver, it's in the client access setup right
next to odbc and oledb. Alternatively you could implement some sort of
custom messaging setup, either over sockets, or MQ, or web-services, etc.
But I'd start w/a simple data connection.

3) The actual reads and updates can come from SQL in C#. The simplest is to
allow reads and updates from the sql in C# and be done, the most secure is
to have the sql in the C# be nothing but stored proc calls for both reads
and updates, and have the stored procs (RPG programs) on the System i do the
actual data manipulation. Somewhere in the middle is probably the best,
doing reads via SQL and updates via stored procs. Of course, if you did go
w/some sort of messaging setup (see #2) then there would be no SQL in the
c#. However, I find it can be a pain if you can't write the sql in c#. There
are times that it's just simpler to write the sql to join 5 tables, add a
couple or where options and set an order by.
:)

-Walden

--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)


--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a
message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.