Get Adobe Flash player

Entity Framework 4.1, RIA Services and the [Include] attribute

This item was filled under [ RIA Services, Silverlight ]

Found a nugget yesterday with an Entity Framework 4.1, RIA Services Silverlight project.

I’d spent some time upgrading the solution to EF4.1 and using plain classes. Data access in itself was working fine and was a very worthwhile upgrade from Linq2Sql.

However having escaped the highly annotated classes from my DTO project, I realised I still needed to use the [Include] attribute to tell RIA services which associates need sending to the client.

So, from the data access perspective, I use .Include(p => p.ReferencedEntity) to ensure the entity is retrieved from the database, and:


[Include]
public virtual SomeClass ReferencedEntity { get; set; }

… to ensure it’s sent to the client via RIA.

Fix for Silverlight 4 Memory Leak Issue

This item was filled under [ General, Silverlight ]

An update to Silverlight 4 is available fixing the well documented memory leak issues with DataTemplates, amongst other things:

Click here for more information and a link to the fix:

http://support.microsoft.com/kb/2164913

Using VisualStateManager with MVVM

This item was filled under [ General ]

Article about using the VisualStateManager with MVVM. Principle dictates the ViewModel should have no knowledge of the view, but this VSM takes a reference to a view as an argument:

Click here to read the article…

Silverlight 4 Global Busy Indicator

This item was filled under [ RIA Services, Silverlight ]

Bryan Sampica’s nice implementation of a global busy indicator for Silverlight 4:

Click here to view Bryan’s article.

iPhone OS 4.0.1 Installed

This item was filled under [ iPhone ]

Seems Apple have gone overkill with fixing the antenna issue.

Tagged with: [ , , ]

RIA Services & the DomainDataSource

This item was filled under [ RIA Services, Silverlight ]

Found a great article on the DomainDataSource DataView property, which enables programmatic access to entities loaded through RIA services.

Click here to read…

Additionally, here are some limitations of the DomainDataSource control.

Entity Framework 4 and GUIDs as identity columns

This item was filled under [ Development, Entity Framework ]

Found an interesting article about the performance impact of using GUIDs as identity columns in Entity Framework 4.0:

Click here to view the article.

Tagged with: [ ]

Introducing IIS Express

This item was filled under [ IIS, Server Configuration ]

Scott Guthrie introduces IIS Express, a new web server aimed at developers that provides an effective middle ground between Cassini and IIS7.

http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx

Tagged with: [ , , ]

Building a Windows Server 2008 NLB Cluster

This item was filled under [ Server Configuration ]

Detailed instructions are given here, courtesy of techotopia:

http://www.techotopia.com/index.php/Building_a_Windows_Server_2008_Network_Load_Balancing_Cluster

ASP.NET MVC Roadmap – version 3

This item was filled under [ Development, MVC ]

Here is a link to the road-map for ASP.NET MVC and version 3 features:

http://aspnet.codeplex.com/wikipage?title=Road%20Map&referringTitle=MVC

Tagged with: [ , , , ]