Skip to content

Commit

Permalink
Simplify Trippin namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepizzo committed Sep 2, 2020
1 parent b50c304 commit 8f5c88e
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 20 deletions.
Expand Up @@ -10,7 +10,7 @@
using System.Threading.Tasks;
using Microsoft.AspNet.OData.Builder;
using Microsoft.OData.Edm;
using Microsoft.OData.Service.Sample.TrippinInMemory.Models;
using Trippin;
using Microsoft.Restier.AspNet.Model;
using Microsoft.Restier.Core;
using Microsoft.Restier.Core.Model;
Expand Down Expand Up @@ -346,7 +346,7 @@ internal class ModelBuilder : IModelBuilder
public Task<IEdmModel> GetModelAsync(ModelContext context, CancellationToken cancellationToken)
{
var modelBuilder = new ODataConventionModelBuilder();
modelBuilder.Namespace = "Microsoft.OData.Service.Sample.TrippinInMemory.Models";
modelBuilder.Namespace = "Trippin";
modelBuilder.EntitySet<Person>("People");
modelBuilder.EntitySet<Airline>("Airlines");
modelBuilder.EntitySet<Airport>("Airports");
Expand Down
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using System.Configuration;
using System.Web.Http;
using System.Web.Http.Cors;
using Microsoft.AspNet.OData;
Expand All @@ -11,7 +10,7 @@
using Microsoft.AspNet.OData.Query;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OData.Service.Sample.TrippinInMemory.Api;
using Microsoft.OData.Service.Sample.TrippinInMemory.Models;
using Trippin;
using Microsoft.Restier.Core;
using Microsoft.Restier.Core.Model;
using Microsoft.Restier.Core.Submit;
Expand Down
Expand Up @@ -9,7 +9,7 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OData.Service.Sample.TrippinInMemory.Api;
using Microsoft.Restier.Core;
using Microsoft.OData.Service.Sample.TrippinInMemory.Models;
using Trippin;
using System;
using System.Net.Http;
using System.Web.Http.Routing;
Expand Down
Expand Up @@ -3,7 +3,7 @@

using System.ComponentModel.DataAnnotations;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Airline
{
Expand Down
Expand Up @@ -3,7 +3,7 @@

using System.ComponentModel.DataAnnotations;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Airport
{
Expand Down
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class City
{
Expand Down
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Generic;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Employee : Person
{
Expand Down
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Event : PlanItem
{
Expand Down
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Flight : PublicTransportation
{
Expand Down
Expand Up @@ -3,7 +3,7 @@

using Microsoft.Spatial;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Location
{
Expand Down
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Generic;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Manager : Person
{
Expand Down
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public enum PersonGender
{
Expand Down
Expand Up @@ -3,7 +3,7 @@

using System;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class PlanItem
{
Expand Down
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class PublicTransportation : PlanItem
{
Expand Down
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class Trip
{
Expand Down
Expand Up @@ -7,7 +7,7 @@
using System.Linq;
using Microsoft.Spatial;

namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models
namespace Trippin
{
public class TripPinDataSource
{
Expand Down
@@ -1,10 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
Expand Down

0 comments on commit 8f5c88e

Please sign in to comment.