Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor method/member translation tests into their own suite #35319

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address review comments
  • Loading branch information
roji committed Dec 13, 2024
commit 68f6b89e0c89a8db8cf0333d8b2d9486c6680503
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con
{
base.OnModelCreating(modelBuilder, context);

modelBuilder.Entity<BasicTypesEntity>().ToContainer(nameof(BasicTypesEntity));
modelBuilder.Entity<NullableBasicTypesEntity>().ToContainer(nameof(NullableBasicTypesEntity));
modelBuilder.Entity<BasicTypesEntity>(
builder =>
{
builder.ToContainer(nameof(BasicTypesEntity));
builder.HasPartitionKey(b => b.Id);
});
modelBuilder.Entity<NullableBasicTypesEntity>(
builder =>
{
builder.ToContainer(nameof(NullableBasicTypesEntity));
builder.HasPartitionKey(n => n.Id);
});
}

public Task NoSyncTest(bool async, Func<bool, Task> testCode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ public enum BasicFlagsEnum
Zero = 0,
One = 1,
Two = 2,
Three = 3,
Four = 4,
Eight = 8,
Sixteen = 16,
ThirtyTwo = 32,
OneTwentyEight = 128,
}
roji marked this conversation as resolved.
Show resolved Hide resolved
Loading