Compare commits

...
2 Commits
Author SHA1 Message Date
saherelm f8c0cfe09d last ... 2026-09-28 16:34:52 +03:30
saherelm f846611429 apply sorting ... 2026-09-06 00:20:37 +03:30
12 changed files with 39 additions and 26 deletions
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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
{ {
-2
View File
@@ -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
View File
@@ -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
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using xModels.Base; using xModels.Base;
using System.Collections.Generic;
namespace xModels.Dtos namespace xModels.Dtos
{ {
+5 -5
View File
@@ -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> (
+17 -2
View File
@@ -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;
}
} }
} }
+3 -3
View File
@@ -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 -1
View File
@@ -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
{ {
+5 -5
View File
@@ -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
{ {