business-objects

Force validation on bound controls in WPF

好久不见. 提交于 2019-11-26 17:59:30
问题 I have a WPF dialog with a couple of textboxes on it. Textboxes are bound to my business object and have WPF validation rules attached. The problem is that user can perfectly click 'OK' button and close the dialog, without actually entering the data into textboxes. Validation rules never fire, since user didn't even attempt entering the information into textboxes. Is it possible to force validation checks and determine if some validation rules are broken? I would be able to do it when user

Entity Framework And Business Objects

十年热恋 提交于 2019-11-26 17:46:55
I have never used the entity framework before and i would like to try some personal projects implementing it to get my feet wet. I see that entities can be exposed to the presentation layer. But i don't want certain fields exposed, fields like modified dates and created dates and various other database fields. how could i implement Business objects and just expose the properties i need but still keep the objects serializable? Also what advantages does this have over LinqToSql? Ladislav Mrnka When you define an entity in the EDMX model you can specify the visibility of each property's setter

Entity Framework And Business Objects

徘徊边缘 提交于 2019-11-26 05:37:12
问题 I have never used the entity framework before and i would like to try some personal projects implementing it to get my feet wet. I see that entities can be exposed to the presentation layer. But i don\'t want certain fields exposed, fields like modified dates and created dates and various other database fields. how could i implement Business objects and just expose the properties i need but still keep the objects serializable? Also what advantages does this have over LinqToSql? 回答1: When you