Wrox Home  
Search P2P Archive for: Go

  Return to Index  

expert_vb_business_objects thread: RE: Your new Business objects for VB.net book


Message #1 by "Rockford Lhotka" <rocky@l...> on Tue, 4 Mar 2003 07:50:23 -0600
The data binding in .NET is very cool - they finally got it right so
data binding is actually useful in many (most?) situations.
 
I use data binding in the book to create both Windows and Web Forms
interfaces. In fact, the CSLA .NET framework includes extra code to make
data binding fully work.
 
I do not believe that you need to compromise your object model to use
data binding. On the contrary, you should create a solid, well thought
out object model to increase the maintainability of your objects, then
you should bind them to the UI as needed.
 
As you'll see in the book, I was able to use my object model to create a
Windows Forms UI with very little code. Basically all I had to do was
bind the controls and respond to button clicks - data binding did all
the hard work. Likewise, I was able to use those exact same objects to
create a Web Forms UI. That takes a bit more code, because data binding
in the web world is read-only, but still it saves a lot of code.
 
CSLA .NET doesn't have data-centric objects, just objects. The objects
expose properties containing all the data pertaining to a given business
entity, which is all you need to do binding. The important part is that
they contain the business logic (validation, manipulation, calculation,
authorization, etc) so the data is always protected.
 
Rocky

-----Original Message-----
From: Ralph Loizzo [mailto:ralph@a...] 
Sent: Tuesday, March 04, 2003 7:42 AM
To: 'Rockford Lhotka'
Subject: RE: Your new Business objects for VB.net book


Listen,  If Im sending you too much email for your liking, tell me to
bug off.  I won't want to dominate your time.  But I have some sort of
OO philosophical question for you.
 
 
With .NET and the possibilities of wonderful data bound controls to the
UI, doesn't this seem to warrant data-centric business objects over UI
business objects?
 
IN VB6 Business objects, you sorta split the business logic into data
centric and UI.  But with data bound controls, it seems that too much of
the business might
get too tied to data or UI.
 
Till now, Ive never been much of a fan for databound controls, but I
must say...  those .NET ones seem mighty appealing.
 
(again - let me know if this sort of email ruffles your feathers and Ill
stop....It's just I cant seem to find good discussions like this in
newsgroups (TANGENT CENTRAL).
 
 
-----Original Message-----
From: Rockford Lhotka [mailto:rocky@l...] 
Sent: Monday, March 03, 2003 4:33 PM
To: 'Ralph Loizzo'
Subject: RE: Your new Business objects for VB.net book



As far as I know, yes. It should be on shelves by the end of the month I
guess. One guy sent me an email saying that his local bookstore said
March 18th, but that may vary I suppose.
 
If you want more info on the book go to
 
http://www.expert-vb.com
 
http://www.lhotka.net
 
http://www.wrox.com/books/1861007264.htm
 
Rocky
 

Rockford Lhotka
Author of 'Expert One-on-One VB.NET Business Objects' (Wrox Press)
rocky@l...    http://www.lhotka.net 
 
 

-----Original Message-----
From: Ralph Loizzo [mailto:ralph@a...] 
Sent: Monday, March 03, 2003 3:16 PM
To: rocky@l...
Subject: Your new Business objects for VB.net book


Rocky...
 
just wanted to know if your book is scheduled for an ontime release.
 



  Return to Index