Monday, April 11, 2011

Is the combination of ADO.NET Entity Framework and ASP.MVC wrong by any chance?

http://stackoverflow.com/questions/1501616/is-the-combination-of-ado-net-entity-framework-and-asp-mvc-wrong-by-any-chance

Tuesday, April 5, 2011

MVC metadata annotation

http://odetocode.com/blogs/scott/archive/2010/07/25/notes-on-templates-and-data-annotations-in-mvc-2.aspx

Thursday, March 31, 2011

FUck CreateQuery - create chould be save before CreateQuery

FUck create

http://social.msdn.microsoft.com/Forums/en/adodotnetdataservices/thread/c168d808-ac10-4a29-a04a-55421d86fed9

Monday, March 28, 2011

bry r bry byr get the json formated response from data service

http://stackoverflow.com/questions/1145588/cannot-properly-set-the-accept-http-header-with-jquery

Saturday, March 26, 2011

Many ways

There s many ways to define metadata for model in MVC
http://bradwilson.typepad.com/blog/2010/01/why-you-dont-need-modelmetadataattributes.html

OLD school attributes still the Best. I neebet

Wednesday, March 23, 2011

Can't undersand it

Re: The controller for path /favicon.ico does not implement IController
Apr 26, 2008 12:37 AM

The Routing system no longer special-cases the period character. Take a look at the Global.asax provided with the April codeplex templates:

1 routes.MapRoute(
2 "Default", // Route name
3 "{controller}/{action}/{id}", // URL with parameters
4 new { controller = "Home", action = "Index", id = "" }, // Parameter defaults
5 new { controller = @"[^\.]*" } // Parameter constraints
6 );

Note that on line (5) above, we're constraining the controller parameter such that periods are invalid characters, so the routing system won't bother looking for the favicon.ico controller.

Try adding a similar constraint to your registered routes. Hopefully this will solve your issue. :)


And issue appears on when:
AppControllerFactory{...
public override IController CreateController(RequestContext requestContext, string controllerName)
{

//object controller = _kernel.TryGet(controllerName.ToLowerInvariant());

return base.CreateController(requestContext, controllerName);
}

WTF!!!????

Monday, March 21, 2011

+1 bug

/Invoke service operations from client

. The operation could only be invoked
http://localhost:51685/serv.svc/Companies no parentesis on the end allowed!!!

ServiceClient - CreateQuery works only if operation has no parameters, i.e. it creates request without parentesis on the end, as far as you add some parameter, it add parentesis and server refuse to recognaise such request WTF

The only safe way to invoke operation through execute request

var courses = proxy.Execute<Course>(

new Uri(string.Format("{0}CoursesByCredits?credit={1}",
proxy.BaseUri, 3),

UriKind.RelativeOrAbsolute));