Compare commits
4
Commits
4c8a06aa3e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8c0cfe09d | ||
|
|
f846611429 | ||
|
|
bbec367a7f | ||
|
|
05111f97c1 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace xModels.Base {
|
namespace xModels.Base {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using xModels.Interfaces;
|
||||||
using System.Reactive.Linq;
|
using System.Reactive.Linq;
|
||||||
using System.Reactive.Subjects;
|
using System.Reactive.Subjects;
|
||||||
using xModels.Interfaces;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xModels.Base
|
namespace xModels.Base
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace xModels.Base {
|
namespace xModels.Base {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// a BaseEntity Class which has Id of string type
|
/// a BaseEntity Class which has Id of string type
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
using xCommons.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xCommons.Constants;
|
||||||
|
|
||||||
namespace xModels.Dtos {
|
namespace xModels.Dtos {
|
||||||
public class XDeviceDto : XBaseDto {
|
public class XDeviceDto : XBaseDto {
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using xCommons.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xCommons.Constants;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace xModels.Dtos {
|
namespace xModels.Dtos {
|
||||||
public partial class XFileDto : XBaseDto {
|
public partial class XFileDto : XBaseDto {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xModels.Dtos {
|
namespace xModels.Dtos {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xModels.Dtos
|
namespace xModels.Dtos
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Interfaces;
|
using xModels.Interfaces;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace xModels.Extensions {
|
namespace xModels.Extensions {
|
||||||
public static class DIExtensions {
|
public static class DIExtensions {
|
||||||
@@ -13,8 +13,8 @@ namespace xModels.Extensions {
|
|||||||
/// <param name="store">an implementation of inetrface of store ...</param>
|
/// <param name="store">an implementation of inetrface of store ...</param>
|
||||||
/// <param name="lifeTime">service lifetime</param>
|
/// <param name="lifeTime">service lifetime</param>
|
||||||
/// <typeparam name="TImplementation">implementation of TType ...</typeparam>
|
/// <typeparam name="TImplementation">implementation of TType ...</typeparam>
|
||||||
/// <typeparam name="TType">an inetrface which implements IXBaseStore<TStoreItemDto, TKey></typeparam>
|
/// <typeparam name="TType">an inetrface which implements IXBaseStore</typeparam>
|
||||||
/// <typeparam name="TStoreItemDto">type of an instance of XBaseStorable<TKey></typeparam>
|
/// <typeparam name="TStoreItemDto">type of an instance of XBaseStorable</typeparam>
|
||||||
/// <typeparam name="TKey">type of key of StorableItem</typeparam>
|
/// <typeparam name="TKey">type of key of StorableItem</typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static void AddXStore<TImplementation, TType, TStoreItemDto, TKey> (
|
public static void AddXStore<TImplementation, TType, TStoreItemDto, TKey> (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xModels.Extensions
|
namespace xModels.Extensions
|
||||||
{
|
{
|
||||||
@@ -39,5 +39,20 @@ namespace xModels.Extensions
|
|||||||
{
|
{
|
||||||
return source.Select(i => i.Item);
|
return source.Select(i => i.Item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetFullname(this XPersonDto source)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
var result = string.Empty;
|
||||||
|
|
||||||
|
//
|
||||||
|
if (!source.IsNullOrDefault())
|
||||||
|
{
|
||||||
|
result = $"{source.Firstname} {source.Lastname}";
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xModels.Interfaces {
|
namespace xModels.Interfaces {
|
||||||
public interface IXBaseStore<T, TKey> where T : XBaseStorableDto<TKey> {
|
public interface IXBaseStore<T, TKey> where T : XBaseStorableDto<TKey> {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xModels.Interfaces
|
namespace xModels.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
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.Tasks;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Interfaces;
|
using xModels.Interfaces;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.Concurrent;
|
||||||
|
|
||||||
namespace xModels.Providers
|
namespace xModels.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
@@ -34,9 +34,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