Mixing Level 1 and Level 2 Transparency Rules – #16
Today’s tip addresses how assemblies using different transparency rules (CLR v2 and CLR v4) interact with each other in the same AppDomain. Remember you can use the SecurityRulesAttribute to specify...
View ArticleHow to Build APIs with Transparency in Mind – #17
In the .NET Framework there are a few types which expose both "safe" and "unsafe" equivalents of the same method. Both methods achieve the same goal e.g. BinaryFormatter.Deserialize and...
View ArticleAsserting for Permissions in .NET 4 – #18
Security asserts are a way to tell the CLR to stop checking for permissions past a certain point in the call stack. Of course, not all code is allowed to assert, or we’d have some big security problems...
View ArticleCAS Policy on 64-bit Machines – #19
Well it’s been quite a while since my last post. I hope you all had a happy holiday season! Today I’m going to talk about an issue I saw recently with a 64-bit machine and the partial trust tests for...
View ArticlePOCO Templates for Entity Framework v4 Beta 2 Released
Today we have finally released an update to the POCO Templates that is compatible with Visual Studio 2010 Beta 2. Official announcement on the ADO.NET team blog. One thing I will highlight is that the...
View ArticleWe’re Hiring! Test Positions Open on Entity Framework and WCF Data Services...
With work on Visual Studio 2010 winding down, both the Entity Framework and Astoria teams have test engineer positions open. Here are the job postings: Astoria Entity Framework Note: If the job...
View ArticleTip #20 – Opting Out of Security Changes in .NET 4 in ASP.NET and Custom...
Legacy CAS Policy in ASP.NET In a previous tip I discussed how you could re-enable CAS policy in applications running in .NET 4 by adding a switch to the application configuration file. However,...
View ArticleViewing Generated Proxy Code in the Entity Framework
This is one post that’s been on my to-do list for a while, and since I’ve seen some questions relating to it in our forums, I thought it appropriate to get it out the door before .NET 4 officially...
View ArticlePersisting Collections of Scalar Properties in the Entity Framework
Our team has done a lot of work over the past few years to bring the Entity Framework up as an enterprise-ready ORM, but there is a still a lot of work for us to do going forward, particularly in the...
View ArticleTip #22 – DynamicMethods in Partial Trust
The DynamicMethod class is in a part of the .NET Framework that not many people touch, even less so in partial trust. You may ask, then, why I bother to cover it. I have two reasons: it is a...
View Article
More Pages to Explore .....