From af27126f6a5264997d6f111664cbb9e3a55d3917 Mon Sep 17 00:00:00 2001 From: Mike Belcher Date: Sun, 8 Feb 2026 18:19:14 -0500 Subject: [PATCH] Global Usings --- MBDEVpro.BLL/GlobalUsings.cs | 38 ++++++++- MBDEVpro.BLL/MBDEVpro.BLL.csproj | 6 ++ MBDEVpro.DataModel/DbContext.cs | 7 ++ MBDEVpro.DataModel/GlobalUsings.cs | 22 +++-- MBDEVpro.DataModel/MBDEVpro.DataModel.csproj | 5 ++ MBDEVpro.Repository/GlobalUsings.cs | 21 ++++- .../MBDEVpro.Repository.csproj | 5 ++ MBDEVpro.Transmittals/GlobalUsings.cs | 38 ++++++++- .../MBDEVpro.Transmittals.csproj | 9 ++ MBDEVpro.UI/GlobalUsings.cs | 84 ++++++++++++++++++- 10 files changed, 215 insertions(+), 20 deletions(-) create mode 100644 MBDEVpro.DataModel/DbContext.cs diff --git a/MBDEVpro.BLL/GlobalUsings.cs b/MBDEVpro.BLL/GlobalUsings.cs index e9b383e..efb29ce 100644 --- a/MBDEVpro.BLL/GlobalUsings.cs +++ b/MBDEVpro.BLL/GlobalUsings.cs @@ -1,4 +1,34 @@ -using System; -using System.Collections.Generic; -using System.Text; - +global using System; +global using System.Collections.Generic; +global using System.ComponentModel; +global using System.ComponentModel.DataAnnotations; +global using System.Data; +global using System.Diagnostics.CodeAnalysis; +global using System.IO; +global using System.Linq; +global using System.Net; +global using System.Net.Http; +global using System.Net.Http.Headers; +global using System.Net.Http.Json; +global using System.Reflection; +global using System.Text; +global using System.Text.Json.Serialization; +global using System.Text.RegularExpressions; +global using System.Threading; +global using System.Threading.Tasks; +global using System.Transactions; +global using System.Web; +global using Microsoft.AspNetCore.Authentication; +global using Microsoft.AspNetCore.Hosting; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Mvc.Rendering; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.Extensions.Caching.Distributed; +global using Microsoft.Extensions.Caching.Memory; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.Options; +global using Microsoft.Extensions.Primitives; +global using Newtonsoft.Json; +global using Serilog; +global using Azure.Core; diff --git a/MBDEVpro.BLL/MBDEVpro.BLL.csproj b/MBDEVpro.BLL/MBDEVpro.BLL.csproj index 27c0983..28ff4aa 100644 --- a/MBDEVpro.BLL/MBDEVpro.BLL.csproj +++ b/MBDEVpro.BLL/MBDEVpro.BLL.csproj @@ -16,4 +16,10 @@ + + + + + + diff --git a/MBDEVpro.DataModel/DbContext.cs b/MBDEVpro.DataModel/DbContext.cs new file mode 100644 index 0000000..2dec76a --- /dev/null +++ b/MBDEVpro.DataModel/DbContext.cs @@ -0,0 +1,7 @@ + +namespace MBDEVpro.DataModel +{ + public class MBDEVproDbContext : DbContext + { + } +} diff --git a/MBDEVpro.DataModel/GlobalUsings.cs b/MBDEVpro.DataModel/GlobalUsings.cs index 144d8aa..3ebfb28 100644 --- a/MBDEVpro.DataModel/GlobalUsings.cs +++ b/MBDEVpro.DataModel/GlobalUsings.cs @@ -1,5 +1,17 @@ -using System; -using System.Collections.Generic; -using System.Text; - - +global using System; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.ComponentModel.DataAnnotations.Schema; +global using System.Diagnostics.CodeAnalysis; +global using System.Linq; +global using Microsoft.AspNetCore.Http; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.EntityFrameworkCore.Infrastructure; +global using Microsoft.EntityFrameworkCore.Metadata; +global using Microsoft.EntityFrameworkCore.Migrations; +global using Microsoft.Extensions.Configuration; +global using System.Text; +global using System.Threading.Tasks; +global using Microsoft.EntityFrameworkCore.ChangeTracking; +global using MBDEVpro.DataModel; +global using MBDEVpro.Common; \ No newline at end of file diff --git a/MBDEVpro.DataModel/MBDEVpro.DataModel.csproj b/MBDEVpro.DataModel/MBDEVpro.DataModel.csproj index 6a6d9ab..2e64df8 100644 --- a/MBDEVpro.DataModel/MBDEVpro.DataModel.csproj +++ b/MBDEVpro.DataModel/MBDEVpro.DataModel.csproj @@ -22,4 +22,9 @@ + + + + + diff --git a/MBDEVpro.Repository/GlobalUsings.cs b/MBDEVpro.Repository/GlobalUsings.cs index e9b383e..90cd5a4 100644 --- a/MBDEVpro.Repository/GlobalUsings.cs +++ b/MBDEVpro.Repository/GlobalUsings.cs @@ -1,4 +1,17 @@ -using System; -using System.Collections.Generic; -using System.Text; - +global using System; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.Data; +global using System.Linq; +global using System.Transactions; +global using Microsoft.Data.SqlClient; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.Extensions.Caching.Memory; +global using MBDEVpro.Common; +//global using MBDEVpro.DataModel.Entities; +//global using MBDEVpro.DataModel.NonEntities; +global using MBDEVpro.DataModel; +//global using MBDEVpro.Repository.Interfaces; +//global using MBDEVpro.Repository.Repositories; +//global using MBDEVpro.Transmittals.ViewModels.Customer; +//global using MBDEVpro.Transmittals.ViewModels.Shared; \ No newline at end of file diff --git a/MBDEVpro.Repository/MBDEVpro.Repository.csproj b/MBDEVpro.Repository/MBDEVpro.Repository.csproj index 0f33c54..2979b9d 100644 --- a/MBDEVpro.Repository/MBDEVpro.Repository.csproj +++ b/MBDEVpro.Repository/MBDEVpro.Repository.csproj @@ -16,4 +16,9 @@ + + + + + diff --git a/MBDEVpro.Transmittals/GlobalUsings.cs b/MBDEVpro.Transmittals/GlobalUsings.cs index 144d8aa..de0f5d6 100644 --- a/MBDEVpro.Transmittals/GlobalUsings.cs +++ b/MBDEVpro.Transmittals/GlobalUsings.cs @@ -1,5 +1,35 @@ -using System; -using System.Collections.Generic; -using System.Text; - +global using System; +global using System.IO; +global using System.Collections.Generic; +global using System.ComponentModel; +global using System.ComponentModel.DataAnnotations; +global using System.ComponentModel.DataAnnotations.Schema; +global using System.Diagnostics.CodeAnalysis; +global using System.Linq; +global using System.Text; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Mvc.Rendering; +global using MBDEVpro.Common; +global using MBDEVpro.Common.Constants; +//global using MBDEVpro.DataModel.Entities; +//global using MBDEVpro.DataModel.NonEntities; +//global using MBDEVpro.Transmittals.Models; +//global using MBDEVpro.Transmittals.Models.Address; +//global using MBDEVpro.Transmittals.Models.Incident; +//global using MBDEVpro.Transmittals.Models.InspectionTypes; +//global using MBDEVpro.Transmittals.ViewModels.Address; +//global using MBDEVpro.Transmittals.ViewModels.Administration; +//global using MBDEVpro.Transmittals.ViewModels.AdministrativeSettings; +//global using MBDEVpro.Transmittals.ViewModels.Business; +//global using MBDEVpro.Transmittals.ViewModels.DeviceType; +//global using MBDEVpro.Transmittals.ViewModels.Incident; +//global using MBDEVpro.Transmittals.ViewModels.Inspection; +//global using MBDEVpro.Transmittals.ViewModels.InspectionType; +//global using MBDEVpro.Transmittals.ViewModels.Inspector; +//global using MBDEVpro.Transmittals.ViewModels.Inventory; +//global using MBDEVpro.Transmittals.ViewModels.LogOn; +//global using MBDEVpro.Transmittals.ViewModels.Shared; +//global using MBDEVpro.Transmittals.ViewModels.Supervisor; +//global using MBDEVpro.Transmittals.ViewModels.User; diff --git a/MBDEVpro.Transmittals/MBDEVpro.Transmittals.csproj b/MBDEVpro.Transmittals/MBDEVpro.Transmittals.csproj index 93c11f9..2febcee 100644 --- a/MBDEVpro.Transmittals/MBDEVpro.Transmittals.csproj +++ b/MBDEVpro.Transmittals/MBDEVpro.Transmittals.csproj @@ -15,4 +15,13 @@ + + + + + + + + + diff --git a/MBDEVpro.UI/GlobalUsings.cs b/MBDEVpro.UI/GlobalUsings.cs index a415fee..2e03e57 100644 --- a/MBDEVpro.UI/GlobalUsings.cs +++ b/MBDEVpro.UI/GlobalUsings.cs @@ -1,3 +1,81 @@ -using System; -using System.Collections.Generic; -using System.Text; +global using System; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.Data; +global using System.Diagnostics; +global using System.IO; +global using System.Linq; +global using System.Reflection; +global using System.Runtime.InteropServices; +global using System.Security.Claims; +global using System.Text; +global using System.Threading.Tasks; +global using System.Web; +global using Microsoft.AspNetCore; +global using Microsoft.AspNetCore.Authentication; +global using Microsoft.AspNetCore.Authentication.Cookies; +global using Microsoft.AspNetCore.Authorization; +global using Microsoft.AspNetCore.Builder; +global using Microsoft.AspNetCore.DataProtection; +global using Microsoft.AspNetCore.Hosting; +global using Microsoft.AspNetCore.Http; +global using Microsoft.AspNetCore.Identity; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Mvc.Controllers; +global using Microsoft.AspNetCore.Mvc.Filters; +global using Microsoft.AspNetCore.Mvc.Rendering; +global using Microsoft.AspNetCore.Routing; +global using Microsoft.CodeAnalysis; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.EntityFrameworkCore.Infrastructure; +global using Microsoft.Extensions.Caching.Distributed; +global using Microsoft.Extensions.Caching.Memory; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Hosting; +global using Microsoft.Extensions.Options; +global using Newtonsoft.Json; +//global using MBDEVpro.BLL.Administration; +//global using MBDEVpro.BLL.Business; +//global using MBDEVpro.BLL.Customer; +//global using MBDEVpro.BLL.Common; +//global using MBDEVpro.BLL.Dashboard; +//global using MBDEVpro.BLL.FAQ; +//global using MBDEVpro.BLL.Helpers; +//global using MBDEVpro.BLL.Inspector; +//global using MBDEVpro.BLL.Interfaces; +//global using MBDEVpro.BLL.PasswordValidation; +//global using MBDEVpro.BLL.Supervisor; +//global using MBDEVpro.BLL.UserAuthentication; +//global using MBDEVpro.BLL.ViewModels.Address; +global using MBDEVpro.Common; +global using MBDEVpro.Common.Constants; +global using MBDEVpro.Common.Helper; +//global using MBDEVpro.DataModel.NonEntities; +//global using MBDEVpro.Repository.Helper; +//global using MBDEVpro.Repository.Interfaces; +//global using MBDEVpro.Repository.Repositories; +global using MBDEVpro.Transmittals; +//global using MBDEVpro.Transmittals.Models; +//global using MBDEVpro.Transmittals.Models.Address; +//global using MBDEVpro.Transmittals.Models.UserAuth; +//global using MBDEVpro.Transmittals.ViewModels; +//global using MBDEVpro.Transmittals.ViewModels.Administration; +//global using MBDEVpro.Transmittals.ViewModels.Business; +//global using MBDEVpro.Transmittals.ViewModels.Customer; +//global using MBDEVpro.Transmittals.ViewModels.Shared; +//global using MBDEVpro.Transmittals.ViewModels.Supervisor; +//global using MBDEVpro.Transmittals.ViewModels.User; +global using MBDEVpro.UI.Controllers; +//global using MBDEVpro.UI.Helpers; +//global using MBDEVpro.UI.SiteMap; +//global using MBDEVpro.UI.ViewModels; +global using Serilog; +global using X.PagedList; +//global using static MBDEVpro.Repository.Helper.APPSettings; +//global using MBDEVpro.UI.Services; +global using System.Xml.Linq; +global using static System.Collections.Specialized.BitVector32; +global using Microsoft.Extensions.Logging; +global using System.Net.Http; +global using System.Net.Http.Headers;