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/