代码改变世界

console调用plugin

2013-04-20 22:44 by hongjiumu, 269 阅读, 0 推荐, 收藏,
摘要:插件设计using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms; namespace ConsoleApplication1{ class Program { private static string _vsPath = @"D:\work\0411\test\Solution2\WindowsFormsApplicationTest\bin\Debug\WindowsFormsApplicationTes... 阅读全文

最简单的日志

2013-04-06 22:49 by hongjiumu, 169 阅读, 0 推荐, 收藏,
摘要:最简单的日志:public class Logger{ public static void Trace(string title,string message) { string path = System.Windows.Forms.Application.StartupPath + "\\Log.txt"; StreamWriter sw = new StreamWriter(path,true); sw.Write("{0}:{1}", title, message); sw.Flush(); sw.C... 阅读全文

大数据导出数据库的设计

2013-04-06 22:45 by hongjiumu, 281 阅读, 0 推荐, 收藏,
摘要:通过csv来实现好的多哦。 阅读全文

Current thread must be set to single thread apartment (STA) mode before OLE

2013-04-06 22:44 by hongjiumu, 1349 阅读, 0 推荐, 收藏,
摘要:Current thread must be set to single thread apartment (STA) mode before OLE原因很简单:就是有assembly的project,又有同名的winform的exe.net在运行的时候调用异常啊! 阅读全文

查询数据库中所有的表和数据库架构

2013-04-06 22:43 by hongjiumu, 375 阅读, 0 推荐, 收藏,
摘要:select * from sys.tablesSELECT distinct TABLE_SCHEMA FROM INFORMATION_SCHEMA.COLUMNSSELECT * FROM INFORMATION_SCHEMA.COLUMNS 阅读全文

修改表结构

2013-04-06 22:41 by hongjiumu, 186 阅读, 0 推荐, 收藏,
摘要:修改表结构alter table [cfg].[h_MODEL_BASIC] add [MMF1] varchar(50),[MMS1] varchar(50) 阅读全文

isoftstone

2013-03-22 20:47 by hongjiumu, 62 阅读, 0 推荐, 收藏,
该文被密码保护。 阅读全文

How do I list user defined types in a SQL Server database

2013-03-18 22:14 by hongjiumu, 220 阅读, 0 推荐, 收藏,
摘要:How do I list user defined types in a SQL Server database?select * from sys.types where is_user_defined = 1 and name ='BasicModelType' 阅读全文

Dev chartControl添加提示层信息

2013-03-18 22:12 by hongjiumu, 1181 阅读, 0 推荐, 收藏,
摘要://Add the Information.this.chartControlParameter.ObjectHotTracked += (s, a) => {//ChartHitInfo chartHitInfo = a.HitInfo;SeriesPoint seriesPoint = a.AdditionalObject as SeriesPoint;if (seriesPoint != null){//MessageBox.Show(seriesPoint.Argument);toolTipControllerParameter.ShowHint(seriesPoint.Argu 阅读全文

aspose读Excel

2013-03-15 22:11 by hongjiumu, 2650 阅读, 0 推荐, 收藏,
摘要:private string ReadExcelCell(string path, int row, int column) { Workbook workbook = new Workbook(); workbook.Open(path); Cells cells = workbook.Worksheets[0].Cells; for (int i = 0; i < cells.MaxDataRow + 1; i++) { if (i ... 阅读全文
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页