1. The Mappings: Whether it’s rolled via XML, attributes, or some fluent API, it’s something you as a developer have to maintain, so even if you let the conceptual object-model drive the design of your database, you are implicitly DDL through the mappings. 2. HQL, EQL, XQL: It is just a DSL over SQL, which … Continue reading »
Filed under Architecture, Design …
Where are your Scenarios in your domain?
If you design your entities before you design your scenarios, you are data-driven! The Scenarios are primary – The entities are secondary! – Daniel Wertheim My words of what I think is wrong in many projects, and thats what this post is about. Definition of Scenario a postulated sequence of possible events – http://wordnetweb.princeton.edu/perl/webwn?s=scenario In … Continue reading »
Use StructureMap and Castle DynamicProxy to easily change the semantics of your code
In this posting my intentions are to show you how to use Inversion of Control (IoC), with the help of StructureMap, for being able to easily switch the semantics of e.g entities in a model with the change of a few lines in the StructureMap configuration. I will use it to go from plain classes … Continue reading »
The Moq, mockingframework, and the tangling of Stubs and Mocks
When I need the powers of a Faking-framework I use the Moq-framework, which I use when I feel that it is to much work for creating a manual Fake (which I only do with stubs). There’s one thing that I really don’t like with Moq, the tangling of Mocks and Stubs. I like to see … Continue reading »
Updates to – Putting Entity framework 4 to use in a business architecture
This post only reflects some updates to my previous article: Putting Entity framework 4 to use in a business architecture. I made a “minor” error in my EfDynamicProxyAssemblies that is consumed by my EfDataContractSerializer. The error which I know have corrected arised when I added an example to the client application, where I intended to … Continue reading »
Putting Entity framework 4 to use in a business architecture
Updates have been made since version 1 of this article! “>Read more about it here. Finally I’m finished. I have been struggling with an intended sum-up of my latest post using Entity framework 4. It ended up with an document of about 40 pages. There is a lot of code in there so the number … Continue reading »
Extend IQueryable instead of a certain dataprovider – more decoupled code
This is going to be a real short post and is more of an update to my last post (Entity validaton using Custom Data Annotation attributes) then a new one. I have made two small technical changes and with these small changes I have gained a more decoupled code. Change One Instead of having a … Continue reading »
NHibernate – Repository pattern
I know that there allready are implementations for NHibernate-based repositories (eg. RhinoTools) but I can’t help to fiddling a bit with a design that I feel comfortable with. When building business applications I like to use a domain model (Read more – Martin Fowler) and to use repositories (Read more – Martin Fowler) for storing … Continue reading »
Does code have to be Localized for achieving a “Ubiquitous Language”?
Recently I have encountered C# code containing names found in the business that the applications maps to. So far so good except that the names of objects, methods, properties, functions etc. were written in Swedish and of course with special characters like “Å, Ä, Ö” My question is “Does code has to be localized for … Continue reading »