|
Not a bad story but you never explain this:
Tristan Rhodes wrote: I don't think DataSets are appropriate to this problem.
If you think it is obvious from your post it's not, at least to me. I have implemented several .NET Desktop applications that use MVC with a DataSet at the core of the Model. In some cases the Data source is an XML file. However in most cases I started out thinking XML files would work and quickly moved on to using the SQL Desktop Database.
Our main .NET Desktop/Web application uses a Database with NHibernate and an Object Model. In my experience and listening to others on the internet talk about managing the session and data layers from a development standpoint, there is no silver bullet, period. You can't just drag and drop controls and handle events to generate a complete solution. If your project data has any level of complexity, and yours certainly does, you will have to do some development. Also IMHO Databases still rule when it comes to managing complex data relationships. If your project is large enough you might want to look into the Castle ActiveRecord implementation[^] which uses NHibernate.
led mike
|
|
|
|
|
Hi Mike,
Thanks for the input. I Can't explain why DataSets are not appropriate, as i'm not sure what concrete reasons i have. I just have a feeling that going down that route would produce bad results, and i've been stung by DataSets before.
In the end, i decided to go with a bog standard XML DOM, and build an API Class(s) that applies transformations, queries the data, and raises application specific events when the DOM changes. I'll just see how it goes.
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Tristan Rhodes wrote: I just have a feeling
Some friendly advice. Don't base your technical decisions on your feelings. Seriously, in todays world the availability of information eliminates the need to make blind decisions that were common years ago and resulted in the mountains of Technical Debt[^] that exist in the industry today.
led mike
|
|
|
|
|
It's past experience as well, and i have looked into it. :P
I love the concept of Code Debt. Spent ages trying to get management to see what it was in my last job, but there's only so much you can teach old school VB heads. ^^
[Edit] And if you say you've never looked at a design or section of code and thought "Something is seriously wrong, but i can't put my finger on it.", i think you lie :P
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
One word. INotifyPropertyChanged. Have a look at this little puppy - it can be your best friend.
|
|
|
|
|
AHHH!
I wish i knew about that 4 weeks ago
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Tristan Rhodes wrote: I wish i knew about that 4 weeks ago
Sorry. I only just read this thread last night.
|
|
|
|
|
No worries. I don't think that it's suited for the problem i had, but it definitely has some uses is some other stuff i was working on.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
To be honest, I'm having a little trouble picking up the problem domain from this thread. I'm not sure why you need the XML and why you can't use properties.
|
|
|
|
|
Well, i'm trying to route all events through a single root object, only wiring up a hierachy of observable lists, trees and properties to do that will be an absolute nightmare as the model is growing almost daily.
Additionally, i need to be able to run XPath queries on any part of the model and define some kind of schema to validate against. Which i couldn't do with objects.
It's a desktop app if that makes any difference, and the XML would be the state of the solution and everything pretty much revolves around changing that and keeping display parts synchronized with it.
Not sure how to describe it beyond that.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Short of hashing the different observable portions and then periodically checking to see if the hash has changed, tricky. Although if you implemented this with MVC, then it would be less tricky.
|
|
|
|
|
Pete O'Hanlon wrote: INotifyPropertyChanged
That appears to be new in 3.5, yes? I haven't been there yet.
led mike
|
|
|
|
|
It's been around since 2.0.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
led mike wrote: That appears to be new in 3.5, yes?
.NET 2.0. I've used it to manage Dirty states in classes - it's rather neat.
|
|
|
|
|
I still can't find the 2.0 Reference to this puppy?[^]
System.ComponentModel.INotifyPropertyChanged<br />
Finally! Geez, apparently I have been implementing the IAmAnIdiot interface Last modified: 45mins after originally posted --
led mike
|
|
|
|
|
led mike wrote: Geez, apparently I have been implementing the IAmAnIdiot interface
No fair. I copyrighted that one.
|
|
|
|
|
hii,
pls send uml diagrams for unicode optical unicode character recognition using artifical neural network.its very urgent,pls send
as soon as possible
|
|
|
|
|
|
WOW !!!!
All the good keywords are here :
PLS
SEND
VERY
URGENT
AS SOON AS POSSIBLE
Yeah Right...
|
|
|
|
|
pls send uml diagrams as early as possible
|
|
|
|
|
Tell me/us why would someone do your work for free for you ?
|
|
|
|
|
Why?
Are you too lazy, or too stupid to do them yourself?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
pmarfleet wrote: Are you too lazy, or too stupid to do them yourself?
That's a given. He was too lazy and stupid to get the responses when he first posted this. He needs an IQ upgrade just to reach single digit figures.
|
|
|
|
|
This thread is so awesome it almost deserves to be stickied.
I mean... How to sticky thread in XML and Web2.0 using AI? Plz send codes as soon as possible? URGENT!!!!
|
|
|
|
|
Mark Churchill wrote: How to sticky thread in XML and Web2.0 using AI? Plz send codes as soon as possible? URGENT!!!!
|
|
|
|