On Dec 15, 2008, at 11:28 AM, Alan Bourke wrote:

> You won't find it. There is no magic bullet that will give you the  
> same
> integrated RAD ability like VFP has. You can get a lot of the way  
> there
> by abstracting the data as far away as you can. For example use an
> object-relational mapping tool to create objects representing your  
> data,
> and writing LINQ queries using the objects.
>
> Or here's how to get NHibernate to add a record, but there's a lot of
> scaffolding under it.
>
>            ISessionFactory factory = cfg.BuildSessionFactory();
>            ISession session = factory.OpenSession();
>            ITransaction transaction = session.BeginTransaction();
>            SalesCustomer sc = new SalesCustomer();
>            sc.Sn_account = CodeTextBox.Text;
>            sc.Sn_name = NameTextBox.Text;
>            session.Save(sc);
>
>            transaction.Commit();
>            session.Close();

        In Dabo, it's quite a bit simpler. In the UI, you would bind the text  
controls to columns in the SalesCustomer table by specifying two  
properties: DataSource (the table name) and DataField (the column in  
that table).

        This would both populate the text boxes from the source as well as  
propagate changes in the text boxes back to the source. To create a  
new record, you'd call the form's new() method, and then edit the text  
boxes normally. To save, call form.save(). Transactions, validation,  
etc., is all handled for you.


-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to