Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions samples/Microsoft.OData.Client.Wasm.Sample.Client/App.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"ProviderId": "Microsoft.OData.ConnectedService",
"Version": "1.1.1.0",
"GettingStartedDocument": {
"Uri": "http://odata.github.io/odata.net/"
},
"ExtendedData": {
"EnableNamingAlias": true,
"IgnoreUnexpectedElementsAndAttributes": true,
"IncludeT4File": false,
"ExcludedOperationImports": [],
"ExcludedBoundOperations": [],
"OmitVersioningInfo": false,
"ServiceName": "WasmSampleBackend",
"Endpoint": "http://localhost:5023/$metadata",
"EdmxVersion": {
"Major": 4,
"Minor": 0,
"Build": 0,
"Revision": 0,
"MajorRevision": 0,
"MinorRevision": 0
},
"GeneratedFileNamePrefix": "WasmSampleBackendProxy",
"UseNamespacePrefix": false,
"NamespacePrefix": "WasmSampleBackedClient",
"UseDataServiceCollection": true,
"MakeTypesInternal": false,
"OpenGeneratedFilesInIDE": false,
"GenerateMultipleFiles": false,
"CustomHttpHeaders": null,
"IncludeWebProxy": false,
"WebProxyHost": null,
"IncludeWebProxyNetworkCredentials": false,
"StoreWebProxyNetworkCredentials": false,
"WebProxyNetworkCredentialsUsername": null,
"WebProxyNetworkCredentialsPassword": null,
"WebProxyNetworkCredentialsDomain": null,
"IncludeCustomHeaders": false,
"StoreCustomHttpHeaders": false,
"ExcludedSchemaTypes": []
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:DataServices>
<Schema Namespace="Microsoft.OData.Client.Wasm.Sample.Server.Models" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EntityType Name="Customer">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Edm.Int32" Nullable="false" />
<Property Name="Name" Type="Edm.String" Nullable="false" />
<Property Name="Photo" Type="Edm.Stream" Nullable="false" />
<NavigationProperty Name="Orders" Type="Collection(Microsoft.OData.Client.Wasm.Sample.Server.Models.Order)" />
</EntityType>
<EntityType Name="Order">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Edm.Int32" Nullable="false" />
<Property Name="Amount" Type="Edm.Decimal" Nullable="false" Scale="variable" />
<NavigationProperty Name="Customer" Type="Microsoft.OData.Client.Wasm.Sample.Server.Models.Customer" Nullable="false" />
</EntityType>
<EntityType Name="MediaAsset" HasStream="true">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Edm.Int32" Nullable="false" />
</EntityType>
</Schema>
<Schema Namespace="Default" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<Function Name="GetTopCustomer" IsBound="true">
<Parameter Name="bindingParameter" Type="Collection(Microsoft.OData.Client.Wasm.Sample.Server.Models.Customer)" />
<ReturnType Type="Microsoft.OData.Client.Wasm.Sample.Server.Models.Customer" />
</Function>
<Function Name="GetTop2Orders" IsBound="true">
<Parameter Name="bindingParameter" Type="Collection(Microsoft.OData.Client.Wasm.Sample.Server.Models.Order)" />
<ReturnType Type="Collection(Microsoft.OData.Client.Wasm.Sample.Server.Models.Order)" />
</Function>
<Action Name="ApplyDiscount" IsBound="true">
<Parameter Name="bindingParameter" Type="Microsoft.OData.Client.Wasm.Sample.Server.Models.Order" />
<Parameter Name="discountPercentage" Type="Edm.Decimal" Nullable="false" Scale="variable" />
<ReturnType Type="Edm.Decimal" Nullable="false" Scale="variable" />
</Action>
<Action Name="ResetDataSource" />
<EntityContainer Name="Container">
<EntitySet Name="Customers" EntityType="Microsoft.OData.Client.Wasm.Sample.Server.Models.Customer">
<NavigationPropertyBinding Path="Orders" Target="Orders" />
</EntitySet>
<EntitySet Name="Orders" EntityType="Microsoft.OData.Client.Wasm.Sample.Server.Models.Order">
<NavigationPropertyBinding Path="Customer" Target="Customers" />
</EntitySet>
<EntitySet Name="Media" EntityType="Microsoft.OData.Client.Wasm.Sample.Server.Models.MediaAsset" />
<ActionImport Name="ResetDataSource" Action="Default.ResetDataSource" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
Loading