using xDataService.Constants; namespace xDataService.Configuration { /// /// Represent Configurations of DataService Module ... /// public partial class XDataServiceConfiguration { /// /// Provider Type ... /// /// public XDbProviders Provider { get; set; } /// /// Enable Soft Delete Entities or Not ... /// /// public bool EnableSoftDelete { get; set; } /// /// Connection String which provide Requires Data to Connect to Db Provider ... /// /// public string ConnectionString { get; set; } /// /// Enable Tracking of Entities ... /// Only Used on EFCore ... /// /// public bool EnableTracking { get; set; } = false; /// /// Enable Logging Details of Errors ... /// Only Used on EFCore ... /// /// public bool EnableDetailedErrors { get; set; } = false; /// /// Enable Logging Sensitive Data ... /// Only Used on EFCore ... /// /// public bool EnableSensitiveDataLogging { get; set; } = false; /// /// this is a way to provide Default Pagination Data on XQuery based requests ... /// /// public PagingConfiguration PagingConfiguration { get; set; } = new PagingConfiguration (); /// /// the base path for providing GraphQL ... /// /// public string GraphQLBasePath { get; set; } = "/graphql"; } /// /// this is a way to provide Default Pagination Data on XQuery based requests ... /// public partial class PagingConfiguration { /// /// Default Page Size ... /// /// public int DefaultPageSize { get; set; } = XDataServiceConstants.DEFAULT_PAGE_SIZE; /// /// restrict Maximum Page Size ... /// /// public int MaxAvailablePageSize { get; set; } = XDataServiceConstants.MAX_AVAILABLE_PAGE_SIZE; /// /// restrice Minimum Page Size ... /// /// public int MinAvailablePageSize { get; set; } = XDataServiceConstants.MIN_AVAILABLE_PAGE_SIZE; } }