Compare commits
3
Commits
05111f97c1
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8c0cfe09d | ||
|
|
f846611429 | ||
|
|
bbec367a7f |
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace xModels.Base {
|
||||
/// <summary>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using xModels.Interfaces;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Subjects;
|
||||
using xModels.Interfaces;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xModels.Base
|
||||
{
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
|
||||
namespace xModels.Base {
|
||||
/// <summary>
|
||||
/// a BaseEntity Class which has Id of string type
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
using xCommons.Constants;
|
||||
using xModels.Base;
|
||||
using xCommons.Constants;
|
||||
|
||||
namespace xModels.Dtos {
|
||||
public class XDeviceDto : XBaseDto {
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using xCommons.Constants;
|
||||
using xModels.Base;
|
||||
using xCommons.Constants;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace xModels.Dtos {
|
||||
public partial class XFileDto : XBaseDto {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using xModels.Base;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xModels.Dtos {
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using xModels.Base;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xModels.Dtos
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using xModels.Base;
|
||||
using xModels.Interfaces;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace xModels.Extensions {
|
||||
public static class DIExtensions {
|
||||
@@ -13,8 +13,8 @@ namespace xModels.Extensions {
|
||||
/// <param name="store">an implementation of inetrface of store ...</param>
|
||||
/// <param name="lifeTime">service lifetime</param>
|
||||
/// <typeparam name="TImplementation">implementation of TType ...</typeparam>
|
||||
/// <typeparam name="TType">an inetrface which implements IXBaseStore<TStoreItemDto, TKey></typeparam>
|
||||
/// <typeparam name="TStoreItemDto">type of an instance of XBaseStorable<TKey></typeparam>
|
||||
/// <typeparam name="TType">an inetrface which implements IXBaseStore</typeparam>
|
||||
/// <typeparam name="TStoreItemDto">type of an instance of XBaseStorable</typeparam>
|
||||
/// <typeparam name="TKey">type of key of StorableItem</typeparam>
|
||||
/// <returns></returns>
|
||||
public static void AddXStore<TImplementation, TType, TStoreItemDto, TKey> (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using xCommons.Extensions;
|
||||
using xModels.Dtos;
|
||||
using xCommons.Extensions;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xModels.Extensions
|
||||
{
|
||||
@@ -39,5 +39,20 @@ namespace xModels.Extensions
|
||||
{
|
||||
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.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using xModels.Base;
|
||||
using System.Threading.Tasks;
|
||||
using System.Linq.Expressions;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xModels.Interfaces {
|
||||
public interface IXBaseStore<T, TKey> where T : XBaseStorableDto<TKey> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using xModels.Base;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xModels.Interfaces
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using xCommons.Extensions;
|
||||
using xModels.Base;
|
||||
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
|
||||
{
|
||||
|
||||
+2
-2
@@ -34,9 +34,9 @@
|
||||
|
||||
<!-- For XML Documentation Support -->
|
||||
<PropertyGroup>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user