forked from lmcalpin/odata_server
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from sassafrastech/pr_metadata
Features for customizing $metadata (and supporting tweaks)
- Loading branch information
Showing
16 changed files
with
117 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ def plural_name | |
name.pluralize | ||
end | ||
|
||
def url_name | ||
@url_name || plural_name | ||
end | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"> | ||
<edmx:DataServices> | ||
<Schema Namespace="Test" xmlns="http://docs.oasis-open.org/odata/ns/edm"> | ||
<EntityType Name="ActiveBar"> | ||
<Key> | ||
<PropertyRef Name="Id"/> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Int64" Nullable="false"/> | ||
<Property Name="Name" Type="Edm.String" Nullable="true"/> | ||
<Property Name="CreatedAt" Type="Edm.DateTimeOffset" Nullable="false"/> | ||
<Property Name="UpdatedAt" Type="Edm.DateTimeOffset" Nullable="false"/> | ||
</EntityType> | ||
<EntityType Name="ActiveFoo" BaseType="Test"> | ||
<Key> | ||
<PropertyRef Name="Id"/> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Int64" Nullable="false"/> | ||
<Property Name="Name" Type="Edm.String" Nullable="true"/> | ||
<Property Name="CreatedAt" Type="Edm.DateTimeOffset" Nullable="false"/> | ||
<Property Name="UpdatedAt" Type="Edm.DateTimeOffset" Nullable="false"/> | ||
</EntityType> | ||
<EntityContainer Name="TestService"> | ||
<EntitySet Name="ActiveBars" EntityType="Test.ActiveBar"> | ||
</EntitySet> | ||
<EntitySet Name="ActiveFoos" EntityType="Test.ActiveFoo"> | ||
</EntitySet> | ||
</EntityContainer> | ||
</Schema> | ||
</edmx:DataServices> | ||
</edmx:Edmx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters