This question is locked. New answers and comments are not allowed.
Hi
I'm trying to learn OO programming and start using LINQ and OA. When reading about LINQ I noticed the auto-generated partial methods under "Extensibility Method Definitions". They look to me like event handling primers, or whatever it's called, firing off automatically when something happens to a class. I assume it's where I'm supposed to add validation code etc. Neat!
How does this work in OA? I don't see any such methods when mapping my classes using OA, and I'd really like to remove all validation methods from the GUI of my apps. (I've got some check that this date comes after another date type logic that I currently impement on several forms).
In particular, I'd like to be able to set default values on object creation, check values on updating (the property, not the database as I do now), and in general give immidiate feedback without having to incur a save method.
I did find two interfaces called INotifyPropertyChanging and INotifyPropertyChanged mentioned on a help page. Are those two interfaces enough to do all the stuff that Extensibility Method Definitions offers?
I'm a newbie programmer so I can't see what I will eventually need down the line, which makes it difficult to decide if OA is the way to go in order to both learn OO programming, and improving my currently rather unstable and unflexible solution.
Re
Dennis
I'm trying to learn OO programming and start using LINQ and OA. When reading about LINQ I noticed the auto-generated partial methods under "Extensibility Method Definitions". They look to me like event handling primers, or whatever it's called, firing off automatically when something happens to a class. I assume it's where I'm supposed to add validation code etc. Neat!
How does this work in OA? I don't see any such methods when mapping my classes using OA, and I'd really like to remove all validation methods from the GUI of my apps. (I've got some check that this date comes after another date type logic that I currently impement on several forms).
In particular, I'd like to be able to set default values on object creation, check values on updating (the property, not the database as I do now), and in general give immidiate feedback without having to incur a save method.
I did find two interfaces called INotifyPropertyChanging and INotifyPropertyChanged mentioned on a help page. Are those two interfaces enough to do all the stuff that Extensibility Method Definitions offers?
I'm a newbie programmer so I can't see what I will eventually need down the line, which makes it difficult to decide if OA is the way to go in order to both learn OO programming, and improving my currently rather unstable and unflexible solution.
Re
Dennis