Re: Removing datasets from our architecture...

Tech-Archive recommends: Speed Up your PC by fixing your registry



I suppose we cant really go OR mapping because we have an existing database that is being migrated, so the relational model is all setup...

The code *works* but its messy as all hell, what concerns me most is maintanance issues...I guess ideally itd be nicer to stay with datasets if I can sort out keeping it tidy and maintanable (when i say done, its not really done, just its been started on)...

Im relativly new at it all...what im concidering is a 1:1 table/view to buisiness object...I realise there are reasons not to do that, but we dont have time to do fullon UML stuff...

I personally think the thing needs a complete rewrite, but I have other parties here saying neigh, and Im not experienced enough to argue differently...


"Alun Harford" <devnull@xxxxxxxxxxxxxxxxx> wrote in message news:OAmTPN9IIHA.2064@xxxxxxxxxxxxxxxxxxxxxxx
John Sheppard wrote:
Hello,

I was curious as to peoples thoughts on using tools such as MyGeneration/CodeSmith to generate business objects as opposed to using datasets? We currently use datasets, for various reasons I *suspect* we want to move away from using them....

Perhaps you might like to look at 'real' OR mappers like NHibernate/ActiveRecord or LLBLGen

I guess my secondary question is will it be a complete rewrite to remove datasets from the application? :( or is there an easy way to do it? (They are HEAVILY used)

If you want to change working code, then you'll probably gain a lot from a major refector or even a rewrite.
But if the code works, there probably isn't a reason to rewrite it (unless you have nice unit tests to make major refactoring easy).

Alun Harford

.



Relevant Pages

  • Re: Removing datasets from our architecture...
    ... for various reasons I *suspect* we want to move away from using them.... ... If you want to change working code, then you'll probably gain a lot from a major refector or even a rewrite. ... there probably isn't a reason to rewrite it. ...
    (microsoft.public.dotnet.general)
  • Re: Removing datasets from our architecture...
    ... so the relational model is all setup... ... IIRC LLBLGen can generate the classes straight from your existing database, and NHibernate is also pretty painless. ... I personally think the thing needs a complete rewrite, but I have other parties here saying neigh, and Im not experienced enough to argue differently... ... Rewrites have a nasty tendency to kill products in large companies, or kill the company in small companies. ...
    (microsoft.public.dotnet.general)
  • Re: Delphi 2008 native?
    ... Wayne, sorry. ... I, as person, that uses Pascal (Delphi), I cannot find ... reasons, we to use .NET. ... | rewrite years worth of perfectly good working Win32 code in .Net just to ...
    (borland.public.delphi.non-technical)
  • Re: What is the benefit to me of .NET as an end-user?
    ... to managed code without much of a rewrite. ... and the framework will already be properly ported to the CPU. ... and impose those "reasons" on everyone else. ...
    (borland.public.delphi.non-technical)
  • Re: Fantasy fans...
    ... clear and concise, however, when writing on the spur of the moment, I ... Write, then rewrite, rewrite and rewrite. ... Everyone does not write for the same reasons, ... Opinions are NEVER wrong, ...
    (rec.arts.sf.composition)