Showing posts with label VS2010. Show all posts
Showing posts with label VS2010. Show all posts

Thursday, December 17, 2009

WCF RIA Service project notes

  1. I suddenly realized why RIA Service project solution has such strange structure which requires
    common source code to be shared between server and client projects: this common code must be
    compiled against different DLLs on the server side and on the Silverlight side.
    They probably decided that this is good for all types of clients.
  2. To share my RIA Service:

    1. Copy *.Web project to IIS (say into dir ProFilerNetSrv)
    2. Create file crossdomain.xml in the root
    3. share *.DLL and *.Web.DLL,
    4. create Silverlight project and add correspondent references.
    5. access service using virtual name:
      ProFilerContext db = new ProFilerContext(new Uri(@"http:///ProFilerNetSrv/ClientBin/ProFilerNET-Web-ProFilerService.svc"));

  3. Auto-generated data object model on the server is different from data object model on the client.
    I understand: they were created by different groups that never seen each other.
    But this is a shame for Microsoft. In my opinion.
    Simple sample: client has OnCreate() and default constructor, server does not.
  4. Still too crude. Referencing as WCF service it expose only two functions out of bunch.
Probably have to wait till version 3, though there are no much alternatives. Will look at CSLA.

Thursday, November 12, 2009

VS2010 & .NET 4.0

Source: Presentation from Scott Guthrie on September 25 2009
http://channel9.msdn.com/posts/matthijs/Scott-Guthrie-Visual-Studio-2010-and-NET-Framework-40/

VS2010
IDE: 1. Multi-screen; 2. Select variable - highlight all references to it; 3. Call hierarchy; 4. "Alt-right click" to select/change column 5. Intellisense: filtered list, capitalized search (GMV will find GetMyValue); 6. Toggle Intellisense; 7. Test-Driven Dev: create test, then implement its classes and methods; 8. Snippets (more than 200); 9. Debug history = IntelliTrace: Tools/Options/IntelliTrace/General set events+call info. "Step-back debugging"!, analysis of customer's dump; 10. Multi-targeting (.NET 2,3,3.5,4.0)

WEB-infohttp://www.microsoft.com/web/

(Get the Web Platform - Including the framework, web server, database and tools, all with a single installer, SEO tool for example, etc.)

Tuesday, November 10, 2009

VS2008 to VS2010 migration. Entity Framework

EF project migrated from VS2008 to VS2010 does not have ability to use "Add Code Generation Item" : list of Installed Templates is empty.

EF project created in VS2010 has  the only item in the list of "Installed Templates": ADO.NET EntityObject Generator. It is places in "Code" sublist, not in "Code Generation" as I would expect.

Template SSDLToSQL10.tt that is used for EF model generation is located in
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\ folder