Skip to content

Commit c5d7755

Browse files
committed
Minor refactoring.
1 parent 48c1b23 commit c5d7755

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AbpODataDemo.WebApi/AbpODataDemoWebApiModule.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ public class AbpODataDemoWebApiModule : AbpModule
1111
{
1212
public override void PreInitialize()
1313
{
14-
Configuration.Modules.AbpWebApiOData().ODataModelBuilder.EntitySet<Person>("Persons");
14+
var builder = Configuration.Modules.AbpWebApiOData().ODataModelBuilder;
15+
16+
//Configure your entities here...
17+
builder.EntitySet<Person>("Persons");
1518
}
1619

1720
public override void Initialize()

0 commit comments

Comments
 (0)