Posts Tagged ‘domain’

I know I’m certainly guilty of this. I treat the domain model simply like a means of accessing the database and build all the real logic into a set of “managers” that manipulate the entities and do the actual work.

How does the idea of a rich domain model intersect with the Entity Framework? Sure you’ve got the partial entity classes to add your own logic and maybe I’m old fashioned but it makes me real nervous having my code tightly coupled (does it get much tighter coupled than a partial class?) with thousands of lines of generated code. Feels much safer to group the generated code in one place and your own code in a separate place so that changing one affects the other as little as possible.

That said I’ve found listening to Folwer to be a pretty safe bet, so what am I missing?

The basic symptom of an Anemic Domain Model is that at first blush it looks like the real thing. There are objects, many named after the nouns in the domain space, and these objects are connected with the rich relationships and structure that true domain models have. The catch comes when you look at the behavior, and you realize that there is hardly any behavior on these objects, making them little more than bags of getters and setters. Indeed often these models come with design rules that say that you are not to put any domain logic in the the domain objects. Instead there are a set of service objects which capture all the domain logic. These services live on top of the domain model and use the domain model for data.

via MF Bliki: AnemicDomainModel.


Read Full Post »

What to do when you’re trying to use Sql Management Studio with domain authentication but you’re not on the domain? (For example, you’re using a VPN from home.) For me, Galid had the answer. (Note: “netonly” is the key!)

In my daily work I need to access several remote SQL Servers (over VPN) and some of them require windows authentication. With SQL Server Authentication is easy – just create VPN connection and use SQL Server Management Studio from local machine entering SQL credentials in the wide-known box below:

via Galin Iliev [Galcho] Blog! – Access Remote SQL Server with SQL Management Studio and Windows Authentication.

Read Full Post »