When trying to write tests in xUnit I get the following error:
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: unknown function: NEWID()
This appears due to the line :
modelBuilder.Entity<User>()
.Property(u => u.EmailActivationGuid)
.HasDefaultValueSql("NEWID()");
It appears SQLite doesn't support NEWID()
. Is there a way to conform to both SQL Server and SQLite syntax?