Showing posts with label Entity Framework. Show all posts
Showing posts with label Entity Framework. Show all posts
Monday, March 22, 2010
A few screencasts on RIA Services in real life
I recorded a few screencasts in preparation to sarasotadev.net presentation on "RIA Services in real life (creating real middle tier)": http://bit.ly/9a0ptU (sort the list by date - it's better)
Monday, February 15, 2010
Thursday, December 17, 2009
WCF RIA Service project notes
- 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. - To share my RIA Service:
- Copy *.Web project to IIS (say into dir ProFilerNetSrv)
- Create file crossdomain.xml in the root
- share *.DLL and *.Web.DLL,
- create Silverlight project and add correspondent references.
- access service using virtual name:
ProFilerContext db = new ProFilerContext(new Uri(@"http:///ProFilerNetSrv/ClientBin/ProFilerNET-Web-ProFilerService.svc" ));
- 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. - 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.
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
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
Subscribe to:
Posts (Atom)