-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Resolved issue #252 by adding Like function to all relevant string based functions. (#253) * General UI fixes to sample server side blazor app (#254) * Fixed name override bug in stored procedure expression code gen templates * Added OnBeforeUpdateSqlStatement assembly event. (#256) * Added OnBeforeInsertAssemblyQueryExecutionEvent (#257) * Changed insert assembler injected name for ordinal so as not to interfere with actual table columns named 'Ordinal' (#260) * Gracefully exit execution on inserts with empty lists (#262) Co-authored-by: Jerrod Eiman <jerrod.eiman@hattricklabs.com>
- Loading branch information
1 parent
d717cf4
commit 1229880
Showing
92 changed files
with
2,601 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
samples/mssql/ServerSideBlazorApp/Models/PageResponseModel{T}.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace ServerSideBlazorApp.Models | ||
{ | ||
public class Page<T,U> | ||
where U : PagingParameters, new() | ||
{ | ||
public U PagingParameters { get; set; } | ||
public IList<T> Data { get; set; } = new List<T>(); | ||
public int? TotalCount { get; set; } | ||
|
||
public Page() | ||
{ | ||
} | ||
|
||
public Page(U parameters, IList<T> page, int totalCount) | ||
{ | ||
PagingParameters = parameters; | ||
Data = page; | ||
TotalCount = totalCount; | ||
} | ||
|
||
public static Page<T,U> CreateDefault() | ||
=> new(new U { Offset = 0, Limit = 10 }, new List<T>(), 0); | ||
} | ||
|
||
public class Page<T> : Page<T, PagingParameters> | ||
{ | ||
public Page() { } | ||
|
||
public Page(PagingParameters parameters, IList<T> page, int totalCount) : base(parameters, page, totalCount) | ||
{ | ||
} | ||
|
||
public new static Page<T> CreateDefault() | ||
=> new Page<T> | ||
{ | ||
PagingParameters = new PagingParameters { Offset = 0, Limit = 10 }, | ||
Data = new List<T>(), | ||
TotalCount = 0 | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
samples/mssql/ServerSideBlazorApp/Models/PagingParametersWithSearch.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ServerSideBlazorApp.Models | ||
{ | ||
public class PagingParametersWithSearch : PagingParameters | ||
{ | ||
public string SearchPhrase { get; set; } | ||
|
||
public PagingParametersWithSearch() | ||
{ | ||
|
||
} | ||
|
||
public PagingParametersWithSearch(int offset, int limit, string searchPhrase) : base(offset, limit) | ||
{ | ||
SearchPhrase = searchPhrase; | ||
} | ||
|
||
public PagingParametersWithSearch(int offset, int limit, Sort sort, string searchPhrase) : base(offset, limit, sort) | ||
{ | ||
SearchPhrase = searchPhrase; | ||
} | ||
|
||
public PagingParametersWithSearch(int offset, int limit, IEnumerable<Sort> sorting, string searchPhrase) : base(offset, limit, sorting) | ||
{ | ||
SearchPhrase = searchPhrase; | ||
} | ||
|
||
public new static PagingParametersWithSearch CreateDefault(Sort defaultSort) | ||
=> new PagingParametersWithSearch(0, 10, defaultSort, null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.