I saw the light .NET - Alexey Zakharov's Blog

Browse by Tags

All Tags » .NET (RSS)

MS Prism remote module loading tips by brainbox

1. Share styles between modules. Place styles and templates you want to share to app.xaml of shell project. Now you can use them in all modules, but Visual Studio and Blend will say that these styles weren't found. But it is not true =) They will work...

Little trick with partial classes. by brainbox

If you have ever look at silverlight control toolkit source you may be found that all visual states and visual state groups are stored as constants in one internal static class called visualstates. When I have started developing my own control library...
Filed under: , ,

Silverlight Tip : How to set web page title. by brainbox

If you have more than one page in your silverlight application it would be great if you will change a web page title when you switch between them. To do it you can use Silverlight DOM API. 1: var document = HtmlPage.Document; 2: document.SetProperty(...

ADO.NET Entity framework navigation property trap. by brainbox

Navigation properties (EntityCollection or EntityReference) of entity object can be automatically loaded without calling their Load method because of they can be already loaded to ObjectStateManager before. Such behaviour may confuse people how are newbie...

Enum in ADO.NET Entity Framework v1 by brainbox

There is no direct support for enum type in ado.net entity framework v1. But it is rather easy to solve this problem. All u need to do is to create int property with private getter and setter and then add public property to your partial class, which type...

Simple database fixture. by brainbox

Very often we need to write tests which interact with the database. I found that many people are still doing complex clean up manipulation in tear down method. But in most cases it is useless work. All you need to perform clean up of database after each...
Filed under: , , ,
More Posts