From c5d7755859daa163b06e12a3b3502effda17fc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 11 Jan 2016 01:11:15 +0200 Subject: [PATCH] Minor refactoring. --- src/AbpODataDemo.WebApi/AbpODataDemoWebApiModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AbpODataDemo.WebApi/AbpODataDemoWebApiModule.cs b/src/AbpODataDemo.WebApi/AbpODataDemoWebApiModule.cs index 89f96bb..f79271c 100644 --- a/src/AbpODataDemo.WebApi/AbpODataDemoWebApiModule.cs +++ b/src/AbpODataDemo.WebApi/AbpODataDemoWebApiModule.cs @@ -11,7 +11,10 @@ public class AbpODataDemoWebApiModule : AbpModule { public override void PreInitialize() { - Configuration.Modules.AbpWebApiOData().ODataModelBuilder.EntitySet("Persons"); + var builder = Configuration.Modules.AbpWebApiOData().ODataModelBuilder; + + //Configure your entities here... + builder.EntitySet("Persons"); } public override void Initialize()