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
Category:Uncategorised
Prism AOP – 3
I am playing with Prism’s new Aspect Oriented Programming feature. As a learning exercise I am implementing some of the features ECO requires on a class. If all goes well I will end up with aspects I can apply to plain classes and have them run in ECO. One of those features is the ILoopBack2 …
Continue reading Prism AOP – 3
AOP 2
This is fun π I’ve created an aspect like so type BusinessClassAttribute = public class(System.Attribute, ITypeInterfaceDecorator) private FPackageName: String; property PackageName: String read FPackageName; protected public constructor (PackageName: String); method HandleInterface(Services: RemObjects.Oxygene.Cirrus.IServices; aType: RemObjects.Oxygene.Cirrus.ITypeDefinition); end; I can now decorator my class like so type [aspect: BusinessClass(’DomainClasses.Package1’)] Person = class end; I can ensure this class exists in the aspect implementation method. constructor BusinessClassAttribute(PackageName: String);begin FPackageName := PackageName;end; method BusinessClassAttribute.HandleInterface(Services: …
Continue reading AOP 2
My first AOP
Hereβs what I did. 01: I created a support project which just has a logger class in it. namespace EcoSupport.pas;interfaceuses System.Collections.Generic, System.Linq, System.Text; type Logger = public class private protected public class procedure Log(Message : String); end; implementation class procedure Logger.Log(Message : String);begin System.Diagnostics.Debug.WriteLine(’Log: ’ + Message);end;end. 02: I created an Aspect which decorates methods, giving me the opportunity to intercept all method calls on …
Continue reading My first AOP
My next new best friend
http://blogs.remobjects.com/blogs/ck/2009/02/06/p251 Read the comments I posted to see why I like it!
Unemployed
My employer’s support contract has finally come to an end which means I have to look for another job, haven’t had to do that in a while! Drop me an email if you have any positions vacant, in the meantime it’s time to do a little “networking”.
Unity – contexts
The outcome of this fairly long exchange on codeplex has made me very happy!
The BNP need my help
It seems they are unable to spell the word “money”, because every time they send me their drivel of a newsletter they always want money. Usually it is for their “Van of truth” (which amuses me immensely) but this time it is to help them to become “the most technically advanced political party in the …
Continue reading The BNP need my help
No Silverlight?
I’m trying to view this page in Firefox. When it loads the browser tells me I need Silverlight, so I download and install it and then restart my browser only to be told I need to install Silverlight. That’s not impressive at all!
Delphi flickers
My app has a wizard approach, the current control appears within a panel with Align set to fill the hosting panel. My first wizard step control merely had an image on it which resizes with its parent control. When I resize the form the host panel resizes, which resizes the wizard control, which resizes the …
Continue reading Delphi flickers
