Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 4b4a3c5

Browse files
committed
Refactoring Models
1 parent b9845a0 commit 4b4a3c5

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
global using System;
22
global using System.Collections.Generic;
33
global using System.Linq;
4+
global using System.Linq.Expressions;
5+
global using System.Threading;
46
global using System.Threading.Tasks;
57
global using CustomLibrary.EFCore.EFCore.Core;
68
global using CustomLibrary.EFCore.EFCore.Core.Interfaces;
79
global using CustomLibrary.EFCore.EFCore.Infrastructure.Interfaces;
810
global using CustomLibrary.EFCore.EFCore.Infrastructure.Repository;
11+
global using CustomLibrary.EFCore.Models.Enums;
912
global using HealthChecks.UI.Client;
1013
global using Microsoft.AspNetCore.Builder;
1114
global using Microsoft.AspNetCore.Diagnostics.HealthChecks;
1215
global using Microsoft.AspNetCore.Http;
1316
global using Microsoft.EntityFrameworkCore;
17+
global using Microsoft.EntityFrameworkCore.Query;
1418
global using Microsoft.Extensions.DependencyInjection;
15-
global using Microsoft.Extensions.Diagnostics.HealthChecks;
16-
global using NET6CustomLibrary.EFCore;
19+
global using Microsoft.Extensions.Diagnostics.HealthChecks;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace CustomLibrary.EFCore.Models.Enums;
2+
3+
public enum OrderType
4+
{
5+
Ascending = 0,
6+
Descending = 1
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace CustomLibrary.EFCore.Models.ViewModels;
2+
3+
public class ListViewModel<T>
4+
{
5+
public List<T> Results { get; set; }
6+
public int TotalCount { get; set; }
7+
}

0 commit comments

Comments
 (0)