Skip to content

Commit

Permalink
Changed namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
codemunkie15 committed Oct 23, 2024
1 parent 44ab319 commit a365ef7
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 961 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

# EF1001: Internal EF Core API usage.
dotnet_diagnostic.EF1001.severity = none

# IDE0130: Namespace does not match folder structure
dotnet_diagnostic.IDE0130.severity = error
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using EFCore.ChangeTriggers.Extensions;
using EFCore.ChangeTriggers.SqlServer.Infrastructure;
using EFCore.ChangeTriggers.SqlServer.Infrastructure;
using EFCore.ChangeTriggers.SqlServer.Migrations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Migrations;

namespace EFCore.ChangeTriggers.SqlServer.Extensions
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace EFCore.ChangeTriggers.SqlServer
#pragma warning restore IDE0130 // Namespace does not match folder structure
{
public static class DbContextOptionsBuilderExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;

namespace EFCore.ChangeTriggers.Extensions
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace EFCore.ChangeTriggers
#pragma warning restore IDE0130 // Namespace does not match folder structure
{
internal static class DbContextOptionsBuilderExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using EFCore.ChangeTriggers.Metadata.Builders;
using Microsoft.EntityFrameworkCore;

namespace EFCore.ChangeTriggers.Extensions
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace EFCore.ChangeTriggers
#pragma warning restore IDE0130 // Namespace does not match folder structure
{
public static class ModelBuilderExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using EFCore.ChangeTriggers.Abstractions;
using EFCore.ChangeTriggers.Extensions;
using Microsoft.EntityFrameworkCore;

namespace EFCore.ChangeTriggers.Infrastructure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
using EFCore.ChangeTriggers.Configuration;
using EFCore.ChangeTriggers.Constants;
using EFCore.ChangeTriggers.Helpers;
using EFCore.ChangeTriggers.Metadata.Builders;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace EFCore.ChangeTriggers.Metadata.Builders
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace EFCore.ChangeTriggers
#pragma warning restore IDE0130 // Namespace does not match folder structure
{
public static class EntityTypeBuilderExtensions
{
Expand Down
4 changes: 2 additions & 2 deletions tests/TestHarness/TestHarness/DbModels/Users/UserChange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

namespace TestHarness.DbModels.Users
{
public class UserChange : UserBase, IChange<User>, IHasChangeSource<ChangeSourceType>, IHasChangedBy<User>
public class UserChange : UserBase, IChange<User>, IHasChangeSource<string>, IHasChangedBy<User>
{
public int ChangeId { get; set; }

public OperationType OperationType { get; set; }

public ChangeSourceType ChangeSource { get; set; }
public string ChangeSource { get; set; }

public DateTimeOffset ChangedAt { get; set; }

Expand Down
Loading

0 comments on commit a365ef7

Please sign in to comment.