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

Replace decimal with double in benchmarks #20876

Merged
merged 1 commit into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion benchmark/EF.Benchmarks.Shared/Models/Orders/OrderLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class OrderLine
{
public int OrderLineId { get; set; }
public int Quantity { get; set; }
public decimal Price { get; set; }
public double Price { get; set; }
public bool IsSubjectToTax { get; set; }
public string SpecialRequests { get; set; }
public bool IsShipped { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions benchmark/EF.Benchmarks.Shared/Models/Orders/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public class Product
public string Name { get; set; }
public string Description { get; set; }
public string SKU { get; set; }
public decimal Retail { get; set; }
public decimal CurrentPrice { get; set; }
public double Retail { get; set; }
public double CurrentPrice { get; set; }
public int TargetStockLevel { get; set; }
public int ActualStockLevel { get; set; }
public int? ReorderStockLevel { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private class DTO
public string Description { get; set; }
public int ActualStockLevel { get; set; }
public string SKU { get; set; }
public decimal Savings { get; set; }
public double Savings { get; set; }
public int Surplus { get; set; }
}
}
Expand Down
2 changes: 1 addition & 1 deletion benchmark/EFCore.Benchmarks/Query/QueryCompilationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private class DTO
public string Description { get; set; }
public int ActualStockLevel { get; set; }
public string SKU { get; set; }
public decimal Savings { get; set; }
public double Savings { get; set; }
public int Surplus { get; set; }
}

Expand Down