The summary below describes major new features, items of note and breaking changes. The full list of issues is also available for those with access to the Encodo issue tracker.
IApplicationnow directly implement the
IServiceRequestHandlerand helper methods that used to extend
IApplicationnow extend this interface instead, so calls like
GetModel()can now be executed against an
IDataSession. Many methods have been moved out of the
IServiceRequestHandlerinterface to extension methods declared in the
Encodo.IOCnamespace. This move will require applications to update the
usings. ReSharper will automatically find the correct namespace and apply it for you.
ApplicationExtensions.GetInstance()has been replaced with a direct implementation of the
MetaBuilder.Include()has been replaced with
CreateModel(), you can no longer call
CreateMainModule()because the main module is set up automatically. Although the call is marked as obsolete, it can only be combined with the older overload of the
CreateModel(). Using it with the newer overload will cause a runtime error as the main module is added to the model twice.
MetaBuilderhave been replaced by
AddPath(). To rewrite a path, use the following style:
Builder.AddPath( Elements.Classes.A.FromOne("Id"), Elements.Classes.B.ToMany("FileId"), path => path.SetMetaId(new Guid("...")).SetDeleteRule(MetaPathRule.Cascade), idx => idx.SetMetaId(new Guid("...")) );
Sign up for our Newsletter