Sign in
Hongye Sun's Blog
My Projects
My Projects
AutoF5
Live editing ASP.NET in Visual Studio
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
ASP.NET
NuGet
Pages
Razor
SPA
TFS
Troubleshooting
Web Api
Archive
Archives
February 2013
(1)
September 2012
(2)
August 2012
(1)
March 2012
(1)
November 2011
(2)
December 2009
(1)
MSDN Blogs
>
Hongye Sun's Blog
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hongye Sun's Blog
ASP.NET Web API OData - Support Composite Key
Posted
3 months ago
by
Hongye Sun - MSFT
0
Comments
The default EntitySetController doesn't support composite keys. So if you have composite key models, you need some additional work. Here is an example about how to do that. The model is simple: public class Person { [Key] public string FirstName {...
Hongye Sun's Blog
Loop Reference handling in Web API
Posted
8 months ago
by
Hongye Sun - MSFT
2
Comments
The Issue It's very common to have circular reference in models. For example, the following models shows a bidirection navigation property: 1: public class Category 2: { 3: public Category() 4: { 5: Products = new Collection<Product>...
Hongye Sun's Blog
Support $format in ASP.NET Web Api
Posted
8 months ago
by
Hongye Sun - MSFT
1
Comments
OData protocal defines $format to support different format: http://www.odata.org/documentation/uri-conventions#FormatSystemQueryOption User can use following URL to change the return format to json instead of setting Accept header: http://localhost...
Hongye Sun's Blog
Single Page Application with Backbone.js and ASP.NET Web API
Posted
8 months ago
by
Hongye Sun - MSFT
2
Comments
Spa is quite hot right now. There are many client choices. The reason why I chose backbone.js is because it supports connecting to a json web api. I am building an app on top of ASP.NET web api so I want to see how easy to make them work together. ...
Hongye Sun's Blog
Using Razor Template Engine in Web API Self Host Application
Posted
over 1 year ago
by
Hongye Sun - MSFT
2
Comments
[Update 8/15/2012] Update sample to Web API RTM packages As Web API is released with ASP.NET MVC 4 beta, it can be used in both web host and self host. You can view a sample code for self host here . When writing self host app, you may probably want to...
Hongye Sun's Blog
AutoF5 1.3 Published: Support Dynamically Loading CSS files
Posted
over 2 years ago
by
Hongye Sun - MSFT
0
Comments
If you are first time here, please read my previous post: http://blogs.msdn.com/b/hongyes/archive/2011/11/03/introducing-to-autof5-nuget-package-live-editing-in-asp-net.aspx Thanks for Scott Galloway's suggestion. AutoF5 1.3 now supports to refresh...
Hongye Sun's Blog
Introducing to AutoF5 Nuget Package: Live Editing in ASP.NET
Posted
over 2 years ago
by
Hongye Sun - MSFT
3
Comments
The problem: It is always annoying to switch between Visual Studio and browser back and forth when implementing a simple UI change. Especially editing an MVC project, there is no designer at all. Imagine that you want to adjust the size of an image...
Page 1 of 1 (7 items)