Skip to content

Commit

Permalink
Minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalkan committed Jan 10, 2016
1 parent 48c1b23 commit c5d7755
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AbpODataDemo.WebApi/AbpODataDemoWebApiModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ public class AbpODataDemoWebApiModule : AbpModule
{
public override void PreInitialize()
{
Configuration.Modules.AbpWebApiOData().ODataModelBuilder.EntitySet<Person>("Persons");
var builder = Configuration.Modules.AbpWebApiOData().ODataModelBuilder;

//Configure your entities here...
builder.EntitySet<Person>("Persons");
}

public override void Initialize()
Expand Down

0 comments on commit c5d7755

Please sign in to comment.