hottowel

hottowel nuget with entity framework 6?

让人想犯罪 __ 提交于 2020-01-25 00:32:06
问题 I'm trying to get hottowel installed via nuget in my german visual studio 2013 mvc application. I get this error: Install-Package : Error during the update from "EntityFramework 6.0.1" auf "EntityFramework 5.0.0". No version of "EntityFramework.de, Microsoft.AspNet.Identity.EntityFramework" found, which are compatible with "EntityFramework 5.0.0" It just says, that the new authentication thing called "identity" uses entityframework features which are not compatible with the needed entity

accessing $scope from unit test file when using the vm “ControllerAs” syntax from AngularJS HotTowel

馋奶兔 提交于 2020-01-20 17:09:51
问题 See here for example: http://www.johnpapa.net/angularjss-controller-as-and-the-vm-variable/ As the title suggests, I'm following along on this tutorial [http://tech.pro/tutorial/1473/getting-started-with-angularjs-unit-testing] to setup unit testing and all is fine EXCEPT for the fact I can't seem to access the vm variable as my $scope . dashboard.js var controllerId = 'dashboard'; angular.module('app') .controller(controllerId, ['common', 'datacontext', dashboard]); function dashboard(common

accessing $scope from unit test file when using the vm “ControllerAs” syntax from AngularJS HotTowel

拈花ヽ惹草 提交于 2020-01-20 17:09:50
问题 See here for example: http://www.johnpapa.net/angularjss-controller-as-and-the-vm-variable/ As the title suggests, I'm following along on this tutorial [http://tech.pro/tutorial/1473/getting-started-with-angularjs-unit-testing] to setup unit testing and all is fine EXCEPT for the fact I can't seem to access the vm variable as my $scope . dashboard.js var controllerId = 'dashboard'; angular.module('app') .controller(controllerId, ['common', 'datacontext', dashboard]); function dashboard(common

where doese breeze fits into ntier architecture

家住魔仙堡 提交于 2020-01-17 03:53:25
问题 i am Trying to fit in breezeJS with my existing architecture. I have a structure like html/JS/Angular :: based view using hot-towel angular. web api controllers :: whom the view calls. Services layer :: that is being called from Web api. Any business logic goes here. Unit of Work :: And (if) business logic requires to talk to data base for CRUDs it calls UOW. Repository Pattern :: UOW is actually wrapping repositories. and repositores in turn talking to DbContexts. Uptill now i was able to

What am I doing wrong here returning viewmodel?

冷暖自知 提交于 2020-01-06 08:26:09
问题 I am trying to convert this to durandal/hottowel. viewModel: define(['plugins/router', 'knockout', 'services/logger', 'durandal/app', 'mapping', 'services/routeconfig', 'services/dataBindingHandlers', 'services/appsecurity'], function (router, ko, logger, app, mapping, routeconfig, dataBindingHandlers, appsecurity) { function activate() { logger.log(viewModel.title + "'s View Activated", null, viewModel.title, true); return true; } var viewModel = { activate: active, title: 'Overview', query:

How is it possible for the page source not to show what is on the page?

那年仲夏 提交于 2020-01-03 04:03:30
问题 This is my web page: I'm trying to find out why my list isn't showing up correctly, but that's another post. To troubleshoot, I right-clicked on the page and chose View page source. As you can see below, that list of people (Adam Kinkaid, etc.) doesn't even show up. How is that possible? Page source: <!DOCTYPE html> <html> <head> <title>Presto</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> <meta name="apple-mobile-web-app-capable" content=

Durandal and ASP.NET MVC conventions

帅比萌擦擦* 提交于 2020-01-01 01:54:08
问题 I'm currently evaluating Durandal for use in an enterprise ASP.NET MVC application. However the default conventions used by Durandal seem to conflict with the MVC conventions I've grown accustomed to. The HotTowel MVC template by John Papa is great, but this too seems to "do away" with MVC conventions in favour of Durandals by putting things in an App folder. A couple of the issues I have with these conventions are: Views are potentially split across two locations (/App/views and /Views).

How to set Default page in Angular

痞子三分冷 提交于 2019-12-31 05:42:09
问题 I am getting an error when I request the link with this URL: http://xxx:46630/ or with this http://crmbyzaid.azurewebsites.net/ But it is working good when I add '/index.html' with URL. Now I want to set the Default render of my partial page "app/dashboard/dashboard.html" when I request with just http://crmbyzaid.azurewebsites.net/ My code of config-route.js is function routeConfigurator($routeProvider, routes) { routes.forEach(function (r) { $routeProvider.when(r.url, r.config); });

Breeze going faster than the shell togglespinner

怎甘沉沦 提交于 2019-12-25 07:59:42
问题 Hi all, My environment : vwd 2013, sql server 2012, project template : Hot towel - Angular (by John Papa), BreezeJs, Breeze.WebApi2, Breeze.ContextProvider.EF6, Entity-Framework ADO .Net 6 . I'm making a little Web app SPA, everything used to work correctly as long as I instanciate a new BreezeManager before every Web API call with entityManagerFactory, all the web api calls are done in 2 services datacontext and authenticationservice (of my own development). Then I discover that app was

Hot Towel SPA Durandal Knockout and Dynatree

﹥>﹥吖頭↗ 提交于 2019-12-24 11:27:45
问题 I am trying to get the dynatree control to work in the Hottowel viewmodel, based on this fiddle, http://jsfiddle.net/EZgNs var ViewModel = function() { var self = this; self.initialized = ko.observable(false); self.items = ko.observableArray(); // Use JSFiddle echo to simulate an AJAX service (function() { $.ajax({ url:"/echo/json/", data:data, type:"POST", success:function(data) { // Map the returned JSON to the View Model ko.mapping.fromJS(data, {}, self.items); self.initialized(true); } })