Skip to content

Commit 09c4564

Browse files
Organized Source Code
1 parent affa0df commit 09c4564

File tree

88 files changed

+17897
-1660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+17897
-1660
lines changed
File renamed without changes.

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@
22

33
A simple Visual Studio solution using jQuery DataTable with Server-Side processing using .NET Core 2.2 (SDK: 2.2.202)
44

5+
## Table of Contents
6+
7+
* [Getting Started](#getting-started)
8+
* [Releases](https://github.com/DavidSuescunPelegay/jQuery-datatable-server-side-net-core/releases)
9+
* [External libraries](#external-libraries)
10+
* [Testing](#testing)
11+
* [Issues](#issues)
12+
* [Author](#author)
13+
514
## Getting Started
6-
* Just click 'Clone or download' button to download the full VS solution
7-
* Open the solution with Visual Studio
15+
16+
* Download our latest release [here](https://github.com/DavidSuescunPelegay/jQuery-datatable-server-side-net-core/releases/latest), are you looking for an [older version?](https://github.com/DavidSuescunPelegay/jQuery-datatable-server-side-net-core/releases)
17+
* Uncompress the ZIP and open the solution with Visual Studio
818
* Run or Debug the solution and VOILÁ, you have 1000 rows being server-side processed with jQuery DataTable plugin
919

1020
## External libraries (already included in the project)
21+
1122
* [Bootstrap (v4.1.3)](https://getbootstrap.com/)
1223
* [jQuery (v3.3.1)](https://jquery.com/)
1324
* [jQuery-datatable (v1.10.19)](https://datatables.net/)
@@ -18,17 +29,13 @@ A simple Visual Studio solution using jQuery DataTable with Server-Side processi
1829

1930
This project was checked and tested using:
2031

21-
- Microsoft Visual Studio Enterpise 2019 (version 16.0.28729.10) + JetBrains Resharper Ultimate (version 2018.3.4)
22-
- Windows 10 Pro (version 1809) (OS build 17763.404)
23-
24-
## Contributors
25-
26-
* **David Suescun Pelegay** - *Developer* - [GitHub](https://github.com/DavidSuescunPelegay)
32+
* Microsoft Visual Studio Enterpise 2019 (version 16.0.28729.10) + JetBrains Resharper Ultimate (version 2018.3.4)
33+
* Windows 10 Pro (version 1809) (OS build 17763.404)
2734

2835
## Issues
2936

3037
Please, feel free to report any kind of issue [here](https://github.com/DavidSuescunPelegay/jQuery-datatable-server-side-net-core/issues/new).
3138

32-
## License
39+
## Author
3340

34-
- Code licensed under [MIT License](https://github.com/DavidSuescunPelegay/jQuery-datatable-server-side-net-core/blob/master/LICENSE)
41+
* **David Suescun Pelegay** - *Developer* - [GitHub](https://github.com/DavidSuescunPelegay)

releasenotes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# RestSharp Release Notes
2+
3+
First version of the project.
4+
5+
## 1.1.0
6+
7+
* TO-DO
8+
9+
## 1.0.0 [Go to release](https://github.com/DavidSuescunPelegay/jQuery-datatable-server-side-net-core/releases/tag/1.0.0) [Go to tag](https://github.com/DavidSuescunPelegay/jQuery-datatable-server-side-net-core/tree/1.0.0)
10+
11+
First version of the project.
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.28729.10
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jQueryDatatableServerSideNetCore22", "jQueryDatatableServerSideNetCore22\jQueryDatatableServerSideNetCore22.csproj", "{E7F44EA0-FE27-44DD-80A6-8931052A4005}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Release|Any CPU.Build.0 = Release|Any CPU
18-
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
22-
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {3BB5194C-C2FC-4A39-90B6-4863FC15E091}
24-
EndGlobalSection
25-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.28729.10
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jQueryDatatableServerSideNetCore22", "jQueryDatatableServerSideNetCore22\jQueryDatatableServerSideNetCore22.csproj", "{E7F44EA0-FE27-44DD-80A6-8931052A4005}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{E7F44EA0-FE27-44DD-80A6-8931052A4005}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {3BB5194C-C2FC-4A39-90B6-4863FC15E091}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@{
2-
Layout = "/Views/Shared/_Layout.cshtml";
3-
}
1+
@{
2+
Layout = "/Views/Shared/_Layout.cshtml";
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
4-
using System.Linq;
5-
using System.Threading.Tasks;
6-
using Microsoft.AspNetCore.Mvc;
7-
using jQueryDatatableServerSideNetCore22.Models;
8-
9-
namespace jQueryDatatableServerSideNetCore22.Controllers
10-
{
11-
public class HomeController : Controller
12-
{
13-
public IActionResult Index()
14-
{
15-
return View();
16-
}
17-
18-
public IActionResult Privacy()
19-
{
20-
return View();
21-
}
22-
23-
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
24-
public IActionResult Error()
25-
{
26-
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
27-
}
28-
}
29-
}
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Diagnostics;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
using Microsoft.AspNetCore.Mvc;
7+
using jQueryDatatableServerSideNetCore22.Models;
8+
9+
namespace jQueryDatatableServerSideNetCore22.Controllers
10+
{
11+
public class HomeController : Controller
12+
{
13+
public IActionResult Index()
14+
{
15+
return View();
16+
}
17+
18+
public IActionResult Privacy()
19+
{
20+
return View();
21+
}
22+
23+
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
24+
public IActionResult Error()
25+
{
26+
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
27+
}
28+
}
29+
}

jQueryDatatableServerSideNetCore22/Controllers/TestRegistersController.cs renamed to src/jQueryDatatableServerSideNetCore22/Controllers/TestRegistersController.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99
using System.Linq;
1010
using System.Threading.Tasks;
1111

12-
namespace jQueryDatatableServerSideNetCore22.Controllers
13-
{
14-
public class TestRegistersController : Controller
15-
{
12+
namespace jQueryDatatableServerSideNetCore22.Controllers
13+
{
14+
public class TestRegistersController : Controller
15+
{
1616
private readonly ApplicationDbContext _context;
1717

18-
public TestRegistersController(ApplicationDbContext context)
19-
{
18+
public TestRegistersController(ApplicationDbContext context)
19+
{
2020
_context = context;
21-
}
22-
23-
// GET: TestRegisters
24-
public async Task<IActionResult> Index()
21+
}
22+
23+
// GET: TestRegisters
24+
public async Task<IActionResult> Index()
2525
{
26-
await SeedData();
27-
28-
return View();
29-
}
30-
26+
await SeedData();
27+
28+
return View();
29+
}
30+
3131
[HttpPost]
3232
public async Task<IActionResult> LoadTable([FromBody]DTParameters dtParameters)
3333
{
@@ -98,12 +98,12 @@ await _context.TestRegisters.AddAsync(new TestRegister
9898
ZipCode = Gen.Random.Numbers.Integers(10000, 99999)().ToString(),
9999
Country = Gen.Random.Countries()(),
100100
Notes = Gen.Random.Text.Short()(),
101-
CreationDate = Gen.Random.Time.Dates(DateTime.Now.AddYears(-100), DateTime.Now)()
102-
});
103-
}
104-
105-
await _context.SaveChangesAsync();
106-
}
107-
}
108-
}
109-
}
101+
CreationDate = Gen.Random.Time.Dates(DateTime.Now.AddYears(-100), DateTime.Now)()
102+
});
103+
}
104+
105+
await _context.SaveChangesAsync();
106+
}
107+
}
108+
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
using jQueryDatatableServerSideNetCore22.Models.DatabaseModels;
2-
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
3-
using Microsoft.EntityFrameworkCore;
4-
5-
namespace jQueryDatatableServerSideNetCore22.Data
6-
{
7-
public class ApplicationDbContext : IdentityDbContext
8-
{
9-
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
10-
: base(options)
11-
{
12-
}
13-
14-
public DbSet<TestRegister> TestRegisters { get; set; }
15-
}
16-
}
1+
using jQueryDatatableServerSideNetCore22.Models.DatabaseModels;
2+
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
3+
using Microsoft.EntityFrameworkCore;
4+
5+
namespace jQueryDatatableServerSideNetCore22.Data
6+
{
7+
public class ApplicationDbContext : IdentityDbContext
8+
{
9+
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
10+
: base(options)
11+
{
12+
}
13+
14+
public DbSet<TestRegister> TestRegisters { get; set; }
15+
}
16+
}

0 commit comments

Comments
 (0)