fix GraphQL DI Registration Using Generics ...
This commit is contained in:
+307
-106
@@ -4,6 +4,8 @@ using GraphQL.Types;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using MongoDB.Bson.Serialization;
|
||||
using MongoDB.Bson.Serialization.Conventions;
|
||||
using MySql.EntityFrameworkCore.Extensions;
|
||||
using xCommons.Extensions;
|
||||
using xDataService.Constants;
|
||||
@@ -28,30 +30,27 @@ namespace xDataService.Helpers
|
||||
/// Register DbContext ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="provider"></param>
|
||||
/// <param name="connectionString"></param>
|
||||
/// <param name="databaseDescriptor"></param>
|
||||
/// <param name="lifetime"></param>
|
||||
/// <param name="optionsBuilder"></param>
|
||||
/// <typeparam name="TContext"></typeparam>
|
||||
public static void AddXDbContext<TContext>(
|
||||
IServiceCollection source,
|
||||
XDbProviders provider,
|
||||
string connectionString,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped,
|
||||
Action<dynamic> optionsBuilder = null
|
||||
XDatabaseDescriptor databaseDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
)
|
||||
where TContext : XDbContext
|
||||
{
|
||||
//
|
||||
if (provider == XDbProviders.None)
|
||||
var isValid =
|
||||
databaseDescriptor.IsValid() &&
|
||||
databaseDescriptor.HasProvider();
|
||||
if (!isValid)
|
||||
{
|
||||
//
|
||||
// Log("Invalid Db Provider ...");
|
||||
XException.InvalidArgs.Throw();
|
||||
XException.InvalidConfiguration.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
switch (provider)
|
||||
switch (databaseDescriptor.Provider)
|
||||
{
|
||||
//
|
||||
// MySQL ...
|
||||
@@ -60,7 +59,11 @@ namespace xDataService.Helpers
|
||||
source.AddEntityFrameworkMySQL();
|
||||
source.AddDbContext<TContext>(cfg =>
|
||||
{
|
||||
cfg.UseMySQL(connectionString, optionsBuilder);
|
||||
//
|
||||
cfg.UseMySQL(
|
||||
databaseDescriptor.ConnectionString,
|
||||
databaseDescriptor.OptionsBuilder
|
||||
);
|
||||
}, lifetime);
|
||||
break;
|
||||
|
||||
@@ -71,7 +74,11 @@ namespace xDataService.Helpers
|
||||
source.AddEntityFrameworkSqlite();
|
||||
source.AddDbContext<TContext>(cfg =>
|
||||
{
|
||||
cfg.UseSqlite(connectionString, optionsBuilder);
|
||||
//
|
||||
cfg.UseSqlite(
|
||||
databaseDescriptor.ConnectionString,
|
||||
databaseDescriptor.OptionsBuilder
|
||||
);
|
||||
}, lifetime);
|
||||
break;
|
||||
|
||||
@@ -82,21 +89,70 @@ namespace xDataService.Helpers
|
||||
source.AddEntityFrameworkSqlServer();
|
||||
source.AddDbContext<TContext>(cfg =>
|
||||
{
|
||||
cfg.UseSqlServer(connectionString, optionsBuilder);
|
||||
//
|
||||
cfg.UseSqlServer(
|
||||
databaseDescriptor.ConnectionString,
|
||||
databaseDescriptor.OptionsBuilder
|
||||
);
|
||||
}, lifetime);
|
||||
break;
|
||||
|
||||
//
|
||||
// Mongo DB ...
|
||||
case XDbProviders.MongoDB:
|
||||
// There is notRequired to Register DBConext forMongo DB ...
|
||||
//
|
||||
#region XBaseEntity Mappers ...
|
||||
//
|
||||
// Map ID as BsonId here ...
|
||||
BsonClassMap.RegisterClassMap<XBaseEntity<Guid>>(cm =>
|
||||
{
|
||||
//
|
||||
cm.AutoMap();
|
||||
cm.MapIdMember(c => c.Id);
|
||||
});
|
||||
BsonClassMap.RegisterClassMap<XBaseEntity<int>>(cm =>
|
||||
{
|
||||
//
|
||||
cm.AutoMap();
|
||||
cm.MapIdMember(c => c.Id);
|
||||
});
|
||||
BsonClassMap.RegisterClassMap<XBaseEntity<long>>(cm =>
|
||||
{
|
||||
//
|
||||
cm.AutoMap();
|
||||
cm.MapIdMember(c => c.Id);
|
||||
});
|
||||
BsonClassMap.RegisterClassMap<XBaseEntity<string>>(cm =>
|
||||
{
|
||||
//
|
||||
cm.AutoMap();
|
||||
cm.MapIdMember(c => c.Id);
|
||||
});
|
||||
#endregion
|
||||
|
||||
//
|
||||
// Check Has Convention Packs ...
|
||||
isValid = databaseDescriptor.HasConventionPacks();
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
ConventionRegistry.Register(
|
||||
nameof(
|
||||
databaseDescriptor.ConventionPacks
|
||||
),
|
||||
databaseDescriptor.ConventionPacks,
|
||||
type => !type.FullName
|
||||
.IsNullOrEmpty()
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
var isValid =
|
||||
provider == XDbProviders.MySQL ||
|
||||
provider == XDbProviders.SQLite ||
|
||||
provider == XDbProviders.SQLServer;
|
||||
isValid =
|
||||
databaseDescriptor.Provider == XDbProviders.MySQL ||
|
||||
databaseDescriptor.Provider == XDbProviders.SQLite ||
|
||||
databaseDescriptor.Provider == XDbProviders.SQLServer;
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
@@ -144,7 +200,12 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TKeyGeneratorService"></typeparam>
|
||||
/// <typeparam name="TKeyGeneratorImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation>(
|
||||
public static void AddXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
@@ -187,7 +248,14 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsService"></typeparam>
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation>(
|
||||
public static void AddXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
@@ -246,15 +314,27 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
public static void AddXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema> repositoryDescriptor,
|
||||
XRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
)
|
||||
where TGraphSchema : Schema
|
||||
@@ -266,9 +346,8 @@ namespace xDataService.Helpers
|
||||
where TEventsImplementation : XBaseRepositoryEvents<TEntity>
|
||||
where TKeyGeneratorImplementation : XKeyGenerator<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
var isValid = repositoryDescriptor.IsValid();
|
||||
@@ -309,7 +388,7 @@ namespace xDataService.Helpers
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
source,
|
||||
repositoryDescriptor,
|
||||
lifetime
|
||||
@@ -331,17 +410,31 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
/// <typeparam name="TRepositoryService"></typeparam>
|
||||
/// <typeparam name="TRepositoryImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation>(
|
||||
public static void AddXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema,
|
||||
TRepositoryService,
|
||||
TRepositoryImplementation
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XInMemoryRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor,
|
||||
XInMemoryRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
)
|
||||
where TGraphSchema : Schema
|
||||
@@ -354,10 +447,9 @@ namespace xDataService.Helpers
|
||||
where TEventsImplementation : XBaseRepositoryEvents<TEntity>
|
||||
where TKeyGeneratorImplementation : XKeyGenerator<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TRepositoryImplementation : XBaseInMemoryRepositoy<TEntity, TKey>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
var isValid = repositoryDescriptor.IsValid();
|
||||
@@ -398,7 +490,7 @@ namespace xDataService.Helpers
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
source,
|
||||
repositoryDescriptor,
|
||||
lifetime
|
||||
@@ -435,17 +527,31 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
/// <typeparam name="TRepositoryService"></typeparam>
|
||||
/// <typeparam name="TRepositoryImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation>(
|
||||
public static void AddXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema,
|
||||
TRepositoryService,
|
||||
TRepositoryImplementation
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XMongoRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor,
|
||||
XMongoRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
)
|
||||
where TGraphSchema : Schema
|
||||
@@ -457,11 +563,10 @@ namespace xDataService.Helpers
|
||||
where TRepositoryService : IXBaseRepository<TEntity, TKey>
|
||||
where TEventsImplementation : XBaseRepositoryEvents<TEntity>
|
||||
where TKeyGeneratorImplementation : XKeyGenerator<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TRepositoryImplementation : XBaseMongoRepository<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
var isValid = repositoryDescriptor.IsValid();
|
||||
@@ -502,7 +607,7 @@ namespace xDataService.Helpers
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
source,
|
||||
repositoryDescriptor,
|
||||
lifetime
|
||||
@@ -539,8 +644,7 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
@@ -548,9 +652,25 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TRepositoryImplementation"></typeparam>
|
||||
/// <typeparam name="TContext"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation, TContext>(
|
||||
public static void AddXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema,
|
||||
TRepositoryService,
|
||||
TRepositoryImplementation,
|
||||
TContext
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XEFRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation, TContext> repositoryDescriptor,
|
||||
XEFRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation, TContext> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
)
|
||||
where TGraphSchema : Schema
|
||||
@@ -564,10 +684,9 @@ namespace xDataService.Helpers
|
||||
where TEventsImplementation : XBaseRepositoryEvents<TEntity>
|
||||
where TKeyGeneratorImplementation : XKeyGenerator<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TRepositoryImplementation : XBaseEFRepository<TEntity, TKey, TContext>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
var isValid = repositoryDescriptor.IsValid();
|
||||
@@ -608,7 +727,7 @@ namespace xDataService.Helpers
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
source,
|
||||
repositoryDescriptor,
|
||||
lifetime
|
||||
@@ -645,17 +764,31 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
/// <typeparam name="TRepositoryService"></typeparam>
|
||||
/// <typeparam name="TRepositoryImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void UseXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation>(
|
||||
public static void UseXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema,
|
||||
TRepositoryService,
|
||||
TRepositoryImplementation
|
||||
>(
|
||||
IApplicationBuilder source,
|
||||
XInMemoryRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor
|
||||
XInMemoryRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor
|
||||
)
|
||||
where TGraphSchema : Schema
|
||||
where TGraphKey : IGraphType
|
||||
@@ -668,9 +801,8 @@ namespace xDataService.Helpers
|
||||
where TKeyGeneratorImplementation : XKeyGenerator<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TRepositoryImplementation : XBaseInMemoryRepositoy<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
var isValid = repositoryDescriptor.IsValid();
|
||||
@@ -685,7 +817,7 @@ namespace xDataService.Helpers
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
UseXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
UseXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
source,
|
||||
repositoryDescriptor
|
||||
);
|
||||
@@ -706,17 +838,31 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
/// <typeparam name="TRepositoryService"></typeparam>
|
||||
/// <typeparam name="TRepositoryImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void UseXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation>(
|
||||
public static void UseXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema,
|
||||
TRepositoryService,
|
||||
TRepositoryImplementation
|
||||
>(
|
||||
IApplicationBuilder source,
|
||||
XMongoRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor
|
||||
XMongoRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation> repositoryDescriptor
|
||||
)
|
||||
where TGraphSchema : Schema
|
||||
where TGraphKey : IGraphType
|
||||
@@ -727,11 +873,10 @@ namespace xDataService.Helpers
|
||||
where TRepositoryService : IXBaseRepository<TEntity, TKey>
|
||||
where TEventsImplementation : XBaseRepositoryEvents<TEntity>
|
||||
where TKeyGeneratorImplementation : XKeyGenerator<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TRepositoryImplementation : XBaseMongoRepository<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
var isValid = repositoryDescriptor.IsValid();
|
||||
@@ -746,7 +891,7 @@ namespace xDataService.Helpers
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
UseXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
UseXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
source,
|
||||
repositoryDescriptor
|
||||
);
|
||||
@@ -766,8 +911,7 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
@@ -775,9 +919,25 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TRepositoryImplementation"></typeparam>
|
||||
/// <typeparam name="TContext"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void UseXRepository<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation, TContext>(
|
||||
public static void UseXRepository<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation,
|
||||
TEventsService,
|
||||
TEventsImplementation,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema,
|
||||
TRepositoryService,
|
||||
TRepositoryImplementation,
|
||||
TContext
|
||||
>(
|
||||
IApplicationBuilder source,
|
||||
XEFRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation, TContext> repositoryDescriptor
|
||||
XEFRepositoryDescriptor<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation, TEventsService, TEventsImplementation, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema, TRepositoryService, TRepositoryImplementation, TContext> repositoryDescriptor
|
||||
)
|
||||
where TGraphSchema : Schema
|
||||
where TContext : XDbContext
|
||||
@@ -790,10 +950,9 @@ namespace xDataService.Helpers
|
||||
where TEventsImplementation : XBaseRepositoryEvents<TEntity>
|
||||
where TKeyGeneratorImplementation : XKeyGenerator<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TRepositoryImplementation : XBaseEFRepository<TEntity, TKey, TContext>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
var isValid = repositoryDescriptor.IsValid();
|
||||
@@ -808,7 +967,7 @@ namespace xDataService.Helpers
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
UseXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
UseXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQuery, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
source,
|
||||
repositoryDescriptor
|
||||
);
|
||||
@@ -851,7 +1010,12 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TKeyGeneratorService"></typeparam>
|
||||
/// <typeparam name="TKeyGeneratorImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXKeyGenerator<TEntity, TKey, TKeyGeneratorService, TKeyGeneratorImplementation>(
|
||||
public static void AddXKeyGenerator<
|
||||
TEntity,
|
||||
TKey,
|
||||
TKeyGeneratorService,
|
||||
TKeyGeneratorImplementation
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XRepositoryDescriptor<TEntity, TKey> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
@@ -894,7 +1058,12 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TEventsService"></typeparam>
|
||||
/// <typeparam name="TEventsImplementation"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXEvents<TEntity, TKey, TEventsService, TEventsImplementation>(
|
||||
public static void AddXEvents<
|
||||
TEntity,
|
||||
TKey,
|
||||
TEventsService,
|
||||
TEventsImplementation
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XRepositoryDescriptor<TEntity, TKey> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
@@ -936,13 +1105,21 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TKey"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
public static void AddXGraphQL<
|
||||
TEntity,
|
||||
TKey,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema
|
||||
>(
|
||||
IServiceCollection source,
|
||||
XRepositoryDescriptor<TEntity, TKey> repositoryDescriptor,
|
||||
ServiceLifetime lifetime = ServiceLifetime.Scoped
|
||||
@@ -952,9 +1129,8 @@ namespace xDataService.Helpers
|
||||
where TEntity : XBaseEntity<TKey>
|
||||
where TGraph : XBaseGraphObjectType<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
// Validate ...
|
||||
@@ -962,32 +1138,16 @@ namespace xDataService.Helpers
|
||||
!source.IsNull() &&
|
||||
!repositoryDescriptor.IsNull() &&
|
||||
!repositoryDescriptor.GraphType.IsNull() &&
|
||||
!repositoryDescriptor.GraphQuery.IsNull() &&
|
||||
!repositoryDescriptor.GraphSchema.IsNull() &&
|
||||
!repositoryDescriptor.GraphTypeKey.IsNull() &&
|
||||
!repositoryDescriptor.GraphQueryService.IsNull() &&
|
||||
!repositoryDescriptor.GraphTypeHelperService.IsNull() &&
|
||||
!repositoryDescriptor.GraphQueryImplementation.IsNull() &&
|
||||
!repositoryDescriptor.GraphTypeHelperImplementation.IsNull();
|
||||
if (!isValid)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Register Graph Type ...
|
||||
var builder = source.GetRegisteredService<IGraphQLBuilder>();
|
||||
if (builder.IsNull())
|
||||
{
|
||||
//
|
||||
Action<GraphQLOptions> options = x => { };
|
||||
builder = source.AddGraphQL(options)
|
||||
.AddNewtonsoftJson(deserializerSettings => { }, serializerSettings => { })
|
||||
.AddWebSockets()
|
||||
.AddDataLoader()
|
||||
.AddGraphTypes();
|
||||
}
|
||||
builder.AddGraphTypes(repositoryDescriptor.GraphType);
|
||||
|
||||
//
|
||||
// Register Graph Schema ...
|
||||
source.Add(
|
||||
@@ -1002,8 +1162,8 @@ namespace xDataService.Helpers
|
||||
// Register Graph Query ...
|
||||
source.Add(
|
||||
new ServiceDescriptor(
|
||||
repositoryDescriptor.GraphQueryService,
|
||||
repositoryDescriptor.GraphQueryImplementation,
|
||||
repositoryDescriptor.GraphQuery,
|
||||
repositoryDescriptor.GraphQuery,
|
||||
lifetime
|
||||
)
|
||||
);
|
||||
@@ -1017,6 +1177,41 @@ namespace xDataService.Helpers
|
||||
lifetime: ServiceLifetime.Singleton
|
||||
)
|
||||
);
|
||||
|
||||
//
|
||||
// Register Graph Type ...
|
||||
source.Add(
|
||||
new ServiceDescriptor(
|
||||
repositoryDescriptor.GraphType,
|
||||
repositoryDescriptor.GraphType,
|
||||
ServiceLifetime.Singleton
|
||||
)
|
||||
);
|
||||
|
||||
//
|
||||
// Register Graph Events ...
|
||||
source.Add(
|
||||
new ServiceDescriptor(
|
||||
typeof(XBaseGraphQLEventType<TEntity, TKey, TGraph>),
|
||||
typeof(XBaseGraphQLEventType<TEntity, TKey, TGraph>),
|
||||
ServiceLifetime.Singleton
|
||||
)
|
||||
);
|
||||
|
||||
//
|
||||
// Register Graph Type Schema ...
|
||||
var builder = source.GetRegisteredService<IGraphQLBuilder>();
|
||||
if (builder.IsNull())
|
||||
{
|
||||
//
|
||||
Action<GraphQLOptions> options = x => { };
|
||||
builder = source.AddGraphQL(options)
|
||||
.AddNewtonsoftJson(deserializerSettings => { }, serializerSettings => { })
|
||||
.AddWebSockets()
|
||||
.AddDataLoader()
|
||||
.AddGraphTypes();
|
||||
}
|
||||
builder.AddGraphTypes(repositoryDescriptor.GraphSchema);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1029,13 +1224,21 @@ namespace xDataService.Helpers
|
||||
/// <typeparam name="TKey"></typeparam>
|
||||
/// <typeparam name="TGraph"></typeparam>
|
||||
/// <typeparam name="TGraphKey"></typeparam>
|
||||
/// <typeparam name="TGraphQueryService"></typeparam>
|
||||
/// <typeparam name="TGraphQueryImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphQuery"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperService"></typeparam>
|
||||
/// <typeparam name="TGraphTypeHelperImplementation"></typeparam>
|
||||
/// <typeparam name="TGraphSchema"></typeparam>
|
||||
/// <returns></returns>
|
||||
public static void UseXGraphQL<TEntity, TKey, TGraph, TGraphKey, TGraphQueryService, TGraphQueryImplementation, TGraphTypeHelperService, TGraphTypeHelperImplementation, TGraphSchema>(
|
||||
public static void UseXGraphQL<
|
||||
TEntity,
|
||||
TKey,
|
||||
TGraph,
|
||||
TGraphKey,
|
||||
TGraphQuery,
|
||||
TGraphTypeHelperService,
|
||||
TGraphTypeHelperImplementation,
|
||||
TGraphSchema
|
||||
>(
|
||||
IApplicationBuilder source,
|
||||
XRepositoryDescriptor<TEntity, TKey> repositoryDescriptor
|
||||
)
|
||||
@@ -1044,9 +1247,8 @@ namespace xDataService.Helpers
|
||||
where TEntity : XBaseEntity<TKey>
|
||||
where TGraph : XBaseGraphObjectType<TEntity, TKey>
|
||||
where TGraphTypeHelperService : IXBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQuery : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphTypeHelperImplementation : XBaseGraphQLTypeHelper<TEntity, TKey>
|
||||
where TGraphQueryService : IXBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
where TGraphQueryImplementation : XBaseGraphQLQuery<TEntity, TKey, TGraph, TGraphKey>
|
||||
{
|
||||
//
|
||||
// Validate ...
|
||||
@@ -1054,11 +1256,10 @@ namespace xDataService.Helpers
|
||||
!source.IsNull() &&
|
||||
!repositoryDescriptor.IsNull() &&
|
||||
!repositoryDescriptor.GraphType.IsNull() &&
|
||||
!repositoryDescriptor.GraphQuery.IsNull() &&
|
||||
!repositoryDescriptor.GraphSchema.IsNull() &&
|
||||
!repositoryDescriptor.GraphTypeKey.IsNull() &&
|
||||
!repositoryDescriptor.GraphQueryService.IsNull() &&
|
||||
!repositoryDescriptor.GraphTypeHelperService.IsNull() &&
|
||||
!repositoryDescriptor.GraphQueryImplementation.IsNull() &&
|
||||
!repositoryDescriptor.GraphTypeHelperImplementation.IsNull();
|
||||
if (!isValid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user