Граф коммитов

944 Коммитов

Автор SHA1 Сообщение Дата
Praburaj 24293783f5 Using ViewBag in a view component instead of ViewData. 2014-04-14 15:08:54 -07:00
Praburaj eeb9326101 Having a layout page in a ViewComponent was the reason for StackOverFlow exception. Removing that fixed the problem.
Using ViewData instead of ViewBag in a ViewComponent.
Copying over some of the icons from the original music store required for this view component.
2014-04-14 14:13:30 -07:00
Praburaj b97cedb4eb Updating the Readme.md to remove a manual clean up step instruction as the scripts already perform that. 2014-04-14 12:38:10 -07:00
Praburaj 9127f5b930 A few changes with this checkin
1. Adding cookies middleware to the music store app
2. Enabling login, register & related management pages to render some UI for testing
3. Updated the LKG.json
2014-04-14 12:35:56 -07:00
Praburaj b37c811266 CR feedback
1. Creating a separate file for AssemblyNeutralInterface.
2. Removing the user name and password settings from web.config.
2014-04-11 16:36:28 -07:00
Praburaj 1b62b248e4 Some of the identity classes changed name. Fixing the same in Music store to fix a build break. 2014-04-11 16:35:04 -07:00
Praburaj aaae435cc3 Adding a [HttpGet] attribute to enable the Delete album from the store functionality.
This action corresponds to a confirmation page to delete the item.
2014-04-10 17:22:55 -07:00
Praburaj bb241c1a79 Uncommenting code to include ActionName attribute. 2014-04-10 14:23:02 -07:00
Praburaj 1e137c7af9 Getting the application base path from the IoC container. 2014-04-10 14:15:29 -07:00
Praburaj b51f54e98a Adding a view component for cart summary
1. Added a View component named CartSummary
2. Moved the CartSummary.cshtml as default.cshtml to shared\Components
2014-04-10 13:46:58 -07:00
rowanmiller 58d4b48690 Swap database creation to use EF
Swapping database creation to use native support added to EF.
Also swapping to async methods for database initialization.
2014-04-10 09:28:10 -07:00
Praburaj 0f25f9ff6b Html.ActionLink helper available.
Enabling music store code to use the Html.ActionLink helper.
2014-04-09 12:04:53 -07:00
Praburaj 8610e016b3 Setting the full path to load the Config.json.
Specifying just the name of the file works fine on selfhost or IISExpress. When app is hosted in IIS, Config.json is being searched in the w3wp3.exe's folder path resulting in an exception.
So fixing the path of Config.json by retrieving the application base path from AppDomain.
2014-04-09 10:43:52 -07:00
Praburaj f4cee29842 Html.BeginForm works now on Partial views.
So uncommenting some code which uses this in music store app.
2014-04-08 16:45:49 -07:00
Praburaj ccc257f8fc Adding environment based config to the music store project with a Config.json file for local.
If the same set of values (those present in config.json) is present in the environment variables
then ones from environment variables be picked up. This will be the antares scenario where the portal variables
flow in as environment variables with a specific prefix.
2014-04-08 14:21:19 -07:00
Praburaj c0250392b2 Enabling @RenderSection in the Music store code. 2014-04-08 12:48:12 -07:00
Praburaj 0db736b056 Uncommenting code to use [HttpPost] verb attribute. 2014-04-08 12:25:42 -07:00
Praburaj 3d54a24244 Removing the rendering package from music store app to fix a build error. Rendering and Core are merged now. 2014-04-08 10:42:10 -07:00
Praburaj f5e9d4d8aa Merge branch 'dev' of github.com:aspnet/MusicStore into dev 2014-04-04 17:21:34 -07:00
Praburaj 45e6e71bc8 Making a few more changes including:
1. Adding a view component
2. Adding more partial views from the sample and enabled a few of them.
3. Updating Account controller to accomodate all the recent identity changes.
4. Enabling some available Url helpers like Url.Content
5. Adding a ~ to all the scripts and images as this bug is fixed now.
2014-04-04 17:19:27 -07:00
Hao Kung 4d1bd6095b Fix identity API changes in Startup.cs 2014-04-04 14:59:38 -07:00
Hao Kung 5bb8f602f1 Fix build issues in Startup.cs
Update for Identity API changes
2014-04-04 14:55:47 -07:00
Pranav K e4af75dddf Fixing issue in Starup.cs to unblock build 2014-04-04 10:47:28 -07:00
Praburaj 4709bca281 A few changes with this checkin:
1. Removing copyright text from all files per a code review feedback
2. Adding a cookie based session to the application to retrieve the cart Id.
3. Enabled the Accounts controller as we now have the necessary Http abstractions for User, SignIn, SignOut etc.
4. Changing self hosting scripts to run on coreclr by default.
5. Enabling the layout page on all required views.
6. Adding a favico.ico
7. Renaming the Cart property in the EF context to CartItems as it returns a CartItems list.
8. Uncommenting some code which was previously accessing unavailable APIs. They are available now (but yet to validate them).
2014-04-02 18:40:25 -07:00
rowanmiller dabb68cc6d Fix EF InvalidOperationException on Startup
The code that does an 'UPSERT' of seed data on app start was querying
existing instances and attaching as modified of seed instances on the
same context. Now that we track query results this will throw because
the context has two instances of the same entity (same key value).

