I work on a project where we\'re considering using Orchard CMS.
However, we want to use web services as data sources for some of the content items. I guess we have t
You don't have to implement an IRepository in case you don't want to fully direct the part storage to somewhere else. I'm currently using WCF service in one of my Orchard-based projects, so your scenario is similar.
You can do it this way:
OnLoaded<MyPart>((ctx, part) => {
part.MyProperty = myService.GetMyProperty(part.SomeIdToLookup);
});
Of course you can use other handler events (like OnInitialized, OnCreated, OnPublished etc). You can read more about content handlers here.
I'd also recommend getting a dev startup module from Codeplex for quick development.
Actually you don't need to use a repository or even a record. Depending on what you are trying to do, triggering the fetching logic from a handler might work.