-
Notifications
You must be signed in to change notification settings - Fork 56
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 #235 from Avanade/feature/structV8
Update Liquid framework for net8, and standardize all cartridge configuration injections to use IOptions.
- Loading branch information
Showing
19 changed files
with
207 additions
and
464 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
src/Liquid.Repository.Mongo/Configuration/IMongoEntitySettings.cs
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
src/Liquid.Repository.Mongo/Configuration/IMongoEntitySettingsFactory.cs
This file was deleted.
Oops, something went wrong.
32 changes: 27 additions & 5 deletions
32
src/Liquid.Repository.Mongo/Configuration/MongoEntitySettings.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 |
---|---|---|
@@ -1,24 +1,46 @@ | ||
using Liquid.Core.Settings; | ||
using System.Collections.Generic; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Liquid.Repository.Mongo.Configuration | ||
{ | ||
/// <summary> | ||
/// Properties set list of service bus configurations. | ||
/// </summary> | ||
public class MongoDbSettings | ||
{ | ||
/// <summary> | ||
/// Properties set list of service bus configurations. | ||
/// </summary> | ||
public List<MongoEntitySettings> Settings { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// MongoDB repository data entity settings. | ||
/// </summary> | ||
[ExcludeFromCodeCoverage] | ||
public class MongoEntitySettings : IMongoEntitySettings | ||
public class MongoEntitySettings | ||
{ | ||
///<inheritdoc/> | ||
public string CollectionName { get; set; } | ||
|
||
///<inheritdoc/> | ||
public string ShardKey { get; set; } | ||
|
||
///<inheritdoc/> | ||
public string DatabaseSettingsSectionName { get; set; } | ||
/// <summary> | ||
/// Gets or sets the database connection string. | ||
/// </summary> | ||
/// <value> | ||
/// The database connection string. | ||
/// </value> | ||
public string ConnectionString { get; set; } | ||
|
||
///<inheritdoc/> | ||
public DatabaseSettings DatabaseSettings { get; set; } | ||
/// <summary> | ||
/// Gets or sets the name of the database. | ||
/// </summary> | ||
/// <value> | ||
/// The name of the database. | ||
/// </value> | ||
public string DatabaseName { get; set; } | ||
} | ||
} |
79 changes: 0 additions & 79 deletions
79
src/Liquid.Repository.Mongo/Configuration/MongoEntitySettingsFactory.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
Oops, something went wrong.