User Tools

Site Tools


nebollogger.entityframework

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
nebollogger.entityframework [2021/08/02 17:46] nebolnebollogger.entityframework [2021/08/07 02:10] (current) nebol
Line 75: Line 75:
  Logger.Instance.Destinations.Add(db_dest);  Logger.Instance.Destinations.Add(db_dest);
 } }
 +</code>
 +
 +=== Another possible option for DB creation: Using Microsoft.EntityFramework.Tools ===
 +
 +To prepare database, run in Package Manager:
 +
 +<code>
 +update-database -ConfigurationTypeName NebolLogger.EntityFramework.NebolLoggerDbContextConfiguration -Verbose
 +</code>
 +
 +or if you're using MySQL:
 +
 +<code>
 +update-database -ConfigurationTypeName NebolLogger.EntityFramework.NebolLoggerDbContextConfiguration_MySQL -Verbose
 </code> </code>
  
nebollogger.entityframework.1627919167.txt.gz · Last modified: 2021/08/02 17:46 by nebol