Now all the actions/functions are added as ActionImport/FunctionImport, even for bound action/function.
For example:
var actionConfiguration = employee.Action("AddSkill");
actionConfiguration.Parameter<Skill>("skill");
actionConfiguration.ReturnsCollection<Skill>();
the output is :
<Action Name="AddSkill" IsBound="true" ReturnType="Collection(WebStack.QA.Test.OData.Enums.Skill)" Nullable="false" m:IsAlwaysBindable="true">
<Parameter Name="bindingParameter" Type="WebStack.QA.Test.OData.Enums.Employee" />
<Parameter Name="skill" Type="WebStack.QA.Test.OData.Enums.Skill" Nullable="false" />
</Action>
<EntityContainer Name="Container" m:IsDefaultEntityContainer="true">
<EntitySet Name="Employees" EntityType="WebStack.QA.Test.OData.Enums.Employee" />
<ActionImport Name="AddSkill" Action="WebStack.QA.Test.OData.Enums.AddSkill" />
</EntityContainer>
For example:
var actionConfiguration = employee.Action("AddSkill");
actionConfiguration.Parameter<Skill>("skill");
actionConfiguration.ReturnsCollection<Skill>();
the output is :
<Action Name="AddSkill" IsBound="true" ReturnType="Collection(WebStack.QA.Test.OData.Enums.Skill)" Nullable="false" m:IsAlwaysBindable="true">
<Parameter Name="bindingParameter" Type="WebStack.QA.Test.OData.Enums.Employee" />
<Parameter Name="skill" Type="WebStack.QA.Test.OData.Enums.Skill" Nullable="false" />
</Action>
<EntityContainer Name="Container" m:IsDefaultEntityContainer="true">
<EntitySet Name="Employees" EntityType="WebStack.QA.Test.OData.Enums.Employee" />
<ActionImport Name="AddSkill" Action="WebStack.QA.Test.OData.Enums.AddSkill" />
</EntityContainer>