last ...
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using xDataService.Constants;
|
||||
|
||||
namespace xDataService.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// Describe a Database ...
|
||||
/// </summary>
|
||||
public class XDataBaseConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Provider Type ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public XDbProviders Provider { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Connection String which provide Requires Data to Connect to Db Provider ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string ConnectionString { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,32 @@
|
||||
using System.Collections.Generic;
|
||||
using xDataService.Constants;
|
||||
|
||||
namespace xDataService.Configuration {
|
||||
namespace xDataService.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// Represent Configurations of DataService Module ...
|
||||
/// </summary>
|
||||
public partial class XDataServiceConfiguration {
|
||||
public partial class XDataServiceConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Provider Type ...
|
||||
/// the base path for providing GraphQL ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public XDbProviders Provider { get; set; }
|
||||
|
||||
public string GraphQLBasePath { get; set; } = "/graphql";
|
||||
|
||||
/// <summary>
|
||||
/// Data Bases Configuration ...
|
||||
/// </summary>
|
||||
/// <typeparam name="XDataBaseConfiguration"></typeparam>
|
||||
/// <returns></returns>
|
||||
public Dictionary<string, XDataBaseConfiguration> Databases { get; set; } = new Dictionary<string, XDataBaseConfiguration>();
|
||||
|
||||
/// <summary>
|
||||
/// Enable Soft Delete Entities or Not ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public bool EnableSoftDelete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Connection String which provide Requires Data to Connect to Db Provider ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string ConnectionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Enable Tracking of Entities ...
|
||||
/// Only Used on EFCore ...
|
||||
@@ -48,19 +52,14 @@ namespace xDataService.Configuration {
|
||||
/// this is a way to provide Default Pagination Data on XQuery based requests ...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public PagingConfiguration PagingConfiguration { get; set; } = new PagingConfiguration ();
|
||||
|
||||
/// <summary>
|
||||
/// the base path for providing GraphQL ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string GraphQLBasePath { get; set; } = "/graphql";
|
||||
public PagingConfiguration PagingConfiguration { get; set; } = new PagingConfiguration();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// this is a way to provide Default Pagination Data on XQuery based requests ...
|
||||
/// </summary>
|
||||
public partial class PagingConfiguration {
|
||||
public partial class PagingConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Default Page Size ...
|
||||
/// </summary>
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace xDataService.Configuration {
|
||||
public partial class XDbProviderConfigurations {
|
||||
/// <summary>
|
||||
/// Default ConnectionString Name ...
|
||||
/// </summary>
|
||||
public const string DEFAULT_CONNECTION_NAME = "DataConnection";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user