|
50 | 50 | "dark": "icons/trash_dark.svg" |
51 | 51 | } |
52 | 52 | }, |
| 53 | + { |
| 54 | + "command": "entityframework.dbContextInfo", |
| 55 | + "title": "Information", |
| 56 | + "icon": { |
| 57 | + "light": "icons/help_light.svg", |
| 58 | + "dark": "icons/help_dark.svg" |
| 59 | + } |
| 60 | + }, |
53 | 61 | { |
54 | 62 | "command": "entityframework.refreshTree", |
55 | 63 | "title": "Refresh Migrations", |
|
109 | 117 | "command": "entityframework.removeMigration", |
110 | 118 | "when": "false" |
111 | 119 | }, |
| 120 | + { |
| 121 | + "command": "entityframework.dbContextInfo", |
| 122 | + "when": "false" |
| 123 | + }, |
112 | 124 | { |
113 | 125 | "command": "entityframework.addMigration", |
114 | 126 | "when": "false" |
|
165 | 177 | "group": "context@1" |
166 | 178 | }, |
167 | 179 | { |
168 | | - "command": "entityframework.generateScript", |
| 180 | + "command": "entityframework.addMigration", |
169 | 181 | "when": "viewItem == dbContext", |
170 | | - "group": "inline@1" |
| 182 | + "group": "context@3" |
171 | 183 | }, |
172 | 184 | { |
173 | 185 | "command": "entityframework.addMigration", |
174 | 186 | "when": "viewItem == dbContext", |
175 | | - "group": "inline@2" |
| 187 | + "group": "inline@3" |
176 | 188 | }, |
177 | 189 | { |
178 | 190 | "command": "entityframework.generateScript", |
179 | | - "when": "viewItem == dbContext" |
| 191 | + "when": "viewItem == dbContext", |
| 192 | + "group": "context@2" |
| 193 | + }, |
| 194 | + { |
| 195 | + "command": "entityframework.generateScript", |
| 196 | + "when": "viewItem == dbContext", |
| 197 | + "group": "inline@2" |
| 198 | + }, |
| 199 | + { |
| 200 | + "command": "entityframework.dbContextInfo", |
| 201 | + "when": "viewItem == dbContext", |
| 202 | + "group": "inline@1" |
| 203 | + }, |
| 204 | + { |
| 205 | + "command": "entityframework.dbContextInfo", |
| 206 | + "when": "viewItem == dbContext", |
| 207 | + "group": "context@1" |
180 | 208 | } |
181 | 209 | ] |
182 | 210 | }, |
|
263 | 291 | "\"$project\"", |
264 | 292 | "--no-color", |
265 | 293 | "--json" |
| 294 | + ], |
| 295 | + "dbContextInfo": [ |
| 296 | + "dotnet", |
| 297 | + "ef", |
| 298 | + "dbcontext", |
| 299 | + "info", |
| 300 | + "--context", |
| 301 | + "\"$dbContext\"", |
| 302 | + "--project", |
| 303 | + "\"$project\"", |
| 304 | + "--no-color", |
| 305 | + "--json" |
266 | 306 | ] |
267 | 307 | }, |
268 | 308 | "description": "Environment variables when interacting with Entity Framework." |
|
0 commit comments