Skip to content

Commit

Permalink
Pass sequence annotations (#33780) (#33804)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sielnix authored May 30, 2024
1 parent 2f4b4fa commit 3fa01db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ protected virtual ModelBuilder VisitSequences(
builder.UseCache();
}

builder.Metadata.AddAnnotations(sequence.GetAnnotations());

return builder;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,8 @@ public void Sequences()
{
Database = Database,
Name = "CountByThree",
IncrementBy = 3
IncrementBy = 3,
["CustomAnnotation"] = "Hello there"
}
}
};
Expand All @@ -1622,6 +1623,7 @@ public void Sequences()
Assert.False(first.IsCyclic);
Assert.True(first.IsCached);
Assert.Null(first.CacheSize);
Assert.Equal("Hello there", first["CustomAnnotation"]);
});
}

Expand Down

0 comments on commit 3fa01db

Please sign in to comment.