This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| nebollogger.entityframework [2021/08/02 17:46] – nebol | nebollogger.entityframework [2021/08/07 02:10] (current) – nebol | ||
|---|---|---|---|
| Line 75: | Line 75: | ||
| Logger.Instance.Destinations.Add(db_dest); | Logger.Instance.Destinations.Add(db_dest); | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | === Another possible option for DB creation: Using Microsoft.EntityFramework.Tools === | ||
| + | |||
| + | To prepare database, run in Package Manager: | ||
| + | |||
| + | < | ||
| + | update-database -ConfigurationTypeName NebolLogger.EntityFramework.NebolLoggerDbContextConfiguration -Verbose | ||
| + | </ | ||
| + | |||
| + | or if you're using MySQL: | ||
| + | |||
| + | < | ||
| + | update-database -ConfigurationTypeName NebolLogger.EntityFramework.NebolLoggerDbContextConfiguration_MySQL -Verbose | ||
| </ | </ | ||