public class Holding
{
    [Required]
    public int Id { get; set; }/* "prop"TABTAB */   /* [Key] */
    public String KeyName { get; set; }
    public string Flag { get; set; }
    public decimal Amount { get; set; }      /* double decimal? */
    public long Number { get; set; }
    public DateTime Birthday { get; set; }
}

public class HoldingContext : DbContext
{
    public HoldingContext() : base( WebConfigurationManager.ConnectionStrings["MyConnect"].ConnectionString ) 
    { 
    }
    
    public DbSet Traffic { get; set; } 
}

At this point the EntityFramework creates a database and table for me.
The SQL Server datatype appears as decimal(18,2)
 
Now in the SignalR Hub class 

        public bool Update(Holding oItem)
        {
            bool result = false;
            Clients.Caller.raiseError(oItem.Amount.ToString() );

			...
			...
		}


this.updatePerson = function (holding) { alert(holding.Amount);	this.hub.server.update(holding); }



http://www.knockmeout.net/2011/07/another-look-at-custom-bindings-for.html
https://github.com/AndersMalmgren/Knockout.Bindings/blob/master/src/knockout.bindings.js
http://stackoverflow.com/questions/10512766/javascript-with-jquery-datepicker-using-knockout
http://jsfiddle.net/madcapnmckay/tKxAT/
http://rogerpleijers.wordpress.com/2012/09/26/single-page-application-jquery-ui-datepicker-in-knockout-js/

I have the following code in this jsFiddle. The problem I'm having is that my child items do not update properly. I can Click "Edit User" with a problem and see the data changing, but when I attempt to add a note or even if I were to write an edit note function, the data does not bind properly http://jsfiddle.net/jkuGU/10/ ? function Note(text) { this.text = text; } var User = function(name) { var self = this; self.Name = ko.observable(name); this.notes = ko.observableArray([]); } var ViewModel = function() { var self = this; self.Users = ko.observableArray(); self.EditingUser = ko.observable(); self.detailedNote = ko.observable(); self.EditUser = function(user) { self.EditingUser(user); $("#userModal").modal("show"); }; this.addNote = function(user) { var note= new Note("original") self.detailedNote(note); $("#addJobNoteModal").find('.btn-primary').click(function() { user.notes.push(note); $(this).unbind('click'); }); $("#addJobNoteModal").modal("show"); } for (var i = 1; i <= 10; i++) { self.Users.push(new User('User ' + i)); } } ko.applyBindings(new ViewModel());
Mouse over me
Details

You seem to be interested in:

Mouse over me