Rename namespaces to the correct format.

This commit is contained in:
dsanz 2017-03-03 10:22:28 +01:00
parent bba34b73ab
commit e5c0340de5
21 changed files with 34 additions and 39 deletions

View File

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

View File

@ -1,5 +1,5 @@
using eShopWeb.Services; using Microsoft.eShopWeb.Services;
using eShopWeb.ViewModels; using Microsoft.eShopWeb.ViewModels;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using System; 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 // 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 public class CatalogController : Controller
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,14 +1,14 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using eShopWeb.Models; using Microsoft.eShopWeb.Models;
using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.Rendering;
using eShopWeb.Infrastructure;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options; 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 public class CatalogService : ICatalogService
{ {

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.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace eShopWeb.Services namespace Microsoft.eShopWeb.Services
{ {
public interface ICatalogService public interface ICatalogService
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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