I have a DAL in which i'm using Entity Framework, a business logic layer which consumes the objects returned by the DAL and an app layer That is a perversion, given taht y ouare putting a complet object layer into your dal. EF is a lot more than a DAL a business logic layer which consumes the objects returned by the DAL and an app layer The term you may want to look up for that is "anemic object model", and it is not a nice term Is there a more elegant approach to this? Don#t fight EF.
If you don't like it, don't use it - there are a LOT better frameworks around.
I have a DAL in which i'm using Entity Framework, a business logic layer which consumes the objects returned by the DAL and an app layer. That is a perversion, given taht y ouare putting a complet object layer into your dal. EF is a lot more than a DAL.
A business logic layer which consumes the objects returned by the DAL and an app layer. The term you may want to look up for that is "anemic object model", and it is not a nice term. Is there a more elegant approach to this?
Don#t fight EF. If you don't like it, don't use it - there are a LOT better frameworks around.
But I like how EF works. Maybe I don't fully understand it, but I like it. Btw I meant that my DAL uses EF to access data.
But I restrict EF to my DAL, other layers are given DTOs by the DAL. – Alka Aug 22 '10 at 17:24 You don't understand anything about OO it seems - this is, as I said, a perversion of a what EF can do. – TomTom Aug 22 '10 at 18:43 What's the right way to use it?
– Alka Aug 22 '10 at 18:57 Use it as business object layer. As per documentation and standard approach for O/R mappers in the last 20 years since they were invented. If you don't know how to program with objects, I suggest Forlwer's excellent "Building Object Applications That Work".
– TomTom Aug 22 '10 at 19:06 Basically: you don't need a DAL becasue you already have one - IN EF INTERNALLY. EF Objects ARE objects, thus they are what is normally called business objects. – TomTom Aug 22 '10 at 19:07.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.