My copy of this book has just turned up. I am book hungry these days, can’t wait to read it 🙂
Author:Peter Morris
Connascence
I’ve just finished reading What every programmer should know about object oriented design. The first couple of sections are a bit useless really, but the 3rd section is very good. I particularly liked the section on the difference types of connascence in software. There’s some basic information about it here if you fancy a brief …
Continue reading Connascence
I’ve just ordered a Java book
http://java.sun.com/blueprints/corej2eepatterns/index.html It was only $0.41 used in the USA, came to about £6 with posting to the UK. I don’t write Java and at the moment have no interest in learning it, but I expect I will be able to read it without problems (never really looked at it). So why did I buy this …
Continue reading I’ve just ordered a Java book
Prism – Invariants, and pre/post conditions – update
Just found out that I can do this too public invariants Overdraft >= 0 : ’OverdraftGreaterThanOrEqualToZero’; Balance + Overdraft >= 0 : ’BalancePlusOverDraftGreaterThanOrEqualToZero’;end; Then in my handler routine I get that message! if not IsValid then throw new Exception(ErrorMessage); Excellent 🙂
Prism – Invariants, and pre/post conditions
I’ve been looking at Prism some more recently. I’m a bit annoyed with myself really because someone has been telling me to look at it for years but I wanted to concentrate on C#. Now that I am looking at it I see things in there which I really like. Recently I am looking at …
Continue reading Prism – Invariants, and pre/post conditions
Injecting into the ECO cache
In my previous post I showed an interface ILockable. The actual interface is public interface ILockable{ Guid GetLockID(); Type GetLockObjectType();} Any lockable resource implements this interface. In its constructor it creates an instance of a class which descends from LockObject, a Document class for example would create an instance of DocumentLockObject which descends from LockObject. The "Document" …
Continue reading Injecting into the ECO cache
Setting the ID of an ECO object before it is saved
This might seem like a bit of an odd requirement. I am currently implementing an offline pessimistic locking service in an ECO app. This will mean that I can use a LockingService to place read/write locks on objects. As usual I have gone for an interface approach (ILockable) rather than making all my lockable classes …
Continue reading Setting the ID of an ECO object before it is saved
Using a GUID as the key in ECO
Drop a DefaultORMappingBuilder component next to your persistence mapper. Point PersistenceMapperxxxxx1.NewMappingProvider and RuntimeMappingProvider to point to this new component. On your PersistenceMapper component expand SqlDatabaseConfig and click the […] next to KeyMappers, ensure that you have an item named “GuidMapper” with the MapperTypeName set to “Eco.Persistence.GuidKeyMapper”. If not then add it. On your DefaultORMapperBuilder set …
Continue reading Using a GUID as the key in ECO
Prism AOP – 4
I’ve played a little more with Prism. I find it a little difficult to mentally code on two levels. Level one being the code I am writing for the aspect, and level two being the code I am writing which will executed by the target. Having said that, as soon as I ran my app …
Continue reading Prism AOP – 4
ECO – Ensure related objects
Sometimes you have a list of objects (say List<PurchaseOrder>) and you want to get all associated objects (say OrderLines) for all the orders in the list. There are 2 ways of doing this in ECO You call a PersistenceService method which takes the list of orders and a string identifying the association name. I don’t …
Continue reading ECO – Ensure related objects
