You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MyApp/_pages/autoquery/autogen.md
+36-10Lines changed: 36 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -35,15 +35,28 @@ As you'll need to use 2 terminal windows, I'd recommend opening the project with
35
35
code NorthwindAuto
36
36
:::
37
37
38
+
### Register DB Connection
39
+
38
40
The important parts of this project is the registering the OrmLite DB Connection, the above configuration and the local **northwind.sqlite** database, i.e:
@@ -181,6 +194,7 @@ This is what the magical `AutoRegister` flag does for us:
181
194
```csharp
182
195
Plugins.Add(newAutoQueryFeature {
183
196
GenerateCrudServices=newGenerateCrudServices {
197
+
DbFactory=dbFactory,
184
198
AutoRegister=true,
185
199
//....
186
200
}
@@ -216,15 +230,25 @@ x mix autocrudgen sqlite northwind.sqlite
216
230
Which will mix in the [autocrudgen](https://gist.github.com/gistlyn/464a80c15cb3af4f41db7810082dc00c) gist to enable AutoQuery and tell it to Auto Generate AutoQuery and CRUD Services for all tables in the registered RDBMS (default schema):
0 commit comments