85 lines
2.7 KiB
C#
85 lines
2.7 KiB
C#
using System.Collections.Generic;
|
|
using xDataService.Constants;
|
|
|
|
namespace xDataService.Configuration
|
|
{
|
|
/// <summary>
|
|
/// Represent Configurations of DataService Module ...
|
|
/// </summary>
|
|
public partial class XDataServiceConfiguration
|
|
{
|
|
/// <summary>
|
|
/// the base path for providing GraphQL ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string GraphQLBasePath { get; set; } = "/graphql";
|
|
|
|
/// <summary>
|
|
/// Data Bases Configuration ...
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public IDictionary<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>
|
|
/// Specified Seeding Mode ...
|
|
/// </summary>
|
|
public XDbSeedingMode SeedingMode { get; set; } = XDbSeedingMode.None;
|
|
|
|
/// <summary>
|
|
/// Enable Tracking of Entities ...
|
|
/// Only Used on EFCore ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public bool EnableTracking { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Enable Logging Details of Errors ...
|
|
/// Only Used on EFCore ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public bool EnableDetailedErrors { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Enable Logging Sensitive Data ...
|
|
/// Only Used on EFCore ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public bool EnableSensitiveDataLogging { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// this is a way to provide Default Pagination Data on XQuery based requests ...
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
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
|
|
{
|
|
/// <summary>
|
|
/// Default Page Size ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public int DefaultPageSize { get; set; } = XDataServiceConstants.DEFAULT_PAGE_SIZE;
|
|
|
|
/// <summary>
|
|
/// restrict Maximum Page Size ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public int MaxAvailablePageSize { get; set; } = XDataServiceConstants.MAX_AVAILABLE_PAGE_SIZE;
|
|
|
|
/// <summary>
|
|
/// restrice Minimum Page Size ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public int MinAvailablePageSize { get; set; } = XDataServiceConstants.MIN_AVAILABLE_PAGE_SIZE;
|
|
}
|
|
} |