The final version of the Store Functions for EntityFramework 6.1.1+ Code First convention released

Code, the Universe and everything...

Today I posted the final version of the Store Functions for Entity Framework Code First convention to NuGet. The instructions for downloading and installing the latest version of the package to your project are as described in my earlier blog post only you no longer have to select the “Include Pre-release” option when using UI or use the –Pre option when installing the package with the Package Manager Console. If you installed a pre-release version of this package to your project and would like to update to this version just run the Update-Package EntityFramework.CodeFirstStoreFunctions command from the Package Manager Console.

What’s new in this version?

This new version contains only one addition comparing to the beta-2 version – the ability to specify the name of the store type for parameters. This is needed in cases where a CLR type can be mapped to more than one store type. In case…

View original post 395 more words


AttachedCommandBehavior V2 aka ACB

C# Disciples

YOUAfter publishing my AttachedCommandBehavior library, (you can read about this here), some WPF Disciples recommended some new features to make the library cover more use cases. Thanks William Kempf your input was amazing!

I added 2 new features

– Support for Collection of binding to commands
– Support for Light weight Commands or as I call them Action

Support for Collection of binding to commands

This is a very handy feature. Let’s say you want to hook a command to the MouseDown but also want to hook up to the MouseEnter event, in ACB v1 you could now do this because you could only Bind one command at a time. Now the ACB v2 is supporting a collection of what I call BehaviorBinding. This is really powerful because it enables you to hook up to N number of events. The code would look something like this

   1: <Border Background=

View original post 423 more words

WPF – Creating bindings in XAML by StaticResource

Shen HengBin's Blog

Here is a memo of how to create bindings in XAML .

As an example, let’s  look at the following snippet.

I have defined three types resource in above code.

  • PageTitle : String
  • FriendItemSource : List of custom class
  • ItemTemplate : DataTemplate of each item.

Then , We will add StaticResource into our XAML

  • Add xmlns reference to the namespace.
  • Add the static resources.


I had to wrap “x:Array ” in an ObjectDataProvider to get it to work, and replace

{StaticResource FriendItemSource}” to “{Binding Source={StaticResource FriendItemSource}}

or not , you will get an error like bellow

“Cannot convert the value in attribute ‘ItemsSource’ to object of type ‘System.Collections.IEnumerable’. ‘System.Windows.Markup.ArrayExtension’ is not a valid value for property ‘ItemsSource’ …”

The final effect looks as following

Full of  XAML source.

View original post

TFS vs. Git…or is it TFS with Git?

Johan Leino

Maybe you ended up on this post because you searched for ‘Git vs. TFS’. I hope so.
I have seen some debate going on for some time now in twitter about Git versus TFS (here are some examples):


If that’s the case I think you’re looking at it from the wrong angle, so to say. It really a matter of centralized vs. distributed version control.
Here’s how Microsoft actually explains it when you choose version control while creating a new project in Team Foundation Service:


Team Foundation Version Control (TFVC) uses a single, centralized server repository to track and version files. Local changes are always checked in to the central server where other developers can get the latest changes.

Git is a Distributed Version Control System (DVCS) that uses a local repository to track and version files. Changes are shared with other developers by pushing and pulling changes through…

View original post 1,731 more words

Showing and Hiding Series in chart

Lee's corner

Lets say we have a chart like this


it kind of looks like too many lines and user doesnt have easy way to see the different trends or easily compare the different measures user wants.

Showing and hiding a particular series will be nice addition to charts to allow the user to pick and choose what to see.   we want the user to be able to click the legenditem to toggle the display of the series.


we will start adding a style for the LegendItem, the original style looks like this

 <Style TargetType=”charting:LegendItem”>
        <Setter Property=”IsTabStop” Value=”False” />
        <Setter Property=”Template”>
                <ControlTemplate TargetType=”charting:LegendItem”>
                    <StackPanel Orientation=”Horizontal”>
                        <Rectangle Width=”8″ Height=”8″ Fill=”{Binding Background}”
                                   Stroke=”{Binding BorderBrush}” StrokeThickness=”1″ Margin=”0,0,3,0″ />
                        <datavis:Title Content=”{TemplateBinding Content}” />

and we specify the style on the LineSeries like this

<charting:LineSeries   LegendItemStyle=”{StaticResource LegendItemStyle}” Title=”Total…

View original post 230 more words


WebNG.com免费虚拟主机,提供YourName.WebNG.com子域名,也可以绑定自己的域名,有350 MB磁盘空间,10000字节(10 GB)的带宽,支持FTP访问,web方式上传管理文件,支持asp3.0、Access数据库网页顶部有横幅广告!

2. brinkster.com免费30MB的无广告国外ASP空间
Brinkster空间也是一个运行了很长时间的免费ASP空间了,部落放在上面的演示现在还完好。空间大小是30MB,月网站流|量是2GB,支持ASP 3.0 / ASP .NET/MS Access数据库,没有广告。不能绑定域名,但是提供免费二级域名。

