Skip to content

Commit b803be4

Browse files
committed
updates
1 parent 875aec9 commit b803be4

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

MyApp/_posts/2025-02-11_text-to-blazor.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,32 @@ Alternatively you can nuke the App's database (e.g. `App_Data/app.db`) and recre
119119
After running the DB migrations, you can hit the ground running and start using the Admin UI to manage the new
120120
Data Model RDBMS Tables:
121121

122-
<video autoplay="autoplay" loop="loop" controls>
123-
<source src="https://media.servicestack.com/videos/autoquerygrid-new.mp4" type="video/mp4">
124-
</video>
122+
:::youtube 8buo_ce3SNM
123+
Using AutoQuery CRUD UI in a Text to Blazor App
124+
:::
125+
126+
## Audited Data Models
127+
128+
The Instant CRUD UI also includes effortless support for maintaining a detailed audit history for changes to
129+
select tables by inheriting from the `AuditBase` base class, e.g:
130+
131+
```ts
132+
export class Job extends AuditBase {
133+
...
134+
}
135+
```
136+
137+
This will include additional `CreatedBy`, `CreatedDate`, `ModifiedBy`, `ModifiedDate`, `DeletedBy` and `DeletedDate`
138+
properties to the specified Table and also generates the necessary [Audit Behaviors](https://docs.servicestack.net/autoquery/crud#apply-generic-crud-behaviors)
139+
on the AutoQuery APIs to maintain the audit history for each CRUD operation.
140+
141+
### AutoQuery CRUD Audit Log
142+
143+
As the **blazor-admin** and **blazor-vue** templates are configured to use the [AutoQuery CRUD Executable Audit Log](https://docs.servicestack.net/autoquery/audit-log)
144+
in its [Configure.AutoQuery.cs](https://github.com/NetCoreTemplates/blazor-admin/blob/main/MyApp/Configure.AutoQuery.cs)
145+
the Audit Behaviors will also maintain an Audit Trail of all CRUD operations which can be viewed in the Admin UI:
146+
147+
![](/img/posts/text-to-blazor/okai-audit-form.webp)
125148

126149
## TypeScript Schema
127150

@@ -448,30 +471,6 @@ public class Todo
448471
}
449472
```
450473

451-
## Audited Data Models
452-
453-
Another productivity feature of AutoQuery CRUD is its effortless support for maintaining audit history of
454-
important tables which can be enabled by inheriting from the `AuditBase` base class, e.g:
455-
456-
```ts
457-
export class Booking extends AuditBase {
458-
...
459-
}
460-
```
461-
462-
Which will include the necessary `CreatedBy`, `CreatedDate`, `ModifiedBy`, `ModifiedDate`, `DeletedBy` and `DeletedDate`
463-
properties in the Booking Table and also generating the necessary [Audit Behaviors](https://docs.servicestack.net/autoquery/crud#apply-generic-crud-behaviors)
464-
on the AutoQuery APIs to maintain the audit history for each CRUD operation.
465-
466-
### AutoQuery CRUD Audit Log
467-
468-
As the **blazor-admin** and **blazor-vue** templates are configured to use the [AutoQuery CRUD Executable Audit Log](https://docs.servicestack.net/autoquery/audit-log)
469-
[Configure.AutoQuery.cs](https://github.com/NetCoreTemplates/blazor-admin/blob/main/MyApp/Configure.AutoQuery.cs)
470-
the Audit Behaviors will also maintain an Audit Trail of all CRUD operations which can be
471-
[viewed in Locode](https://docs.servicestack.net/locode/auditing).
472-
473-
[![](http://docs.servicestack.net/img/pages/locode/audit-history-update.png)](https://docs.servicestack.net/locode/auditing)
474-
475474
### Custom APIs
476475

477476
When you need more fine-grained control over the generated APIs, you can "takeover" the generation of

MyApp/_posts/2025-02-18_okai-chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ and better performing models listed under `PREMIUM MODELS` by either:
106106
b) Setting the `SERVICESTACK_CERTIFICATE` Variable with your License Certificate
107107
c) Inline using the `-license` flag with either the License Key or Certificate
108108

109-
### FREE for Personal Research
109+
### FREE for Personal Usage
110110

111111
To be able to maintain this as a free service we're limiting usage as a tool that developers can use for personal
112112
assistance and research by limiting usage to **60 requests /hour** which should be more than enough for most

0 commit comments

Comments
 (0)