摘要:如果要客户端要远程访问COM+, 那么他的PC和Server要在同一个域中, 另外User的域帐户要加入在服务器的”Distributed COM Users”组里,如下图所示. 开发人员一直用管理员的权限去登录服务器,所以一直没发现这个问题.
阅读全文
阿牛 - 专注.NET开发如果梦想与实现之间有一道不可逾越的鸿沟,那么“执行力”就是跨越这道鸿沟的桥梁。 |
|
06 2009 档案
摘要:如果要客户端要远程访问COM+, 那么他的PC和Server要在同一个域中, 另外User的域帐户要加入在服务器的”Distributed COM Users”组里,如下图所示. 开发人员一直用管理员的权限去登录服务器,所以一直没发现这个问题.
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using XmlReader; using System.Threading; using NHibernate; using NHibernate.Cfg; using N...
阅读全文
摘要:Sample: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; usi...
阅读全文
摘要:FtpWebRequest Request = (FtpWebRequest)WebRequest.Create(Address); Request.Method = WebRequestMethods.Ftp.ListDirectory; //列表 Request.Credentials = new NetworkCredential(user, pass); FtpWebResponse R...
阅读全文
摘要:玩法很简单: 服务器每1分钟随机选择一个网络中的客户端并安装Bomb,18:00时,Bomb在谁的机器上谁就输.输家的桌面壁纸会被恶搞,小心点:) 界面预览: Server Client: 源码下载: Rocks_Network_Bomb.zip
阅读全文
摘要: 地址:http://knowledge.swanky.wu.googlepages.com/threading_in_c_sharp.html 入门 概述与概念 创建和开始使用多线程 线程同步基础 同步要领 锁和线程安全 Interrupt 和 Abort 线程状态 等待句柄 同步环境 使用多线程 单元模式和Windows Forms BackgroundWorker类 Reade...
阅读全文
摘要:set, bag, list, map的语义 集合最重要的一点是集合的语义。Java JPA中对Set, List, Collection, Map四种集合进行了定义(Java的Collection允许bag语义),NHibernate从Hibernate移植时照搬了这些概念。但是.Net社区中这些概念比较弱,很多人对set, bag, map的说法很陌生,这也对NHibernate集合映射的使用...
阅读全文
摘要:找到nhibernate\src\nhibernate-mapping-2.0.xsd Copy到<VS.NET installation directory>\Common7\Packages\schemas\xml.
阅读全文
摘要:ProblemThere are many instances when dates and times don't show up at your doorstep in the format you'd like it to be, nor does the output of a query fit the needs of the people viewing it. One option...
阅读全文
摘要:原来如果你更新一个对象更新前后属性值一样时,NHibernate不会发送Update SQL到数据库,晕死!_session.Load(obj_key); //obj.Name="123";obj.Name="123";_session.Update(obj); _session.Flush();//没用, NHibernate1.2.10发现没有属性变化,不发送Update SQL!
阅读全文
摘要:方法一:GridView.Sort(_view.Grid.Columns[2], ListSortDirection.Ascending); //方法二:BindingSource.Sort = "Id ASC";//这种方法显示不出小三角形来.
阅读全文
|