Microsoft
Software
Hardware
Network
Question : Updating with Entity Framewokr
I am in the process of building a DAL and BLL using Entity Framework. I have a couple of hopefully trivial questions.
Firstly to fill in on my situation, I want to use the EF as a DAL with a set of BLL classes to query the DAL. I want to use the BLL classes to handle CRUD instructions to the DAL/EF. Each entity has a corresponding BLL class which deals with the CRUD operations and passes the appropriate instructions to the DAL/EF.
1. Validation
Where should the validation for entity objects go? I could validate in the BLL or I could validate in EF partial classes. It seems I can add a "onpropertychanging" function in the partial class for each field - is there a "OnEntityChanged" event where I can deal with everything instead of having a separate function for each field?
2. Entered Date / Updated Date
Most tables in my database and thus entities have an "entered date" and "updated date" field. This is NOT for concurrency (a timestamp field handles this) but is for tracking users behaviour.
I would prefer to set these fields in one place, ideally somewhere in the object context or similar rather than coding it for each entity. I could derive each BLL class from a "base" BLL class and do this there but I would like to know all the options.
Thanks in advance.
Answer : Updating with Entity Framewokr
sure, that should work, however which aspects of SBS do you use? there is more to it if you do exchange as well, sharepoint etc etc.
Random Solutions
Outlook 2007 Tasks sending out automatic status reports (updates) when attachments are opened
Should Sys Admins (Domain Admins) also have user accounts?
Can not get mysql to work with IIS7 Drupal and PHP
Can WordPress be customized to some degree by manipulating files embeded in the WordPress file path
printer not using default settings
How can I edit my Excel list to include only one entry from each domain name
can't change password through OWA 2010
How to convert non ansi outer join =* to ansi outer join
Best way to "reimage" office computers so that they all have same OS
convert c++ delegate parameters for managed code