mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Creating a doxyfile
This commit is contained in:
parent
65a8190ce8
commit
c8d72e1a87
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,6 +7,8 @@ Kyoo/Transcoder/Kyoo.Transcoder.pdb
|
|||||||
Kyoo/Transcoder/Kyoo.Transcoder.exp
|
Kyoo/Transcoder/Kyoo.Transcoder.exp
|
||||||
|
|
||||||
|
|
||||||
|
docs/
|
||||||
|
|
||||||
## Ignore Visual Studio temporary files, build results, and
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
## files generated by popular Visual Studio add-ons.
|
## files generated by popular Visual Studio add-ons.
|
||||||
##
|
##
|
||||||
|
@ -3,8 +3,16 @@ using Microsoft.Extensions.Configuration;
|
|||||||
|
|
||||||
namespace Kyoo
|
namespace Kyoo
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A class that regroup extensions used by some asp-net related parts of the app.
|
||||||
|
/// </summary>
|
||||||
public static class Extensions
|
public static class Extensions
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Get a connection string from the Configuration's section "Databse"
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="config">The IConfiguration instance to load.</param>
|
||||||
|
/// <returns>A parsed connection string</returns>
|
||||||
public static string GetDatabaseConnection(this IConfiguration config)
|
public static string GetDatabaseConnection(this IConfiguration config)
|
||||||
{
|
{
|
||||||
DbConnectionStringBuilder builder = new();
|
DbConnectionStringBuilder builder = new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user