Skip to content

Commit 55443d1

Browse files
ASP.NET Core: Strongly-typed helpers migration and CSS consolidation
- Migrated to strongly-typed DataGrid<Employee> with lambda expressions - Replaced AddSimple with AddSimpleFor(m => m.Property) - Replaced Add with AddFor(m => m.Property) for columns - Created Employee.cs model (renamed from SampleOrder.cs) - Updated SampleData.cs with 9 employees matching other frameworks - Removed SampleDataController.cs (using static data) - Created separate Razor partial views: _CellTemplate.cshtml, _EditCellTemplate.cshtml - Consolidated CSS from jQuery to Site.css with kebab-case naming - Removed inline styles from Index.cshtml - Added Nuget.config for DevExpress feed - Removed nested ASP.NET Core/ folder structure - Removed orig_ files - Build passing with 0 errors (only DX license warnings)
1 parent 070889f commit 55443d1

File tree

15 files changed

+238
-680
lines changed

15 files changed

+238
-680
lines changed

ASP.NET Core/ASP.NET Core/Controllers/orig_HomeController.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

ASP.NET Core/ASP.NET Core/Views/Home/orig_Index.cshtml

Lines changed: 0 additions & 84 deletions
This file was deleted.

ASP.NET Core/ASP.NET Core/Views/Shared/orig__CellTemplate.cshtml

Lines changed: 0 additions & 3 deletions
This file was deleted.

ASP.NET Core/ASP.NET Core/Views/Shared/orig__Layout.cshtml

Lines changed: 0 additions & 44 deletions
This file was deleted.

ASP.NET Core/ASP.NET Core/wwwroot/css/orig_Site.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

ASP.NET Core/ASP.NET Core/wwwroot/data/orig_employees.js

Lines changed: 0 additions & 100 deletions
This file was deleted.

ASP.NET Core/Controllers/SampleDataController.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

ASP.NET Core/Models/Employee.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
3+
namespace ASP_NET_Core.Models;
4+
5+
public class Employee
6+
{
7+
public int ID { get; set; }
8+
public string FirstName { get; set; }
9+
public string LastName { get; set; }
10+
public string Prefix { get; set; }
11+
public string Position { get; set; }
12+
public string Picture { get; set; }
13+
public DateTime BirthDate { get; set; }
14+
public DateTime HireDate { get; set; }
15+
public string Notes { get; set; }
16+
public string Address { get; set; }
17+
}

0 commit comments

Comments
 (0)