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
FAX configuration in windows 2003 server with Gmail.
NTLDR is Missing on HP Proliant ML350 G4 with Windows 2003 SP2
How to avoid zero(s) in front of number(s) disappears in array
Nested Gridviews RowDataBound Event Problem
V2P (Windows 2008)
VB .NET 2005 Combine Two Tables on Primary Key and Display in DataGridView
Should you dismount exchange database before exhange updates?
how can i find all ILO boards on a network
How can I convert a custom control that calls User32 and Shell32 to work on Mono?
Lightweight network management for mobile workforce