HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 206252 thumbnail
User 285573 avatar

By alashcraft
via msmvps.com
Published: Jul 22 2009 / 14:32

If you are building applications in .NET to manage data for a business, you are most likely creating business object classes. Depending on the business, these classes could include Customer, Product, Order, Invoice, PurchaseOrder, Employee, TimeCard and so on.
  • 5
  • 3
  • 1250
  • 0

Comments

Add your comment
User 265881 avatar

Topnotch replied ago:

0 votes Vote down Vote up Reply

Excellent stuff the only thing missing was a class to manage a collection of business objects but that 's beyond the scope of the article. It looks like that will be discussed in a later post so no big deal.

User 376384 avatar

mendicant replied ago:

0 votes Vote down Vote up Reply

... Or just use NHibernate and have persistence and state solved for you immediately.

User 265881 avatar

Topnotch replied ago:

0 votes Vote down Vote up Reply

It isn't unreasonable to be aware of ALL SOLUTIONS. Including using a business object along with a business object collection class or going with a NHibernate solution. It depends on the context. You might *not* always have access to the tools that you want to use on every project or one solution might not even be appropriate. Plus, your client/boss might say no so you need to be able to produce a solution anyway or you could end up on a project that uses an older version of .Net like 1.0. It happens...

User 57355 avatar

mknutty replied ago:

0 votes Vote down Vote up Reply

That is why i don't ask them (bosses/clients). They don't know what the best choices are.

User 57355 avatar

mknutty replied ago:

0 votes Vote down Vote up Reply

Gotta love someone kicking it old school. But gotta vote it down because you can get this from Rockford Lhotka's book (VB classic - 11 years ago) and this really isn't the way to go with all that is currently available. Some good ideas.

User 376384 avatar

mendicant replied ago:

0 votes Vote down Vote up Reply

I agree. This is putting it out there as good advice.

This is _not_ good advice for current projects.

As well, if you want an ActiveRecord style persistence, there's frameworks that do that for you too. We should NOT be writing persistence code in this day and age, and that's exactly what this advocates.

With small caveat of working on very legacy code, but I get the feeling this is being put forth as a valid solution for the intended audience's next project. It's not.

User 57355 avatar

mknutty replied ago:

0 votes Vote down Vote up Reply

Can i vote this down twice? She is going to use Stored Procs.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (3)