- 博客(169)
- 收藏
- 关注
转载 VS code - code Snippet
For anyone working on the UI and using VS Code, you can create a user Snippet and keyboard shortcut so that you can easily add the localization code when needed. Add the user Snippet to VS Code b...
2019-04-13 16:40:00
278
转载 Angular45
Angular 4 Tutorial for Beginners: Learn Angular 4 from Scratch https://www.youtube.com/watch?v=k5E2AVpwsko&list=PLTjRvDozrdlxAhsPP4ZYtt3G8KbJ449oT安装Angular CLI: npm install -g @angula...
2018-04-16 10:52:00
424
转载 React笔记
React JS Tutorials for Beginners - 1 - Getting Started https://www.youtube.com/watch?v=-AbaV3nrw6E&list=PL6gx4Cwl9DGBuKtLgPR_zWYnrwv-JllpA Downloads: https://facebook.github.io/react/dow...
2018-04-16 10:50:00
599
转载 Python笔记
Installing Python 3 - How to install/use both Python 2 and Python 3 https://www.youtube.com/watch?v=IX6mc9l6tY4&index=2&list=PLQVvvaa0QuDe8XSftW-RAxdo6OmaeL85Mpython官网: www.python.o...
2018-04-16 10:48:00
765
转载 查询Table name, Column name, 拼接执行sql文本, 游标, 存储过程, 临时表
018_Proc_UpdateTranslations.sql:SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOif (exists (select * from sys.objects where name = 'UpdateTranslationsForTable')) drop proc [Update...
2016-10-13 14:34:00
238
转载 通过脚本把远程服务器上的表和数据拷贝到本地数据库
EXEC sp_addlinkedserver @server='srv_lnk', @srvproduct='', @provider='SQLOLEDB', @datasrc='HELIOS01.us.psav.dom\HELIOSLISTENER'EXEC sp_addlinkedsrvlogin 'srv_lnk', 'false', NULL, 'ShinetechPS...
2015-11-05 17:57:00
204
转载 mongo客户端mongo VUE增删改查
一、先创建一张mongo表,右击已创建的数据库test,点击addcollection..输入Collection Name,点击ok;二、在创建的表中新增列与数据,右击表选择Insert document点击Insert,刷新表。三、查询数据右击表格,点击Find1、查询日期的方式需要在{Find}框中写{"endDate":ISODate("2013-...
2015-05-02 11:11:00
123
转载 HttpListener supports SSL only for localhost? install certificate
1.Start-All Programs - 2.execute below lines on that ‘Developer Command Prompt..’ tool makecert -n "CN=vMargeCA" -r -sv vMargeCA.pvk vMargeCA.cer make...
2015-02-10 17:41:00
219
转载 让你的.NET程序支持多语言
辛辛苦苦做出来的软件,我们当然希望能让更多的人用,支持多语言是必须的。下面我将以Asp.net Web Form为例来介绍如何支持多语言。其他程序比如windows程序,过程都是大同小异的。大概分以下几个步骤:生成默认资源文件,翻译资源文件。写一点代码实现语言切换一些高级话题。例子总是简单的,真实项目会遇到哪些问题?下面是详细步骤:生成默认资源文件,翻译资...
2014-07-31 18:18:00
271
转载 MEF技术
MEF 是一个使开发人员能够创建“插件式应用程序”的技术,这里的“插件”是指在应用程序部署后开发人员能够通过开发“插件”来扩展应用程序功能。但不同之处是使用MEF框架您在系统设计阶段不需要考虑在应用程序部署后可能会有什么插件,MEF可以自动搜索这些插件。这也是为什么会叫他Managed Extensibility Framework。一个简单的MEF示例, 假设系统中有如下需求 ...
2014-07-31 17:14:00
237
转载 在文件中读取、存储Json格式的字符串
public class Weather { static readonly string FilePath = System.Environment.CurrentDirectory + @"\Area.txt"; public static Models.Area GetCurrentArea() { ...
2014-06-16 11:49:00
248
转载 WPF 中资源路径的问题
WPF 中资源路径的问题1. 引用当前工程的资源(注意xxxx.png的build action 应设置为Resource 或Embedded Resource)<ImageBrush ImageSource="/currentAssemblyName;component/subfoldername/xxxx.png"/>2.引用其它工程的资源 (注...
2014-06-10 11:37:00
228
转载 We need the sql script to query the table Ditronics.Kiosk.Journal to find journal with mismatch deno...
CREATE TABLE #MoneyTable ( Id INT IDENTITY(1, 1) PRIMARY KEY , MoneyName VARCHAR(50) , Cents INT ...
2014-05-23 16:17:00
116
转载 WPF学习笔记 - 在XAML里绑定
Binding除了默认构造函数外,还有一个可以传入Path的构造函数,下面两种方式实现的功能是一样的。<TextBlock x:Name="currentFolder" DockPanel.Dock="Top" Text="{Binding ElementName=treeView, Path=SelectedItem.Header}"...
2014-04-23 22:55:00
151
转载 Dispatcher及线程操作
WPF 应用程序启动后,会有两个线程: 1. 一个是用来处理UI呈现(处理UI的请求,比如输入和展现等操作)。 2.一个用来管理 UI的 (对UI元素及整个UI进行管理)。WPF在线程里面是不可以直接操作UI元素,如果在一个非UI线程里操作UI元素,将会报错!XAML代码如下:<Window x:Class="WpfApp1112.Wi...
2014-03-31 23:11:00
519
转载 MVVM中轻松实现Command绑定(三)任意事件的Command
WPF中不是所有的控件都有Command属性的,如果窗体我需要在ViewModel中处理Loaded事件命令,或者其他事件的命令时,很难都过绑定Command完成,必须要注册依赖属性或事件等,太麻烦了。我喜欢简约、有效的方式,现在我和大家一起分享一下。场景,我需要处理Button的Click和MouseMove事件,但又避免用后置代码,尽量要在ViewModel中获取。单独一个Cli...
2014-03-20 23:00:00
185
转载 MVVM Light中的Message
比喻:像漂流瓶一样发送一个Message,任何人有兴趣就可以拾起来。MVVM Light中的Message的使用分为三个步骤:1.创建一个类,包含要传递的Message。2.在ViewModel中,实例化这个Message类并广播这个Message。3.在MainPage.xaml.cs中注册此Message并在接收到的时候处理它。在项目中创建一个新Class,...
2014-03-20 22:29:00
319
转载 Prism - WPF MVVM(Model-View-ViewModel)设计模式【学习】
开发工具:VS2010BlendPrism框架基本概念:数据绑定,依赖属性,依赖对象WPF 委托式命令 Icommand接口Lambda表达式MVVM(Model-View-ViewModel)介绍:{View=UI;Model=抽象事物;Viewmodel=Model for View;即View的建模}ViewMode与前台Vi...
2014-03-20 13:05:00
358
转载 Prism的IEventAggregator事件聚合器, 事件订阅发布, ViewModel之间的通讯
WPF中时常会遇到ViewModel之间的通讯,ViewModel并不知道自己的View,但是一个View发生的更改需要通知另外一个View。举一个例子,软件界面上有个人信息,打开一个界面更改用户的信息后,这时显示个人信息的地方理应发生变化。此场景下更改用户后应该通知另一个显示用户信息的区域去更新。一般在设计时,我们会设计成一个个的用户控件,用户控件的数据来源于ViewModel,所...
2014-03-20 12:55:00
809
转载 文件写操作--WriteLog
private static void Write(string sMsg, string fileName) { if (sMsg != "") { try { var dir = new FileInf...
2014-03-12 22:10:00
729
转载 Enum 枚举
一:1.foreach (int val in Enum.GetValues(typeof(AppEnum.HarbourStatus))){ ddlStatus.Items.Add(new ListItem(Enum.GetName(typeof(AppEnum.HarbourStatus), val), val.ToString()));...
2014-02-25 11:37:00
100
转载 SQL Server触发器以及如何在SQL Server Manager中调试触发器
·只有inserted表有数据时,当前操作为insert;·inserted和deleted两张表都有数据时,当前操作为update;·只有deleted表有数据时,当前操作为delete。1.CREATE TRIGGER trTask_Update ON dbo.Task FOR UPDATEAS BEGIN DECLARE @...
2014-02-22 13:15:00
1803
转载 XML新增、修改、选择
using System;using System.Linq;using System.Xml.Linq;using DFS.Kiosk.Provider.Simulator.Common.Utilities;using DFS.Kiosk.Provider.Simulators.Utilities;namespace DFS.Kiosk.Provider.S...
2014-02-20 09:51:00
137
转载 IIS7配置https
To Install an SSL Certificate in Microsoft IIS 7ClickStart, mouse-overAdministrative Tools, and then clickInternet Services Manager.In theInternet Information Services (IIS) Managerwin...
2014-02-19 09:46:00
145
转载 How to make project not set to be build
1.BUILD->Configuration Management...2.When you guys add new projects to the kiosk solution please be sure to remove them from the Release configuration if they are not intended to be ...
2014-02-13 09:51:00
85
转载 机器更换登录密码重启,然后SQL Server登录不了
解决方法:转载于:https://www.cnblogs.com/cw_volcano/p/3541236.html
2014-02-09 09:49:00
91
转载 Never use GetDate() when comparing date timesoffsets, use SYSDATETIMEOFFSET()
-- my current uk time is 2014-01-09 10:43:00 +0DECLARE @userLocalTimeChina datetimeoffset(4) = '2014-01-09 18:43:00 +08:00';DECLARE @userLocalTimeLasVagas datetimeoffset(4) = '2014-01-09 02...
2014-01-11 13:39:00
97
转载 ASP.NET返回Json数据
Schedule.ashx:<%@ WebHandler Language="C#" Class="Schedule" %>using System;using System.Data;using System.Text;using System.Web;using System.Web.Script.Serialization;pub...
2013-08-30 14:59:00
266
转载 OnClientClick事件
1.OnClientClick="return validation()" //注意return2.//默认情况下返回truefunction validation() { if ($('#txtStartDate').val() == "" || $('#txtStartTime').val() == "" || $('#txtEndDate'...
2013-08-29 15:49:00
132
转载 Reason: Server is in single user mode. Only one administrator can connect at this time
单击Start→All Programs→MicrosoftSQLServer 2008→Configuration Tools→SQLServer Configuration Manager.右键单击面板右边的SQLServer ,然后在下拉菜单中选择Properties ,在SQLServer Properties 界面上,单击Advanced 选项卡。删除“...
2013-08-21 17:12:00
1016
转载 在Code First中使用Migrations对实体类和数据库做出变更
在Code First中使用Migrations对实体类和数据库做出变更,Mirgration包含一系列命令。 工具--库程序包管理器--程序包管理器控制台 运行命令:Enable-Migrations启用Code first Migration 运行成功后会产生两个类:Configuration.cs 和<timestamp>_Initial...
2013-08-20 10:54:00
166
转载 关于.ToList(): LINQ to Entities does not recognize the method ‘xxx’ method, and this method cannot be ...
LINQ to Entities works by translating LINQ queries to SQL queries, then executing the resulting query on the database and converting the result back to application entities. Because of this cross...
2013-08-06 18:42:00
211
转载 VS发布,TFS邮件设置截图
vs2012发布截图:TFS邮件设置截图:转载于:https://www.cnblogs.com/cw_volcano/p/3237801.html
2013-08-05 11:12:00
110
转载 Code generated using the T4 templates for Database First
Error message:Code generated using the T4 templates for Database First and Model First development may not work correctly if used in Code First mode. To continue using Database First or Model F...
2013-08-01 20:46:00
256
转载 Excel和XML文件导入
using System;using System.Collections;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.OleDb;using System.Data.SqlClient;using System.IO;using Syste...
2013-07-30 16:29:00
275
转载 Entity Framework快速入门笔记—增删改查
第一步:创建一个控制台应用程序,起名为EFDemo2. 第二步:创建一个实体模型 (1)在EFDemo项目上面右击选择添加—新建项—在已安装的选项中选择数据—ADO.NET实体对象模型,如图所示: 3. 与数据库进行连接 (1) 单击第二步建立的实体数据模型的添加按钮,然后我们选择从数据库生成,如图所示: (2) 单击下一步,然后如果我...
2013-06-27 17:40:00
121
转载 将ReportServer报表转存为PDF
using Microsoft.Reporting.WebForms;/引用 ReportViewer reportview = new ReportViewer();//web界面显示RS报表控件 reportview.ProcessingMode = ProcessingMode.Remote;//控件处理模式,Remote远程,.Local本地 ...
2013-06-14 09:37:00
356
转载 SSRS_NOTE
1.Computer -> Manage ->Server and Applications -> Services -> SQL Server Reporting Service(如果启动不了的话 右键属性 logon)2.Start->Microsoft SQL Server 2008 R2 ->Configration Tools->R...
2013-05-24 14:42:00
107
转载 ADO.NET Entity Framework 中使用存储过程
本文主要介绍在ADO.NET Entity Framework中使用存储过程来进行查询、插入、更新、删除操作。使用一下SQL建立实例数据库,下面选择了Northwind库来执行SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[Group]( [GroupID] [in...
2013-04-16 09:59:00
127
转载 WCF入门
Windows Communication Foundation (WCF) 是一个统一框架,用于创建既安全可靠又可交互的分布式事务处理应用程序。在我学习一样新的技术的时候总喜欢一开始就知道他如何使用和配置,然后再深入的了解的更多细节。下面我们就通过图片一步一步的从一点不会开始建立一个简单的WCF程序(这个例子取自微软,很简单):我使用的环境是: VSTS2008 sp11....
2013-04-15 17:55:00
81
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人