摘要:@echo off@echo 自动更新SVN Start rem SVN安装目录SET svn_home=D:\Program Files\TortoiseSVN\binrem SVN项目目录SET svn_work=D:\Code\svn\SourceCode\Unpackagerem SVN日志
阅读全文
摘要:/// <summary> /// 读取dicom文件 /// </summary> /// <param name="srcdirectory"></param> /// <param name="desdirectory"></param> public static void ReadAndE
阅读全文
摘要:/// <summary> /// 拷贝文件夹 /// </summary> /// <param name="srcdir"></param> /// <param name="desdir"></param> public static void CopyDirectory(string src
阅读全文
摘要://using System.Text.RegularExpressions; public static bool IsNumeric(string value) { return Regex.IsMatch(value, @"^[+-]?\d*[.]?\d*$"); } public stati
阅读全文
摘要:private static SqlConnection mySqlConnection; private static bool IsCanConnectioned = false; public bool GetConnection() { mySqlConnection = new SqlCo
阅读全文
摘要:private bool ChkDate(string str) { try { DateTime t1 = DateTime.Parse(str); return true; //返回真 } catch { return false; } }
阅读全文
摘要:static List<string> list = new List<string>();//定义list变量,存放获取到的路径 /// <summary> /// 读取某一文件夹下的所有文件夹和文件 /// </summary> /// <param name="path">文件夹路径</par
阅读全文
摘要:DirectoryInfo theFolder = new DirectoryInfo(path); DirectoryInfo[] dirInfo = theFolder.GetDirectories(); List<string> filelist = new List<string>(); /
阅读全文
摘要:http://www.cnblogs.com/ 一、xml文件体系如下: <?xml version="1.0" encoding="utf-8" ?><users> <user code="lm"> <name>秦岭</name> <sex>male</sex> <age>28</age> </u
阅读全文
摘要:打开执行命令窗体 1、EF Code First创建数据库 2、EF Code First数据库迁移 2.1、生成数据库 执行完命令之后出现一个文件夹Migrations和多一个Configuration文件 2>、在程序包管理器控制台,执行语句: 执行后出现以下文件 3>、在程序包管理器控制台,执
阅读全文
摘要:public int Insert<T>(IReadOnlyCollection<T> models) where T : class, new() { int sucess = 0; if (models.Count > 0) { foreach (var model in models) { s
阅读全文
摘要:添加方法: public int Insert<T>(T model) where T : class, new() { int sucess = 0; if (model is TempInfo) { TempInfo temp = (TempInfo)(object)model; sucess
阅读全文
摘要:第一步: 创建MyContext类 public class MyContext:DbContext { public MyContext():base() { } public DbSet<User> User { get; set; } public DbSet<Temp> Temp { get
阅读全文
摘要:List<string> list = new List<string>(); for (int k = 0; k < RepeaterList.Items.Count; k++) { //根据控件id获得控件对象,ckSelect是checkBox控件的id CheckBox chksel = (
阅读全文
摘要:原因: 不要在foreach里做删除或增加集合的操作 在循环的时候,当集合被删除了一个item后,那么总数 count和索引就会发生改变.所以会报错 解决方法: 不要在List上执行枚举集合的操作(例如foreach)中去执行修改集合的操作。如果需要修改集合,先使用 ToArray() 方法转化成A
阅读全文
摘要:C:\Windows\Temp"文件夹加上 IIS_IUSRS的权限
阅读全文
摘要:<input id="file1" style="width: 240px; height: 20px; display:none;" type="file" size="20" name="file"> string str = Request.Form["Upfile"].ToString();
阅读全文
摘要:CommandArgument ='<%#Eval("spid")+","+Eval("piaohao")%>'
阅读全文
摘要:FrmMain main = new FrmMain(); main.Owner = this; this.Hide(); main.ShowDialog(); Application.ExitThread(); Application.ExitThread(); Application.ExitT
阅读全文