Skip to content

Commit

Permalink
Merge pull request #101 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
Fix swagger error
  • Loading branch information
Ali-YousefiTelori authored Dec 22, 2023
2 parents 4d755f5 + e0336cc commit 78d2e60
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<Version>0.0.0.68</Version>
<Version>0.0.0.69</Version>
<Description>asp core servces.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,services,asp,aspnet</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
using EasyMicroservices.Cores.Database.Interfaces;
using EasyMicroservices.Cores.Interfaces;
using EasyMicroservices.ServiceContracts;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

Expand Down Expand Up @@ -72,16 +69,4 @@ public interface IReadableQueryServiceController<TEntity, TFilterContract, TResp
/// <param name="cancellationToken"></param>
/// <returns></returns>
public Task<ListMessageContract<TResponseContract>> GetAllByUniqueIdentity(TUniqueIdentityRequestContract request, CancellationToken cancellationToken = default);

/// <summary>
///
/// </summary>
/// <returns></returns>
protected Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetQuery();

/// <summary>
///
/// </summary>
/// <returns></returns>
protected Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetAllQuery();
}
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public async Task<MessageContract<TLanguageResponseContract>> GetAllByUniqueIden
///
/// </summary>
/// <returns></returns>
public virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetQuery()
protected virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetQuery()
{
return null;
}
Expand All @@ -237,7 +237,7 @@ public virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetQuery()
///
/// </summary>
/// <returns></returns>
public virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetAllQuery()
protected virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetAllQuery()
{
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async Task<MessageContract> UpdateToContentLanguage(MessageContract messageContr
if (!messageContract)
return messageContract;
var contentResolver = UnitOfWork.GetContentResolver();
await contentResolver.UpdateToContentLanguage(requests.Where(x=> GetUniqueIdentity(x).HasValue()));
await contentResolver.UpdateToContentLanguage(requests.Where(x => GetUniqueIdentity(x).HasValue()));
return messageContract;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ public virtual Task<ListMessageContract<TResponseContract>> GetAllByUniqueIdenti
}

/// <summary>
///
/// do not make it public you will break
/// </summary>
/// <returns></returns>
public virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetQuery()
protected virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetQuery()
{
return null;
}

/// <summary>
///
/// do not make it public you will break
/// </summary>
/// <returns></returns>
public virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetAllQuery()
protected virtual Func<IQueryable<TEntity>, IQueryable<TEntity>> OnGetAllQuery()
{
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<Version>0.0.0.68</Version>
<Version>0.0.0.69</Version>
<Description>asp core servces.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,services,asp,aspnet,aspcore,efcore</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<Version>0.0.0.68</Version>
<Version>0.0.0.69</Version>
<Description>core of database.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,client,clients</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net6.0;net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<Version>0.0.0.68</Version>
<Version>0.0.0.69</Version>
<Description>core contracts.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,contract,contracts,dto,dtos</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net6.0;net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<Version>0.0.0.68</Version>
<Version>0.0.0.69</Version>
<Description>core of database.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<Version>0.0.0.68</Version>
<Version>0.0.0.69</Version>
<Description>ef core of database.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,ef,efcore</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<Version>0.0.0.68</Version>
<Version>0.0.0.69</Version>
<Description>ef core of Relational database.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,ef,efcore,Relational</PackageTags>
Expand Down

0 comments on commit 78d2e60

Please sign in to comment.