saintar1997 / CustomerAPI

Use File Scoped namespaces instead of typical namespaces CS-R1062
Anti-pattern
Major
6 occurrences in this check
Namespace declaration can be simplified
 7
 8#nullable disable
 9
10namespace CustomerAPI.Migrations11{
12    [DbContext(typeof(DataContext))]
13    partial class DataContextModelSnapshot : ModelSnapshot
Namespace declaration can be simplified
 2
 3#nullable disable
 4
 5namespace CustomerAPI.Migrations 6{
 7    public partial class CreateInitial : Migration
 8    {
 8
 9#nullable disable
10
11namespace CustomerAPI.Migrations12{
13    [DbContext(typeof(DataContext))]
14    [Migration("20220604151018_CreateInitial")]
Namespace declaration can be simplified
 1using Microsoft.EntityFrameworkCore;
 2
 3namespace CustomerAPI.Data 4{
 5    public class DataContext : DbContext
 6    {
Namespace declaration can be simplified
 1namespace CustomerAPI 2{
 3    public class Customer
 4    {
Namespace declaration can be simplified
 2using Microsoft.AspNetCore.Mvc;
 3using Microsoft.EntityFrameworkCore;
 4
 5namespace CustomerAPI.Controllers 6{
 7    [Route("api/[controller]")]
 8    [ApiController]