代码改变世界

随笔档案-2011年10月30日

Convert EntityFrameWork which called Entity connection string to Sql conncion string

2011-10-30 09:29 by barbarossia, 490 阅读, 收藏,
摘要: When use the EntityFrameWork, it will be automated generate the Entity Connection string which like :<add name="WCFDataEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;da 阅读全文

How can I exit the window while press the Esc key

2011-10-30 08:33 by barbarossia, 264 阅读, 收藏,
摘要: When I on the windows page I want to exit this window,how can I do it in code.The following code do that as example.using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Docu 阅读全文