Swapping to use a temporary context to query existing data.
2014-03-31 10:45:41 -07:00
David Fowler 351964878f Updated task package 2014-03-29 03:19:45 -07:00
Praburaj 2a19ec7b2a Simplifying the options to the error page middleware. 2014-03-27 16:23:58 -07:00
Praburaj 4fc1857994 Fixing a code review comment to change the app name from "BugTracker" to "MusicStore" 2014-03-27 16:20:25 -07:00
Praburaj 5eacb62b62 A few changes with this checkin:
1. Adding scripts to self host & custom host Music store
2. Updating readme
3. Cleanup some helper classes that are not necessary.
4. Adding error page middleware for diagnostics.
5. Flipping the switch to run helios on "K" by default.
2014-03-27 16:10:16 -07:00
rowanmiller fe9770cc80 Use OnModelCreating & OnConfiguring (plus some other cleanup)
Swapping context to use OnModelCreating & OnConfiguring now that models
are cached
Adding some [Required] annotations to properties that are really
required in the domain model
Renaming Cart => CartItem because that's what it really is :)
Allowing database to hold some null data now that we can materialize it
(although we can't save it yet)
2014-03-25 16:01:01 -07:00
rowanmiller 965046813e Swapping data access to use EF
Enabling data access against new EF stack.
Uses SQL Server when running on Net45 and an in-memory database for K10
(because SQL Client isn't available on K10 yet).
Various workarounds in place to compensate for missing features in EF
(all marked with "// TODO [EF]..."
2014-03-25 12:50:36 -07:00
Praburaj 5497541e08 Updating the music store application with the latest code.
Changes include
(1) Inclusion of all views (with non compiling code commented out)
(2) Inclusion of all models with data annotations
(3) images & setting up of static files
(4) MVC application setup and scripts to run the application
(5) Scripts to clean up the temporary files and capture LKG build.
2014-03-24 15:15:43 -07:00
Pranav K 43d4ca4a0d Updating MyGet feed to unblock build 2014-03-11 11:49:22 -07:00
Hao Kung 1e91cbb565 Back to using System.Security.Claims ns 2014-03-04 15:47:17 -08:00
Hao Kung 625cd512e6 Update bootstrap package version back to 3.0.0 2014-03-04 10:22:25 -08:00
Hao Kung 169ffaa062 Account controller using Kidentity
- Uncomment account controller and switch to KIdentity
2014-03-03 15:28:24 -08:00
Yishai Galatzer 2f8c4b213a Rename MVC -> MVC.Core requires project.json changes 2014-03-02 23:36:15 -08:00
ajcvickers d1ac4298c2 Drown your issues in Kool Aid (Updating K Music Store app to use EF/E API surface)
This updates the K version of Music Store to use the updated Entity Framework API surface from the data repro. The changes made previously to the models and controllers in the full .NET version are also included here to bring both versions into line. The code is still non-functional as it was before.
2014-02-13 08:49:26 -08:00
Pranav K 939f363a0e Updatng build.cmd to use cached NuGet.exe 2014-02-02 08:31:24 -08:00
Arthur Vickers b8f5824114 Merge pull request #1 from aspnet/ControllerUpdates
Everything but the kitchen async... (Updates to how Music Store controllers use data)
    
Specifically:
    - Dispose contexts
    - Use async wherever possible
    - Stop using initializers (currently hard-coded to drop and recreate each run)
    - Some general cleanup
    - Stop using AttachDbFilename
    
Not included here:
    - No major changes to app structure
    - No major changes to data model
    - No major changes to error handling, concurrency, etc.
2014-01-29 08:46:43 -08:00
ajcvickers c20584b749 Removing automatically added packages.config as requested. 2014-01-29 08:43:46 -08:00
ajcvickers 7c96726460 Updates following code review 2014-01-29 08:39:53 -08:00
ajcvickers 6a9b6c16c2 Everything but the kitchen async... (Updates to how Music Store controllers use data)
Specifically:
- Dispose contexts
- Use async wherever possible
- Stop using initializers (currently hard-coded to drop and recreate each run)
- Some general cleanup
- Stop using AttachDbFilename

Not included here:
- No major changes to app structure
- No major changes to data model
- No major changes to error handling, concurrency, etc.
2014-01-28 16:16:02 -08:00
David Fowler 53268f3c9e Initial commit.
- Added original music store and k10 and net45 versions with new framework.
2014-01-28 02:27:26 -08:00