Compare commits
6
Commits
9e8fc9a510
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41e76a59da | ||
|
|
3560de8e63 | ||
|
|
057d891a32 | ||
|
|
cc8f3fdd1b | ||
|
|
a0709b702c | ||
|
|
b9fced926b |
@@ -1,10 +1,10 @@
|
|||||||
|
using xModels.Base;
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
using xDataService.Db;
|
using xDataService.Db;
|
||||||
using xDataService.GraphQL;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
|
using xDataService.GraphQL;
|
||||||
using xDataService.Providers;
|
using xDataService.Providers;
|
||||||
using xModels.Base;
|
using xDataService.Interfaces;
|
||||||
|
|
||||||
namespace xDataService.Builders
|
namespace xDataService.Builders
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xDataService.Constants;
|
using xDataService.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Configuration
|
namespace xDataService.Configuration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xDataService.Constants;
|
using xDataService.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Configuration
|
namespace xDataService.Configuration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Configurations;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xCommons.Providers;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
using xDataService.Interfaces;
|
|
||||||
using System.Linq;
|
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using xCommons.Providers;
|
||||||
|
using xCommons.Extensions;
|
||||||
using xCommons.Controllers;
|
using xCommons.Controllers;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xCommons.Configurations;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
|
||||||
namespace xDataService.Controllers
|
namespace xDataService.Controllers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Authorization;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Configurations;
|
|
||||||
using xCommons.Controllers;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xCommons.Providers;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using System.Threading;
|
||||||
|
using xCommons.Providers;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xCommons.Controllers;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xCommons.Configurations;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
|
||||||
namespace xDataService.Controllers
|
namespace xDataService.Controllers
|
||||||
{
|
{
|
||||||
|
|||||||
+11
-11
@@ -1,19 +1,19 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using xCommons.Helpers;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Models;
|
||||||
|
using xDataService.Helpers;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using xDataService.Constants;
|
||||||
|
using xDataService.Providers;
|
||||||
|
using xDataService.Extensions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using xCommons.Extensions;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using xCommons.Helpers;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Constants;
|
|
||||||
using xDataService.Extensions;
|
|
||||||
using xDataService.Helpers;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xDataService.Providers;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
|
|
||||||
namespace xDataService.DI
|
namespace xDataService.DI
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-3
@@ -1,10 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Helpers;
|
|
||||||
using xDataService.Providers;
|
using xDataService.Providers;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace xDataService.Db
|
namespace xDataService.Db
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
|
using xModels.Base;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
using xModels.Base;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace xDataService.Db {
|
namespace xDataService.Db {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using MySql.EntityFrameworkCore.Infrastructure;
|
using MySql.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
|
||||||
namespace xDataService.Extensions {
|
namespace xDataService.Extensions {
|
||||||
public static class DbContextOptionExtensions {
|
public static class DbContextOptionExtensions {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Extensions {
|
namespace xDataService.Extensions {
|
||||||
public static class EntityExtensions {
|
public static class EntityExtensions {
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Constants;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using System.Reflection;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xDataService.Constants;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace xDataService.Extensions
|
namespace xDataService.Extensions
|
||||||
{
|
{
|
||||||
@@ -22,6 +22,7 @@ namespace xDataService.Extensions
|
|||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="filter"></param>
|
/// <param name="filter"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
|
/// <typeparam name="TKey"></typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IQueryable<T> ApplyFilter<T, TKey>(
|
public static IQueryable<T> ApplyFilter<T, TKey>(
|
||||||
this IQueryable<T> source,
|
this IQueryable<T> source,
|
||||||
@@ -40,6 +41,7 @@ namespace xDataService.Extensions
|
|||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="filter"></param>
|
/// <param name="filter"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
|
/// <typeparam name="TKey"></typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static async Task<IQueryable<T>> ApplyFilterAsync<T, TKey>(
|
public static async Task<IQueryable<T>> ApplyFilterAsync<T, TKey>(
|
||||||
this IQueryable<T> source,
|
this IQueryable<T> source,
|
||||||
@@ -84,6 +86,7 @@ namespace xDataService.Extensions
|
|||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="filter"></param>
|
/// <param name="filter"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
|
/// <typeparam name="TKey"></typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static async Task<IEnumerable<T>> ApplyFilterAsync<T, TKey>(
|
public static async Task<IEnumerable<T>> ApplyFilterAsync<T, TKey>(
|
||||||
this IEnumerable<T> source,
|
this IEnumerable<T> source,
|
||||||
@@ -319,6 +322,7 @@ namespace xDataService.Extensions
|
|||||||
/// <param name="isAscending"></param>
|
/// <param name="isAscending"></param>
|
||||||
/// <param name="columnsMap"></param>
|
/// <param name="columnsMap"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
|
/// <typeparam name="TKey"></typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IQueryable<T> ApplySorting<T, TKey>(
|
public static IQueryable<T> ApplySorting<T, TKey>(
|
||||||
this IQueryable<T> source,
|
this IQueryable<T> source,
|
||||||
@@ -372,6 +376,7 @@ namespace xDataService.Extensions
|
|||||||
/// <param name="isAscending"></param>
|
/// <param name="isAscending"></param>
|
||||||
/// <param name="columnsMap"></param>
|
/// <param name="columnsMap"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
|
/// <typeparam name="TKey"></typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable<T> ApplySorting<T, TKey>(
|
public static IEnumerable<T> ApplySorting<T, TKey>(
|
||||||
this IEnumerable<T> source,
|
this IEnumerable<T> source,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Constants;
|
using xDataService.Constants;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
|
||||||
namespace xDataService.Extensions {
|
namespace xDataService.Extensions {
|
||||||
public static class XDataServiceConfigurationExtensions {
|
public static class XDataServiceConfigurationExtensions {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xDataService.Constants;
|
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
|
using xDataService.Constants;
|
||||||
|
|
||||||
namespace xDataService.Extensions
|
namespace xDataService.Extensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using GraphQL;
|
using GraphQL;
|
||||||
|
using xModels.Dtos;
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
using xDataService.Constants;
|
using xDataService.Constants;
|
||||||
using xModels.Dtos;
|
|
||||||
|
|
||||||
namespace xDataService.Extensions {
|
namespace xDataService.Extensions {
|
||||||
public static class XGraphQLExtensions {
|
public static class XGraphQLExtensions {
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using MongoDB.Bson;
|
using MongoDB.Bson;
|
||||||
using MongoDB.Driver;
|
using MongoDB.Driver;
|
||||||
using MongoDB.Driver.Core.Bindings;
|
|
||||||
using MongoDB.Driver.Core.Clusters;
|
|
||||||
using MongoDB.Driver.Core.Servers;
|
|
||||||
using MongoDB.Driver.Core.WireProtocol.Messages.Encoders;
|
|
||||||
using MongoDB.Driver.Linq;
|
|
||||||
using xDataService.Mongo;
|
using xDataService.Mongo;
|
||||||
|
using MongoDB.Driver.Linq;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Extensions {
|
namespace xDataService.Extensions {
|
||||||
public static class XMongoDbExtensions {
|
public static class XMongoDbExtensions {
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Extensions
|
namespace xDataService.Extensions
|
||||||
{
|
{
|
||||||
public static class XReferenceExtensions
|
public static class XReferenceExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts an XReference<T> to String Representation ...
|
/// Converts an XReference to String Representation ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
@@ -42,7 +42,7 @@ namespace xDataService.Extensions
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse an String and Extract to XReference<T> if it's Described ...
|
/// Parse an String and Extract to XReference if it's Described ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
@@ -75,7 +75,8 @@ namespace xDataService.Extensions
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
referencedTo = (T)Convert.ChangeType(parts[1], typeof(T));
|
referencedTo = (T)Convert.ChangeType(parts[1], typeof(T));
|
||||||
} catch
|
}
|
||||||
|
catch
|
||||||
{
|
{
|
||||||
referencedTo = (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFrom(parts[1]);
|
referencedTo = (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFrom(parts[1]);
|
||||||
}
|
}
|
||||||
@@ -96,7 +97,7 @@ namespace xDataService.Extensions
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts a Collection of XReference<T> to it's String Representation ...
|
/// Converts a Collection of XReference to it's String Representation ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
@@ -150,7 +151,7 @@ namespace xDataService.Extensions
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse an string to XReference<T> Collection Representation ...
|
/// Parse an string to XReference Collection Representation ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using xCommons.Extensions;
|
using xModels.Base;
|
||||||
using xDataService.Db;
|
using xDataService.Db;
|
||||||
using xDataService.Interfaces;
|
using xCommons.Extensions;
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
using xDataService.Providers;
|
using xDataService.Providers;
|
||||||
using xModels.Base;
|
using xDataService.Interfaces;
|
||||||
|
|
||||||
namespace xDataService.Extensions
|
namespace xDataService.Extensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
using GraphQL.Types;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using GraphQL.Types;
|
||||||
|
|
||||||
namespace xDataService.GraphQL
|
namespace xDataService.GraphQL
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base Entity GraphType Object ...
|
/// Base Entity GraphType Object ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <typeparam name="TEntity"></typeparam>
|
||||||
/// <typeparam name="TKey"></typeparam>
|
/// <typeparam name="TKey"></typeparam>
|
||||||
public abstract class XBaseGraphObjectType<TEntity, TKey> : ObjectGraphType<TEntity>
|
public abstract class XBaseGraphObjectType<TEntity, TKey> : ObjectGraphType<TEntity>
|
||||||
where TEntity : XBaseEntity<TKey> {
|
where TEntity : XBaseEntity<TKey> {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
using xModels.Base;
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.GraphQL {
|
namespace xDataService.GraphQL {
|
||||||
public class XBaseGraphQLEventType<TEntity, TKey, TGraphType> : ObjectGraphType<XBaseEventModel<TEntity>>
|
public class XBaseGraphQLEventType<TEntity, TKey, TGraphType> : ObjectGraphType<XBaseEventModel<TEntity>>
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq.Expressions;
|
using xModels.Base;
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xDataService.Configuration;
|
using xDataService.Models;
|
||||||
using xDataService.Constants;
|
using xDataService.Constants;
|
||||||
|
using System.Linq.Expressions;
|
||||||
using xDataService.Extensions;
|
using xDataService.Extensions;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
using xDataService.Models;
|
using xDataService.Configuration;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.GraphQL
|
namespace xDataService.GraphQL
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System.Collections.Generic;
|
using xModels.Base;
|
||||||
using GraphQL.Resolvers;
|
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
|
using GraphQL.Resolvers;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Models;
|
||||||
using xDataService.Providers;
|
using xDataService.Providers;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
using xDataService.Models;
|
using System.Collections.Generic;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.GraphQL {
|
namespace xDataService.GraphQL {
|
||||||
public abstract class XBaseGraphQLSubscription<TEntity, TKey, TGraph> : ObjectGraphType
|
public abstract class XBaseGraphQLSubscription<TEntity, TKey, TGraph> : ObjectGraphType
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
|
||||||
namespace xDataService.GraphQL
|
namespace xDataService.GraphQL
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Helpers {
|
namespace xDataService.Helpers {
|
||||||
public partial class XCursorHelper {
|
public partial class XCursorHelper {
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Reflection;
|
|
||||||
using GraphQL;
|
using GraphQL;
|
||||||
using GraphQL.Server;
|
using System.Linq;
|
||||||
using GraphQL.Server.Ui.Playground;
|
using xModels.Base;
|
||||||
using GraphQL.Server.Ui.Voyager;
|
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
|
using GraphQL.Server;
|
||||||
|
using xDataService.Db;
|
||||||
|
using System.Reflection;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Models;
|
||||||
|
using xDataService.GraphQL;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using xDataService.Constants;
|
||||||
|
using xDataService.Providers;
|
||||||
|
using xDataService.Extensions;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using GraphQL.Server.Ui.Voyager;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using MongoDB.Bson.Serialization;
|
||||||
|
using GraphQL.Server.Ui.Playground;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using MongoDB.Bson.Serialization;
|
|
||||||
using MongoDB.Bson.Serialization.Conventions;
|
|
||||||
using MySql.EntityFrameworkCore.Extensions;
|
using MySql.EntityFrameworkCore.Extensions;
|
||||||
using xCommons.Extensions;
|
using MongoDB.Bson.Serialization.Conventions;
|
||||||
using xDataService.Constants;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using xDataService.Db;
|
|
||||||
using xDataService.Extensions;
|
|
||||||
using xDataService.GraphQL;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xDataService.Providers;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Helpers
|
namespace xDataService.Helpers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
using xModels.Dtos;
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
using xModels.Dtos;
|
|
||||||
|
|
||||||
namespace xDataService.Constants {
|
namespace xDataService.Constants {
|
||||||
public static class XGraphQLHelper {
|
public static class XGraphQLHelper {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
using xModels.Base;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using xDataService.Configuration;
|
using xDataService.Configuration;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using GraphQL.Types;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using GraphQL.Types;
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using System.Threading;
|
||||||
|
using xDataService.Models;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using xModels.Base;
|
||||||
|
using xModels.Dtos;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using System.Collections.Generic;
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
using xModels.Base;
|
|
||||||
using xModels.Dtos;
|
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
@@ -14,7 +14,6 @@ namespace xDataService.Interfaces
|
|||||||
/// an Interface for Base Repository Actions Providing Using Controllers ...
|
/// an Interface for Base Repository Actions Providing Using Controllers ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TEntity"></typeparam>
|
/// <typeparam name="TEntity"></typeparam>
|
||||||
/// <typeparam name="TDto"></typeparam>
|
|
||||||
/// <typeparam name="TKey"></typeparam>
|
/// <typeparam name="TKey"></typeparam>
|
||||||
public interface IXBaseRepositoryController<TEntity, TKey>
|
public interface IXBaseRepositoryController<TEntity, TKey>
|
||||||
where TEntity : XBaseEntity<TKey>
|
where TEntity : XBaseEntity<TKey>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Interfaces {
|
namespace xDataService.Interfaces {
|
||||||
public interface IXBaseRepositoryEvents<T> {
|
public interface IXBaseRepositoryEvents<T> {
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
using System.Linq;
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using xModels.Base;
|
||||||
|
using xModels.Dtos;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using System.Collections.Generic;
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
using xModels.Base;
|
|
||||||
using xModels.Dtos;
|
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using MongoDB.Bson.Serialization.Conventions;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Constants;
|
|
||||||
using xDataService.Db;
|
using xDataService.Db;
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
|
using xDataService.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
using Microsoft.Extensions.Configuration;
|
||||||
|
using MongoDB.Bson.Serialization.Conventions;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using xModels.Base;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
using xModels.Base;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Interfaces
|
namespace xDataService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using xModels.Base;
|
||||||
|
using xDataService.Db;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using xDataService.Db;
|
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Interfaces {
|
namespace xDataService.Interfaces {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using MongoDB.Bson.Serialization.Conventions;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Constants;
|
|
||||||
using xDataService.Db;
|
using xDataService.Db;
|
||||||
using xDataService.DI;
|
using xDataService.DI;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Constants;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
using Microsoft.Extensions.Configuration;
|
||||||
|
using MongoDB.Bson.Serialization.Conventions;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace xDataService.Models
|
namespace xDataService.Models
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using GraphQL.Types;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using GraphQL.Types;
|
||||||
|
|
||||||
namespace xDataService.Models {
|
namespace xDataService.Models {
|
||||||
public class XGraphQueryResult<TEntity, TGraph> : ObjectGraphType<XQueryResult<TEntity>>
|
public class XGraphQueryResult<TEntity, TGraph> : ObjectGraphType<XQueryResult<TEntity>>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using GraphQL.Types;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using GraphQL.Types;
|
||||||
|
|
||||||
namespace xDataService.Models {
|
namespace xDataService.Models {
|
||||||
public class XGraphQueryType : InputObjectGraphType<XQuery> {
|
public class XGraphQueryType : InputObjectGraphType<XQuery> {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using xModels.Base;
|
||||||
using GraphQL.Types;
|
using GraphQL.Types;
|
||||||
using xDataService.Db;
|
using xDataService.Db;
|
||||||
using xDataService.GraphQL;
|
using xDataService.GraphQL;
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xDataService.Providers;
|
using xDataService.Providers;
|
||||||
using xModels.Base;
|
using xDataService.Interfaces;
|
||||||
|
|
||||||
namespace xDataService.Models
|
namespace xDataService.Models
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using MongoDB.Driver;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using MongoDB.Driver;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Mongo {
|
namespace xDataService.Mongo {
|
||||||
public class XAsyncEnumerableAdapter<T> : IAsyncEnumerable<T> {
|
public class XAsyncEnumerableAdapter<T> : IAsyncEnumerable<T> {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using MongoDB.Driver;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using MongoDB.Driver;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Mongo {
|
namespace xDataService.Mongo {
|
||||||
public class XMongoAsyncCursor<T> : IAsyncCursor<T> {
|
public class XMongoAsyncCursor<T> : IAsyncCursor<T> {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using MongoDB.Driver;
|
|
||||||
using MongoDB.Driver.Linq;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using MongoDB.Driver;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Collections;
|
||||||
|
using MongoDB.Driver.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Mongo {
|
namespace xDataService.Mongo {
|
||||||
public class XMongoQueryable<TEntity, TKey> : IMongoQueryable<TEntity>
|
public class XMongoQueryable<TEntity, TKey> : IMongoQueryable<TEntity>
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using xModels.Base;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xDataService.Configuration;
|
using System.Threading.Tasks;
|
||||||
using xDataService.Constants;
|
using xDataService.Constants;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
using xModels.Base;
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,21 +1,20 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Db;
|
|
||||||
using xDataService.Extensions;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using xDataService.Db;
|
||||||
|
using System.Threading;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Models;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using xDataService.Extensions;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
@@ -733,14 +732,17 @@ namespace xDataService.Providers
|
|||||||
{
|
{
|
||||||
predicator = x => !x.Deleted;
|
predicator = x => !x.Deleted;
|
||||||
}
|
}
|
||||||
var result = (await AsQueryable(
|
var list = await AsQueryable(
|
||||||
asNoTracking: true,
|
asNoTracking: true,
|
||||||
orderBuilder: null,
|
orderBuilder: null,
|
||||||
predicate: predicator,
|
predicate: predicator,
|
||||||
includeBuilder: includeBuilder
|
includeBuilder: includeBuilder
|
||||||
)
|
)
|
||||||
.ToListAsync(cancellationToken))
|
.ToListAsync(cancellationToken);
|
||||||
.FirstOrDefault(predicate.Compile());
|
|
||||||
|
//
|
||||||
|
var whereClause = predicate.Compile();
|
||||||
|
var result = list.FirstOrDefault(x => whereClause(x));
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using xModels.Base;
|
||||||
|
using xDataService.Interfaces;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
using xModels.Base;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Extensions;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using System.Threading;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Models;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using xDataService.Extensions;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
using System.Collections.Concurrent;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
|
||||||
using MongoDB.Driver;
|
|
||||||
using MongoDB.Driver.Linq;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Configuration;
|
|
||||||
using xDataService.Extensions;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using MongoDB.Driver;
|
||||||
|
using System.Threading;
|
||||||
|
using MongoDB.Driver.Linq;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xDataService.Models;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using xDataService.Extensions;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xDataService.Configuration;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Reactive.Linq;
|
|
||||||
using System.Reactive.Subjects;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
|
using System.Reactive.Linq;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using System.Reactive.Subjects;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xDataService.Providers {
|
namespace xDataService.Providers {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using Microsoft.EntityFrameworkCore.Query;
|
using System.Linq;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using System.Threading;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using Microsoft.EntityFrameworkCore.Query;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
@@ -19,9 +19,6 @@ namespace xDataService.Providers
|
|||||||
/// and provides Data Manipulation Methods using Dtos instead of Entities ...
|
/// and provides Data Manipulation Methods using Dtos instead of Entities ...
|
||||||
///
|
///
|
||||||
/// it can be use of following Repository Patterns Implementation:
|
/// it can be use of following Repository Patterns Implementation:
|
||||||
/// <see cref="XBaseEFRepository"/>>
|
|
||||||
/// <see cref="XBaseMongoRepository"/>>
|
|
||||||
/// <see cref="XBaseInMemoryRepository"/>>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TEntity"></typeparam>
|
/// <typeparam name="TEntity"></typeparam>
|
||||||
/// <typeparam name="TDto"></typeparam>
|
/// <typeparam name="TDto"></typeparam>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
@@ -51,7 +51,6 @@ namespace xDataService.Providers
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
var entityTypes = new List<Type>();
|
var entityTypes = new List<Type>();
|
||||||
// path = Path.Combine (Directory.GetCurrentDirectory ());
|
|
||||||
var path = Path.Combine (AppContext.BaseDirectory);
|
var path = Path.Combine (AppContext.BaseDirectory);
|
||||||
var files = Directory.GetFiles(path, "*.dll");
|
var files = Directory.GetFiles(path, "*.dll");
|
||||||
foreach (var dll in files)
|
foreach (var dll in files)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Threading;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using xModels.Base;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xDataService.Extensions;
|
using xDataService.Extensions;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
using xModels.Base;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using xModels.Base;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xDataService.Extensions;
|
using xDataService.Extensions;
|
||||||
using xDataService.Interfaces;
|
using xDataService.Interfaces;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xDataService.Interfaces;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Threading;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xDataService.Interfaces;
|
||||||
|
|
||||||
namespace xDataService.Providers
|
namespace xDataService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,6 +3,6 @@
|
|||||||
<packageSources>
|
<packageSources>
|
||||||
<!-- <add key="megan" value="https://hub.megan.ir/nuget/index.json" /> -->
|
<!-- <add key="megan" value="https://hub.megan.ir/nuget/index.json" /> -->
|
||||||
<add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
<add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||||
<add key="baget" value="https://nuget.saherelmhub.ir/v3/index.json" protocolVersion="3" disableTLSCertificateValidation="true" />
|
<!-- <add key="baget" value="https://nuget.saherelmhub.ir/v3/index.json" protocolVersion="3" disableTLSCertificateValidation="true" /> -->
|
||||||
</packageSources>
|
</packageSources>
|
||||||
</configuration>
|
</configuration>
|
||||||
+2
-2
@@ -71,9 +71,9 @@
|
|||||||
|
|
||||||
<!-- For XML Documentation Support -->
|
<!-- For XML Documentation Support -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
||||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||||
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user