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));


Saturday, March 19, 2011

Блядь нет слов, это всегда так с лицензией
все таки у микросовт иногда очень прямые руки

попал на следующую проблему чуствую ебли часа на 2 будет, удалите блять все программы из списка вручную

Friday, March 18, 2011

Restrictions for current version of Data Service :

--EF provider

1. Opertaion methods can only returns collections of Model Entitities, Model Complex Types or simple types.

2. Even if operation return IQueriable type all aux filter conditions wont be suppported.
Ie :

//This is model's entity or complex type
class Thing
{
int Val {get;set;}
}

[WebGet]
IQueriable GetThings()

You can't use this request :
...MyService.svc?GetThings$filter = Val eq 1

3. No operation method overridens