代码改变世界

阅读排行榜

asp.net 生成ul控件

2009-06-15 16:25 by 蜡笔小旧, 1088 阅读, 收藏,
摘要: (1)生成ul-li HTML控件asp.net 代码<asp:BulletedList ID="BulletedList1" runat="server"> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2</asp:ListItem> <asp:... 阅读全文

Repository 模式

2009-07-07 15:15 by 蜡笔小旧, 983 阅读, 收藏,
摘要: namespace ContactManager.Controllers{ /// <summary> /// CRUD /// </summary> /// <typeparam name="T"></typeparam> public interface IRepository<T> where T : class... 阅读全文

Foreach。Collection was modified; enumeration operation may not execute."的错误。

2009-07-29 14:33 by 蜡笔小旧, 974 阅读, 收藏,
摘要: Foreach … IN 不能修改集合内容 用for就OK了。 阅读全文

ms sql server 2000 GRANT EXECUTE on database to Roles

2009-07-28 11:40 by 蜡笔小旧, 952 阅读, 收藏,
摘要: 今天想把当前数据库所有执行存储的权限给一个角色 ,于是写 GRANT EXECUTE on D TO PPRoles结果是有语法错误,开联机丛书,貌似只能on单个存储过程statement是被授予权限的语句。语句列表可以包括: CREATE DATABASECREATE DEFAULTCREATE FUNCTIONCREATE PROCEDURECREATE RULECREATE TABLECRE... 阅读全文

Cannot remove an entity that has not been attached

2009-07-15 11:40 by 蜡笔小旧, 886 阅读, 收藏,
摘要: [TestMethod()] //[ExpectedException(typeof(System.ArgumentNullException))] public void DeleteTest() {     Ervice target = new Ervice (con);     Guid erviceID = new Guid(&... 阅读全文
上一页 1 2 3 4 5 6 7 ··· 43 下一页