add support for Db Seeder, Fix GraphQL Generic Usage ...
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using xDataService.Constants;
|
||||
|
||||
namespace xDataService.Configuration
|
||||
@@ -17,6 +18,12 @@ namespace xDataService.Configuration
|
||||
/// Connection String which provide Requires Data to Connect to Db Provider ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string ConnectionString { get; set; }
|
||||
public string ConnectionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Holds Seeding items ...
|
||||
/// nameof(TEntity) => TEntity
|
||||
/// </summary>
|
||||
public IDictionary<string, List<dynamic>> SeedItems { get; set; } = new Dictionary<string, List<dynamic>>();
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace xDataService.Configuration
|
||||
/// </summary>
|
||||
/// <typeparam name="XDataBaseConfiguration"></typeparam>
|
||||
/// <returns></returns>
|
||||
public Dictionary<string, XDataBaseConfiguration> Databases { get; set; } = new Dictionary<string, XDataBaseConfiguration>();
|
||||
public IDictionary<string, XDataBaseConfiguration> Databases { get; set; } = new Dictionary<string, XDataBaseConfiguration>();
|
||||
|
||||
/// <summary>
|
||||
/// Enable Soft Delete Entities or Not ...
|
||||
@@ -27,6 +27,11 @@ namespace xDataService.Configuration
|
||||
/// <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 ...
|
||||
|
||||
Reference in New Issue
Block a user