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

Sqlite: Update northwind.db #16242

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Sqlite: Update northwind.db #16242

merged 1 commit into from
Aug 27, 2019

Conversation

bricelam
Copy link
Contributor

I noticed the database didn't match the model in a few places.

// NB: SQLite doesn't support decimal very well
modelBuilder.Entity<Order>().Property(o => o.Freight).HasConversion<double?>();
modelBuilder.Entity<OrderDetail>().Property(o => o.UnitPrice).HasConversion<double>();
modelBuilder.Entity<Product>().Property(o => o.UnitPrice).HasConversion<double?>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We OrderBy these in a few places which started producing wrong results when I fixed the database.

@bricelam
Copy link
Contributor Author

@smitpatel @maumar Is there anything we want to add to the SQLite version of Northwind? I noticed it didn't have any views...

@bricelam bricelam changed the title Sqlite: Update northwind.db [WIP] Sqlite: Update northwind.db Jul 10, 2019
@bricelam bricelam requested a review from dougbu as a code owner August 27, 2019 17:23
@bricelam bricelam changed the base branch from master to release/3.1 August 27, 2019 17:24
@bricelam bricelam changed the title [WIP] Sqlite: Update northwind.db Sqlite: Update northwind.db Aug 27, 2019
@bricelam
Copy link
Contributor Author

Updated. It's now a full port of Northwind (minus sprocs of course)

This is a full port of the database using our current mappings
@bricelam bricelam merged commit 676730a into dotnet:release/3.1 Aug 27, 2019
@bricelam bricelam deleted the sqlite branch August 27, 2019 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants