-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from The-Standard-Organization/users/cjdutoit/…
…coderub-project-rename CODE RUB: Renamed Interface project to Abstractions
- Loading branch information
Showing
15 changed files
with
217 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s/Brokers/DbErrorBroker/IDbErrorBroker.cs → ...s/Brokers/DbErrorBroker/IDbErrorBroker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
STX.EFxceptions.Abstractions/Models/Exceptions/DuplicateKeyException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace STX.EFxceptions.Abstractions.Models.Exceptions | ||
{ | ||
public class DuplicateKeyException : DbUpdateException | ||
{ | ||
public DuplicateKeyException(string message) : base(message) { } | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
STX.EFxceptions.Abstractions/Models/Exceptions/DuplicateKeyWithUniqueIndexException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace STX.EFxceptions.Abstractions.Models.Exceptions | ||
{ | ||
public class DuplicateKeyWithUniqueIndexException : DbUpdateException | ||
{ | ||
public string DuplicateKeyValue { get; } | ||
|
||
public DuplicateKeyWithUniqueIndexException(string message) | ||
: base(message) | ||
{ | ||
string[] subStrings = message.Split('(', ')'); | ||
|
||
if (subStrings.Length == 3) | ||
{ | ||
DuplicateKeyValue = subStrings[1]; | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
STX.EFxceptions.Abstractions/Models/Exceptions/ForeignKeyConstraintConflictException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace STX.EFxceptions.Abstractions.Models.Exceptions | ||
{ | ||
public class ForeignKeyConstraintConflictException : DbUpdateException | ||
{ | ||
public ForeignKeyConstraintConflictException(string message) : base(message) { } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
STX.EFxceptions.Abstractions/Models/Exceptions/InvalidColumnNameException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace STX.EFxceptions.Abstractions.Models.Exceptions | ||
{ | ||
public class InvalidColumnNameException : DbUpdateException | ||
{ | ||
public InvalidColumnNameException(string message) : base(message) { } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
STX.EFxceptions.Abstractions/Models/Exceptions/InvalidObjectNameException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace STX.EFxceptions.Abstractions.Models.Exceptions | ||
{ | ||
public class InvalidObjectNameException : DbUpdateException | ||
{ | ||
public InvalidObjectNameException(string message) : base(message) { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ervices/EFxceptions/IEFxceptionService.cs → ...ervices/EFxceptions/IEFxceptionService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters