摘要: Id bigint not null, version int not null default(1), created_by nvarchar(50) not null, created_time datetime not null default(getdate()), modified_by nvarchar(50) not null, mo... 阅读全文
posted @ 2017-07-26 09:30 谷仁儿 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 接触 LINQ 也有很长的一段时间了,有些在 SQL 语句中用的很顺手的东西在 Linq 中却不知道如何实现了,最近遇到了一个问题,在 LINQ 的 Where 条件式中要如何使用 IN 与 NOT IN 呢? 这时候真的开始怀念 T-SQL 其实还是最好用的。为了让自己日后开发时更为方便,于是花了一点时间,参考一些网络资料及 MSDN 后,得到以下的测试結果:T-SQL的IN:Select Pr... 阅读全文
posted @ 2017-07-25 13:02 谷仁儿 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 1、设置选择模式 this.DataGridView_1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; 2、添加CellMouseDown事件 阅读全文
posted @ 2017-07-12 13:48 谷仁儿 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: ScintillaNet 是一个免费的文本编辑控件,现在托管于Githubhttps://github.com/jacobslusser/ScintillaNET另外几个比较全面的Demo示例地址:https://github.com/hgupta9/ScintillaNET.Demohttps://github.com/uuf6429/ScintillaNET-Kitchen第一个示例:Scin... 阅读全文
posted @ 2017-06-23 13:16 谷仁儿 阅读(3994) 评论(1) 推荐(2) 编辑
摘要: //获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名)//获取新的 Process 组件并将其与当前活动的进程关联的主模块的完整路径,包含文件名(进程名)。string str = System.Diagnostic... 阅读全文
posted @ 2017-06-21 15:19 谷仁儿 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、设置DataGridView 的属性 SelectionModeSelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;2、设置事件CellMouseDownprivate void dgvResult_CellMouseDown(object sender, DataGridViewCellMo... 阅读全文
posted @ 2017-06-20 13:12 谷仁儿 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: 数据实体对象public class ProductInvLocationMapEntity:BaseDomain { #region Constructors public ProductInvLocationMapEntity() { } #endregion #region Properties ///... 阅读全文
posted @ 2017-06-19 15:58 谷仁儿 阅读(3533) 评论(0) 推荐(0) 编辑
摘要: 1 public class Person : BaseDomain 2 { 3 long _id; 4 string firstName; 5 string secondName; 6 string comments; 7 8 public Person() 9 {} 10 11 public P 阅读全文
posted @ 2017-06-15 15:16 谷仁儿 阅读(3231) 评论(0) 推荐(0) 编辑
摘要: public object BatchProcess(List<ChannelProductDTO> data_list) { int pageSize = 50; var batchPackage= new List<ChannelProductDTO>(pageSize); List<Chann 阅读全文
posted @ 2017-05-18 12:54 谷仁儿 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 关键脚本(C#语言) 1 /// <summary> 2 /// This method is called when this script task executes in the control flow. 3 /// Before returning from this method, se 阅读全文
posted @ 2017-02-13 14:08 谷仁儿 阅读(1473) 评论(0) 推荐(0) 编辑