Browse Source

Rename namespaces to the correct format.

pull/73/head
dsanz 8 years ago
parent
commit
e5c0340de5
21 changed files with 34 additions and 39 deletions
  1. +1
    -1
      src/Web/WebMonolithic/eShopWeb/CatalogSettings.cs
  2. +3
    -3
      src/Web/WebMonolithic/eShopWeb/Controllers/CatalogController.cs
  3. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Infrastructure/CatalogContext.cs
  4. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Infrastructure/CatalogContextSeed.cs
  5. +2
    -4
      src/Web/WebMonolithic/eShopWeb/Infrastructure/Migrations/20170302162241_Initial.Designer.cs
  6. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Infrastructure/Migrations/20170302162241_Initial.cs
  7. +2
    -5
      src/Web/WebMonolithic/eShopWeb/Infrastructure/Migrations/CatalogContextModelSnapshot.cs
  8. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Models/CatalogBrand.cs
  9. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Models/CatalogItem.cs
  10. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Models/CatalogType.cs
  11. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Program.cs
  12. +4
    -4
      src/Web/WebMonolithic/eShopWeb/Services/CatalogService.cs
  13. +3
    -3
      src/Web/WebMonolithic/eShopWeb/Services/ICatalogService.cs
  14. +3
    -3
      src/Web/WebMonolithic/eShopWeb/Startup.cs
  15. +2
    -2
      src/Web/WebMonolithic/eShopWeb/ViewModels/Catalog.cs
  16. +2
    -2
      src/Web/WebMonolithic/eShopWeb/ViewModels/CatalogIndex.cs
  17. +1
    -1
      src/Web/WebMonolithic/eShopWeb/ViewModels/PaginationInfo.cs
  18. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Views/Catalog/Index.cshtml
  19. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Views/Catalog/_pagination.cshtml
  20. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Views/Catalog/_product.cshtml
  21. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Views/_ViewImports.cshtml

+ 1
- 1
src/Web/WebMonolithic/eShopWeb/CatalogSettings.cs View File

