dotnet / dotnet/EntityFramework.Docs
Sequence's default schema
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
In this section, is it implying the default schema for new sequences is "shared"?
```
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.HasSequence("OrderNumbers");
modelBuilder.Entity()
.Property(o => o.OrderNo)
.HasDefaultValueSql("NEXT VALUE FOR shared.OrderNumbers");
}
```
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: acf3bd16-1954-0974-500a-8f04d0a5ed5f
* Version Independent ID: 2818db16-6495-65ca-fe64-7792d6a2d1b5
* Content: [Sequences - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/sequences)
* Content Source: [entity-framework/core/modeling/sequences.md](https://github.com/dotnet/EntityFramework.Docs/blob/master/entity-framework/core/modeling/sequences.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @roji
* Microsoft Alias: **avickers**
Contributor guide
Assessment
This issue has not been assessed yet.