-
Notifications
You must be signed in to change notification settings - Fork 473
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
Modify to fix issue for #2076, Containment expand problem #2083
base: master
Are you sure you want to change the base?
Conversation
6667e20
to
7f03890
Compare
|
||
namespace AspNetCore3xEndpointSample.Web.Controllers | ||
{ | ||
{/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to keep the commented out version?
|
||
namespace AspNetCore3xEndpointSample.Web.Models | ||
{ | ||
{/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this commented out? Is it no longer used? Just remove?
//public CustomerOrderContext(DbContextOptions<CustomerOrderContext> options) | ||
// : base(options) | ||
//{ | ||
//} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be removed?
{ | ||
} | ||
|
||
public DbSet<Customer> Customers { get; set; } | ||
|
||
public DbSet<Order> Orders { get; set; } | ||
// public DbSet<Order> Orders { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
builder.EntitySet<Order>("Orders"); | ||
var customers = builder.EntitySet<Customer>("Customers"); | ||
customers.Binding.HasManyPath(c => c.CustomerReferrals, true).HasRequiredBinding(r => r.ReferredCustomer, "Customers"); | ||
// builder.EntitySet<Order>("Orders"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
@@ -32,7 +31,8 @@ public Startup(IConfiguration configuration) | |||
// This method gets called by the runtime. Use this method to add services to the container. | |||
public void ConfigureServices(IServiceCollection services) | |||
{ | |||
services.AddDbContext<CustomerOrderContext>(opt => opt.UseLazyLoadingProxies().UseInMemoryDatabase("CustomerOrderList")); | |||
//services.AddDbContext<CustomerOrderContext>(opt => opt.UseLazyLoadingProxies().UseInMemoryDatabase("CustomerOrderList")); | |||
//services.AddScoped<CustomerOrderContext>(_ => new CustomerOrderContext(Configuration.GetConnectionString("DefaultConnection"))); | |||
services.AddOData(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out lines?
Is there a test to verify that the issue reported in issue 2076 is addressed? I see changes to the sample but no code that calls them in new ways. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
Hey @xuzhg -- Do you have an update on this PR? I left a few minor comments. Can we address, rebase, and merge, or are there open issues? |
Issues
This pull request fixes issue #2076.
Description
*This fixes the issue in #2076.
2)ODataQueryOptionParser should know the "Path" to parse the query option.
Checklist (Uncheck if it is not completed)
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.