-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
172 additions
and
139 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/OfX.EntityFrameworkCore/ApplicationModels/OfXEfCoreRegistrar.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,15 @@ | ||
using System.Reflection; | ||
|
||
namespace OfX.EntityFrameworkCore.ApplicationModels; | ||
|
||
public sealed class OfXEfCoreRegistrar | ||
{ | ||
public List<Type> DbContextTypes { get; private set; } = []; | ||
public Assembly ModelConfigurationAssembly { get; private set; } | ||
|
||
public void AddDbContexts(Type dbContext, params Type[] otherDbContextTypes) => | ||
DbContextTypes = [dbContext, ..otherDbContextTypes ?? []]; | ||
|
||
public void AddModelConfigurationsFromNamespaceContaining<TAssembly>() => | ||
ModelConfigurationAssembly = typeof(TAssembly).Assembly; | ||
} |
5 changes: 0 additions & 5 deletions
5
src/OfX.EntityFrameworkCore/ApplicationModels/OfXEfCoreServiceInjector.cs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/OfX.EntityFrameworkCore/ApplicationModels/QueryExpressionData.cs
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.