Snowflake has no RETURNING clause and no function that returns the row just inserted, so a value generated by the server for a key can't be read back after INSERT. For this reason, the provider assigns the values of the generated keys before INSERT:
table_SEQ in the schema of the table. Code-First creates the sequence and sets table_SEQ.NEXTVAL as the column default. When an entity is added, Entity Framework Core takes the next value with SELECT table_SEQ.NEXTVAL (one round trip per added entity). A System.Decimal key generated on add is handled in the same way as an integer key.EntityFrameworkHiLoSequence unless you specify another name, and it is created in the schema of the connection unless you specify another schema. The block size is the increment of the sequence: 10 unless you set another value with HasSequence(...).IncrementsBy(n).sequence.NEXTVAL), for example, set with HasDefaultValueSql or scaffolded from the database, the key gets the next value of this sequence before INSERT.A key with another default value, or a computed key, is left as it is. Values generated by the server for other columns (for example, by a column default) are read back with a SELECT by the key after INSERT or UPDATE.