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

Advertisements

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.

NOTICE

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):

image

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:

image

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

sh_series1

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.

sh_series2sh_series3

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”>
            <Setter.Value>
                <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}” />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

and we specify the style on the LineSeries like this

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

View original post 230 more words

谈起国外的免费空间由于成本的问题支持ASP、ASP.NET很少,可以长期使用、稳定又好用的免费ASP几乎没有。下面zyfree.net谈谈至今可以使用又相当极少的几款支持ASP、ASP.NET空间

1.Webng提供美国可绑米350M免费asp空间
WebNG.com免费虚拟主机,提供YourName.WebNG.com子域名,也可以绑定自己的域名,有350 MB磁盘空间,10000字节(10 GB)的带宽,支持FTP访问,web方式上传管理文件,支持asp3.0、Access数据库网页顶部有横幅广告!
申请地址:http://cp3.webng.com/register.aspx

2. brinkster.com免费30MB的无广告国外ASP空间
Brinkster空间也是一个运行了很长时间的免费ASP空间了,部落放在上面的演示现在还完好。空间大小是30MB,月网站流|量是2GB,支持ASP 3.0 / ASP .NET/MS Access数据库,没有广告。不能绑定域名,但是提供免费二级域名。
1、空间大小只有15-30MB,而且每个月2GB网站流|量,不过在网站后台显示只有500MB的网站流|量。
2、空间不支持绑定域名,提供一个二级域名。
3、免费空间要6个月登陆一次,单个文件限制1M,Web方式上传管理文件。
4、支持ASP3.0、ASP.NET、XML4.0、WAP、FLASH、SSI、MDAC2.8、MS ACCESS
5、没有发现广告
http://www.brinkster.com/FreePkgLanding.aspx

3. jabry.com很稳定的100MB美国免费asp空间
Jabry空间也是一个很稳定的ASP空间,空间容量现在已经有了1GB了,无限月网站流|量,没有广告,有在线文件管理器,也支持FTP,支持MS Access数据库,申请后即时激活。
1、空间大小只有100MB,支持asp程序。最大文件限制20M。
2、月站流|量不限制,支持Access数据库。支持上传ZIP文件,支持在线解压ZIP文件 。
3、文件管理方式支持Web和FTP。不允许上传.exe,.cmd,.bat,.dll,.scr格式的文件。
4、不提供二级域名,也不支持绑定域名。dll,.scr格式的文件。
5、有一个小小的广告。数据库文件需上传到“db”文件夹中。
http://www.jabry.com/

4. 7host.com国外免费50MB的支持FTP的ASP空间
7host.com提供的ASP空间大小为50MB,支持ASP 3.0,提供的域名类似于
http://user.7host.com/yourname,不支持绑定域名, Control Panel控制面板。没有广告。每一个月的网站流|量限制不详。
EachFree Web Hosting Account includes the following services:
50 MB WebSpace
URL address like
http://yourname.7host.com/
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
注册页面:
http://www.7host.com/free_hosting/free_hosting.asp

5.Aspspider国外免费ASP空间和免费ASP.NET空间
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!).

注册地址:http://www.aspspider.com/

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

Somee是美国一家少有的以提供Windows主机和VPS为主的主机商,该主机成立有近两年了,免费ASP.NET空间一直都稳定运行着,现在大家都可以申请得到,只是空间在国内访问情况并不好。

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

https://somee.com/FreeAspNetHosting.aspx

7.云计算空间Appharbor免费ASP和ASP.NET空间

Appharbor是一个云空间,使用难度比较高,所以不建议初次接触此类空间的朋友来使用。Appharbor支持自动化单元测试,15秒部署,以及Git管理,如果你在Bitbucket、CodePlex、GitHub空间部署过自己的代码。

可以直接添加这些云平台的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.

https://appharbor.com/

8.Windows Azure微软免费ASP空间

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

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

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

http://www.windowsazure.com

9.老牌Nofeehost免费提供100M的ASP空间,不支持绑米

Nofeehost的服务器位于美国的弗吉尼亚州,提供的免费空间非常稳定,而且速度也不错。

空间大小为100MB

支持Active Server Pages(ASP)

支持FTP访问帐户。

Microsoft Access数据库
在线控制面板
WINDOWS 2003 IIS 6
1、此空间的速度和稳定性都是很不错的,但就是不支持绑米,有点可惜了!支持在线解压,我非常喜欢这种。但装ASP类的源码有点麻烦,主要是数据库问题,搞来搞去没有搞定!
2、拿来放图片还是不错的!
3、另外,FTP也连不上!
4、这是我很久之前注册的账号,一直还在,没有被删除!
申请地址:http://www.nofeehost.com/

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

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:

image 

image

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.

image

View original post 3,022 more words