Did you .Include the country?
EF Core does not support lazy loading.
<cite>ismcagdas: </cite> Hi @MikeB,
Do you use VS 2017 or 2015 ?
@strix20,
Does this happen when running unit tests for ASP.NET MVC5.x & jQuery ?
Thanks.
It happens when I build the project. I downloaded a clean solution, open it, restore nuget packages, and build fails.
I'm using VS2017 17.3.4.
What you are looking for is not a key. You can only have a single key per table.
It sounds like you want a unique Index. EF Core does not support indices via attributes, so you must define the index with fluent API.
Alternatively you can simply disable automatic migrations, and write the SQL yourself (which in my opinion, you should always do. From an architecture standpoint, you should be writing SQL yourself and managing it with a db script management system like DBUp or FlyWay.)
Here is an example of how to do the indices via Fluent Api in EF Core:
[https://stackoverflow.com/questions/41246614/entity-framework-core-add-unique-constraint-code-first])
The default JSON serializer in MVC cannot handle recursive loops. You either need to create a custom serializer, remove the parent or child object from the DTO, or mark it to be ignore by json.
All azure services are accessed through the SDK API provided by microsoft. Running locally vs on azure has no impact, because internally the SDK just makes Http / TCP requests to the resources in azure. It's really no different than connecting to a SQL Azure database locally vs from a web app.
We do have multiple environments because we use gitflow.
We use Team City as our build server, with Octopus Deploy, and use the config transforms in Octopus to transform the appsettings.json by selecting environment specific settings (ie. appsettings.Develop.json, appsettings.Staging.json, appsettings.Production.json)
We have separate service bus Queues and Blob directories for our production and development/test environments, to ensure that testing never impacts production.
We use service bus because we have a Windows Service that interacts with additional software that must be run on a VM inside of a VPN, and cannot be run on the web server. Service Bus provides a simple, reliable, fast way to distribute messages across applications by interacting with a queue service that lives in Azure.
It doesn't appear to have anything to do with the service.
It looks like ABP is using a dynamic api controller to resolve api actions?
I haven't done much with their webapi, so I'm not really familiar with how the dynamic controller resolution works.
But you can find a similar issue reported here:
<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1713">https://github.com/aspnetboilerplate/as ... ssues/1713</a>
Try reading the documentation here on how it works (I don't have the time right now, but I will look into it later.)
<a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API">https://aspnetboilerplate.com/Pages/Doc ... ic-Web-API</a>
I'm also having the xUnit issue. Has anyone figured out how to resolve it?
@ismcagdas
Yeah, I had found the _PayPal.js file, I just couldn't figure out where _PayPal.min.js comes from, because I had no matching min file in my project, and it wasn't clear if it was being minified automatically, as it wasn't referenced in the bundle config.
Since @mdonogma didn't post the unminified code, I couldn't verify that it was correct / incorrect, and thus rule out the possibility of an error occurring during minification.
Can you show the entire controller? That's just a single action, and you don't include the verb attributes.
Azure blob storage is fine.
In my personal opinion, AWS is better than azure. It is much more user friendly, their APIs are more clearly documented and have a more natural feeling architecture.
But Azure is absolutely fine if you are comfortable with it. They are really quite equivalent services.
What issues are you having with azure compatibility? We had no problems hosting our application in Azure, and have taken advantage of several other Azure services, including SQL Azure, Azure Service Bus, and Blob storage.