@ -1,4 +1,4 @@
namespace eShopWeb
namespace Microsoft.eShopWeb
{
public class CatalogSettings
{


+ 3
- 3
src/Web/WebMonolithic/eShopWeb/Controllers/CatalogController.cs View File

@ -1,5 +1,5 @@
using eShopWeb.Services;
using eShopWeb.ViewModels;
using Microsoft.eShopWeb.Services;
using Microsoft.eShopWeb.ViewModels;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using System;
@ -8,7 +8,7 @@ using System.Threading.Tasks;
// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace eShopWeb.Controllers
namespace Microsoft.eShopWeb.Controllers
{
public class CatalogController : Controller
{


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Infrastructure/CatalogContext.cs View File

@ -1,4 +1,4 @@
namespace eShopWeb.Infrastructure
namespace Microsoft.eShopWeb.Infrastructure
{
using eShopWeb.Models;
using Microsoft.EntityFrameworkCore;


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Infrastructure/CatalogContextSeed.cs View File

@ -1,4 +1,4 @@
namespace eShopWeb.Infrastructure
namespace Microsoft.eShopWeb.Infrastructure
{
using eShopWeb.Models;
using Microsoft.AspNetCore.Builder;


+ 2
- 4
src/Web/WebMonolithic/eShopWeb/Infrastructure/Migrations/20170302162241_Initial.Designer.cs View File

@ -1,11 +1,9 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using eShopWeb.Infrastructure;
namespace eShopWeb.Infrastructure.Migrations
namespace Microsoft.eShopWeb.Infrastructure.Migrations
{
[DbContext(typeof(CatalogContext))]
[Migration("20170302162241_Initial")]


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Infrastructure/Migrations/20170302162241_Initial.cs View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
namespace eShopWeb.Infrastructure.Migrations
namespace Microsoft.eShopWeb.Infrastructure.Migrations
{
public partial class Initial : Migration
{


+ 2
- 5
src/Web/WebMonolithic/eShopWeb/Infrastructure/Migrations/CatalogContextModelSnapshot.cs View File

@ -1,11 +1,8 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using eShopWeb.Infrastructure;
namespace eShopWeb.Infrastructure.Migrations
namespace Microsoft.eShopWeb.Infrastructure.Migrations
{
[DbContext(typeof(CatalogContext))]
partial class CatalogContextModelSnapshot : ModelSnapshot


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Models/CatalogBrand.cs View File

@ -1,4 +1,4 @@
namespace eShopWeb.Models
namespace Microsoft.eShopWeb.Models
{
using System;
using System.Collections.Generic;


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Models/CatalogItem.cs View File

@ -1,6 +1,6 @@
using System;
namespace eShopWeb.Models
namespace Microsoft.eShopWeb.Models
{
public class CatalogItem
{


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Models/CatalogType.cs View File

@ -1,4 +1,4 @@
namespace eShopWeb.Models
namespace Microsoft.eShopWeb.Models
{
using System;
using System.Collections.Generic;


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Program.cs View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace eShopWeb
namespace Microsoft.eShopWeb
{
public class Program
{


+ 4
- 4
src/Web/WebMonolithic/eShopWeb/Services/CatalogService.cs View File

@ -1,14 +1,14 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using eShopWeb.Models;
using Microsoft.eShopWeb.Models;
using Microsoft.AspNetCore.Mvc.Rendering;
using eShopWeb.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using eShopWeb.ViewModels;
using Microsoft.eShopWeb.Infrastructure;
using Microsoft.eShopWeb.ViewModels;
namespace eShopWeb.Services
namespace Microsoft.eShopWeb.Services
{
public class CatalogService : ICatalogService
{


+ 3
- 3
src/Web/WebMonolithic/eShopWeb/Services/ICatalogService.cs View File

@ -1,9 +1,9 @@
using eShopWeb.ViewModels;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.eShopWeb.ViewModels;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace eShopWeb.Services
namespace Microsoft.eShopWeb.Services
{
public interface ICatalogService
{


+ 3
- 3
src/Web/WebMonolithic/eShopWeb/Startup.cs View File

@ -1,5 +1,5 @@
using eShopWeb.Infrastructure;
using eShopWeb.Services;
using Microsoft.eShopWeb.Infrastructure;
using Microsoft.eShopWeb.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
@ -8,7 +8,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace eShopWeb
namespace Microsoft.eShopWeb
{
public class Startup
{


+ 2
- 2
src/Web/WebMonolithic/eShopWeb/ViewModels/Catalog.cs View File

@ -1,7 +1,7 @@
using eShopWeb.Models;
using Microsoft.eShopWeb.Models;
using System.Collections.Generic;
namespace eShopWeb.ViewModels
namespace Microsoft.eShopWeb.ViewModels
{
public class Catalog
{


+ 2
- 2
src/Web/WebMonolithic/eShopWeb/ViewModels/CatalogIndex.cs View File

@ -1,8 +1,8 @@
using eShopWeb.Models;
using Microsoft.eShopWeb.Models;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.Collections.Generic;
namespace eShopWeb.ViewModels
namespace Microsoft.eShopWeb.ViewModels
{
public class CatalogIndex
{


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/ViewModels/PaginationInfo.cs View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace eShopWeb.ViewModels
namespace Microsoft.eShopWeb.ViewModels
{
public class PaginationInfo
{


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Views/Catalog/Index.cshtml View File

@ -1,6 +1,6 @@
@{
ViewData["Title"] = "Catalog";
@model eShopWeb.ViewModels.CatalogIndex
@model Microsoft.eShopWeb.ViewModels.CatalogIndex
}
<section class="esh-catalog-hero">
<div class="container">


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Views/Catalog/_pagination.cshtml View File

@ -1,4 +1,4 @@
@model eShopWeb.ViewModels.PaginationInfo
@model Microsoft.eShopWeb.ViewModels.PaginationInfo
<div class="esh-pager">
<div class="container">


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Views/Catalog/_product.cshtml View File

@ -1,4 +1,4 @@
@model eShopWeb.Models.CatalogItem
@model Microsoft.eShopWeb.Models.CatalogItem
<form asp-controller="Cart" asp-action="AddToCart">


+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Views/_ViewImports.cshtml View File

@ -1,2 +1,2 @@
@using eShopWeb
@using Microsoft.eShopWeb
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

Loading…
Cancel
Save