Skip to content

Commit b69d795

Browse files
author
gustavnavar
committed
Update README.md
1 parent 4668fa1 commit b69d795

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,31 @@
1+
# Grid.Core
2+
3+
GridCore is a back-end library for Spring Boot projects that performs paging, sorting, filtering and others, to support client Blazor projects to show data in a grid.
4+
5+
It is in development and it is not production ready.
6+
7+
The long-term objective is to develop a client Grid library for Vue.js projects.
8+
9+
10+
## Folder description
11+
* [gridcore](./gridcore): Library to build back-ends bases on Spring Boot
12+
* [demo](./demo): Spring Boot demo project supporting the gridcore library. It can be testes with this [Blazor WASM project](https://github.com/gustavnavar/Grid.Blazor/tree/master/GridBlazorSpring)
13+
14+
The SQL Server database for all demos can be downloaded from [here](./sample-database)
15+
16+
Alternatively, if you prefer to install a fresh version of the database you can perform the following steps:
17+
- run this script from Microsoft web to create a new database: https://github.com/microsoft/sql-server-samples/blob/master/samples/databases/northwind-pubs/instnwnd.sql
18+
- add a column to the Customers table with the name IsVip of type bit (NOT NULL) and default value 0:
19+
```sql
20+
USE Northwind;
21+
ALTER TABLE dbo.Customers ADD IsVip bit NOT NULL DEFAULT 0 WITH VALUES;
22+
GO
23+
```
24+
- change manually some values of the new IsVip column to True
25+
- review the datetime columns. Any mismatch between EF Core model and database definitions will produce an exception and filtering will not work as expected. If database columns are defined as ```datetime``` you must modify the ```NorthwindDbContext``` class including:
26+
```c#
27+
modelBuilder.Entity<Order>().Property(r => r.OrderDate).HasColumnType("datetime");
28+
```
29+
for each datetime column. Or you can change all database columns' type to ```datetime2(7)```.
30+
131

sample_database/NORTHWND.MDF

5.94 MB
Binary file not shown.

sample_database/NORTHWND_log.ldf

3.06 MB
Binary file not shown.

0 commit comments

Comments
 (0)