Implementing datacontext class