>I will not write any SQL statement.
>Bumperman,
>
[quoted text clipped - 33 lines]
>
>Cor
Cor,
thank you for your reply.
> I assume now that you mean a
> database table.
Yes.
> An object is the rawest part of Net. In fact the base class for all >
other
> types. Not really the one for binding. It has not any property that
> you can bind.
Either you misunderstood my concern, or, I have failed to chose the
right words. "How to bind an object to a table", doesn't mean type of
object is System.Object (look closer, System."O"bject, capital letter).
Besides this title, I have provided a sample class, which is a "type" of
an "object" (meaning in OOP, not in "C#") that I want to bind to table.
As you can see, it's got properties. By other means, it doesn't mean
anything whether C# uses "object" type for CTS type System.Object, which
begins with capital letter. In fact, only in .NET and Java, all
(managed) objects derive from the same class, but in OOP, an "object" is
not a System.Object, nor it is what C# and its programmers understand
from "object". "class" keyword defines a type. When you instantiate a
type of T, declared with "class", it becomes an "object of type T", and
it's got nothing to do with System.Object. In C++, we have bare "class"
keyword that declares a "native" class and it doesn't necessarily derive
from anything. I hope we are clear at this point, and you've refreshed
"what 'object' word means in OOP".
I am not unfamiliar with C#, I am not unfamiliar with .NET, I am neither
a student nor a 5 years experienced software developer. I know a couple
of ways to do this, typed dataset or NHibernate, or former Object Spaces
(LinQ?). NHibernate does what I need, but NHibernate is complicated,
error prone, takes a lot of time. I need a "typed dataset like"
solution.
>Do you mean write explicitly and implicitely. Than it is
> impossible. .Net
>and SQL are working thight together where Transact SQL is used.
I do not want to write any SQL statement "explicitly". How can I write
SQL statements implicitly? If they are "implicit", doesn't it mean they
are not written by me? In .NET, you can retrieve data from a dataset
without writing even a single line of SQL statement(ReadXml, WriteXml?).
The point is; something like NHibernate, but simpler and preferably
integrated to IDE. Do you know/have a solution?
Jason
TLD LY is Libya, (just in case you may wonder "what the...") though, I
am not related to Libya.
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Cor Ligthert [MVP] - 02 Jan 2006 15:32 GMT
Jason,
I think that there is nothing to add to your reply.
Cor
dperiwal@softwaretree.com - 10 Jan 2006 00:52 GMT
Jason,
You may want to check out NJDX, the KISS OR-Mapper for .NET, from
Software Tree. NJDX provides a high-performance, user-friendly, and
practical OR-Mapping solution for seamlessly bridging the gap between
the .NET object model and SQL relational model. By eliminating endless
lines of tedious ADO.NET/OleDB/SQL code, NJDX boosts developer
productivity and reduces maintenance hassles.
Adhering to some well thought-out KISS (Keep It Simple and
Straightforward) principles, NJDX provides smooth integration with
popular databases including Microsoft SQL Server, Oracle, IBM DB2, and
Microsoft Access. NJDX has also been tightly integrated with Visual
Studio .NET IDE and can be used with any CLR-based language including
C#, VB.NET, and J#.
You may get a free evaluation version of NJDX from Software Tree's web
site.
-- Damodar Periwal
===============================
Software Tree, Inc.
Simplify Data Integration
http://www.softwaretree.com