3. jabry.com很稳定的100MB美国免费asp空间
Jabry空间也是一个很稳定的ASP空间,空间容量现在已经有了1GB了,无限月网站流|量,没有广告,有在线文件管理器,也支持FTP,支持MS Access数据库,申请后即时激活。
2、月站流|量不限制,支持Access数据库。支持上传ZIP文件,支持在线解压ZIP文件 。

4. 7host.com国外免费50MB的支持FTP的ASP空间
7host.com提供的ASP空间大小为50MB,支持ASP 3.0,提供的域名类似于,不支持绑定域名, Control Panel控制面板。没有广告。每一个月的网站流|量限制不详。
EachFree Web Hosting Account includes the following services:
50 MB WebSpace
URL address like
Add your domai
ASP 3.0 or ASP.NET or PHP
DB MS Access or MySQL
Account FTP
Instant activation
Control Panel
Ads exposed on your pages

Asspider空间是一个老牌的免费ASP空间服务商,支持ASP.NET 2.0,数据库有SQL Server 2005 Express和MS Access,目前空间容量是100MB,2GB的月网站流|量,可以绑定自己的域名

AspSpider提供与ASP.NET 4.0和SQL Server 2005/2008支持免费虚拟主机,空间大小只有可怜的10MB(不过官方提供了免费扩容方式),网站流|量只有1024 MB,创建一个免费ASP.NET空间有效期只有90天,当然一个用户可以创建多个免费ASP.NET空间。

Free ASP.NET 4.0 web hosting with SQL Server 2008 Express
– Learn ASP.NET 4.0 – Develop your web site – Host it for free (and no Ads on your sites!).


6. Somee免费ASP空间150MB支持ASP.Net、MSSQL可绑域名


Somee空间支持ASP、ASP.Net 1.1/2.0/3.5/4.0/4.5,空间容量是150MB,5GB的月网站流|量,15MB MSSQL2005/2008R2/2012,支持绑定域名和FTP管理文件。

Free .Net Hosting

Free ASP.Net web hosting

150MB storage, 5GB transfer

ASP ASP.Net 1.1/2.0/3.5/4.0/4.5

15MB MSSQL 2005/2008R2/2012

Free third level domain

FTP access



可以直接添加这些云平台的repository,将代码复制到Appharbor平台中运行。Appharbor还提供了多种应用,很多应用如20M的MysqL、20M的SQL Server数据库等都是可以免费使用的。

What is AppHarbor?
AppHarbor is a fully hosted .NET Platform as a Service. AppHarbor can deploy and scale any standard .NET application to the cloud.

Who is AppHarbor for?
AppHarbor is used by thousands of developers and businesses to host anything from personal blogs to high traffic web applications.

Why use AppHarbor?
AppHarbor lets you instantly deploy and scale .NET applications using your favourite versioning tool. Installing add-ons is just as easy.

8.Windows Azure微软免费ASP空间

Windows Azure空间由微软出品,品质自然不可小觑,严格意义上讲Windows Azure是一个全能空间:ASP、PHP等语言都支持,VPS也可以免费创建,可以自由定制内存、空间容量等等。

注意:Windows Azure只能试用90天,在注册时需要信用卡验证,如果用财付通美国运通卡验证时会冻结1美元,当然并不产生实际的费用。

Windows Azure平台的免费ASP空间没有传统的空间容量和网站流|量,取而代之的是主机CPU、内存、计算时间、存储、缓存、服务总线等理化指标,但是由于是试用期间,所以你可以任意选择不同型号的主机配置来使用,最高可达到35GB空间和不限制网站流|量。




支持Active Server Pages(ASP)


Microsoft Access数据库

asp2.cz以提供asp空间为主,其中免费空间有25m,很稳定,无广告,不可以绑域名。申请方法: 首先在注册一个账户,注册陈功后会收到一封邮件,提供了账户和密码。然后到https://admin.asp2.cz登陆开通空间和数据库。FTP账户信息和数据库开通在控制面板的第二项,显示绿勾的“ASP2 Free”后面的“detail”,点击“detail”进入就可以看到。 申请地址:

WPF Search Text Box

David's Playground

We’ve seen a lot of good advancement in usability in our operating systems and in our programs. One such advancement is the combining of the text label and the text box that it adorns. Not only does the text box hold the label, it also holds the search and clear button. This frees up a lot of space and allows us to create UI that looks like the following:



Now, I’m not going to argue who started or came up with this design because I frankly don’t care. :p The point is that it is around and it’s very good use of space and functional design. However, there is a problem; there isn’t a standard control to provide users with this functionality.

Today, let’s solve that problem. 🙂

First Look

Before we get started, let’s look at the actual control that we’ll be building.


View original post 3,022 more words