上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: 语法: WHILE condition BEGIN {...statements...} END 例子: DECLARE @Counter INT SET @Counter=1 WHILE ( @Counter <= 10) BEGIN PRINT 'The counter value is = ' 阅读全文
posted @ 2022-02-09 15:01 katesharing 阅读(115) 评论(0) 推荐(0)
摘要: 问题:sql server删除数据后,磁盘空间反而增大? 原因是:删除数据,会记录日志,所以磁盘空间反而增大。 要怎么做,才能释放空间?以下的databaseA是数据库的名称,注意数据库名称要用括号括起来 dbcc shrinkdatabase (databaseA) 解释: DBCC SHRINK 阅读全文
posted @ 2022-02-09 10:50 katesharing 阅读(3933) 评论(0) 推荐(0)
摘要: 1.Insert context.User.InsertOnSubmit(u); context.SubmitChanges(); 2.Update context.SubmitChanges(); 3.Delete context.User.DeleteOnSubmit(u); context.S 阅读全文
posted @ 2022-01-25 15:06 katesharing 阅读(54) 评论(0) 推荐(0)
摘要: 1.ViewBag其实本质就是ViewData,只是多了层Dynamic控制。所以,使用何种方式完全取决于你个人的爱好。 2. TempData的使用: 同ViewData和ViewBag一样,TempData也可以用来向视图传递数据。只是ViewData和ViewBag的生命周期和View相同,只 阅读全文
posted @ 2022-01-12 18:21 katesharing 阅读(106) 评论(0) 推荐(0)
摘要: 1.先定义一个Model public class CustomerViewModel { public string FullName { get; set; } public string Phone { get; set; } public int TotalAmount { get; set 阅读全文
posted @ 2022-01-12 17:15 katesharing 阅读(178) 评论(0) 推荐(0)
摘要: 一.他们之间的关系可简单描述如下图: 二.定义如下 public interface IEnumerable<out T> : IEnumerable public interface ICollection<T> : IEnumerable<T>, IEnumerable public inter 阅读全文
posted @ 2022-01-12 11:53 katesharing 阅读(304) 评论(0) 推荐(0)
摘要: 我的解决方案是:重新用“管理员”打开项目就解决了。 阅读全文
posted @ 2022-01-11 16:06 katesharing 阅读(802) 评论(0) 推荐(0)
摘要: let text = "Hello world!"; let result = text.substr(1, 4); 结果是:ello 语法: string.substr(start,length) 1)start:必需。从0开始,必须是数值。如果是负数,那么该参数声明从字符串的尾部开始算起的位置。 阅读全文
posted @ 2022-01-06 18:54 katesharing 阅读(148) 评论(0) 推荐(0)
摘要: jQuery.isNumeric() https://api.jquery.com/jquery.isnumeric/ 2.Math.abs 3.parseFloat 4.parseInt 5.toFix 阅读全文
posted @ 2022-01-06 16:15 katesharing 阅读(32) 评论(0) 推荐(0)
摘要: 问:如何判断一个字符串str是empty? 答:1)str “”(不能筛选出空格符及制表符) 2)str.length 0(不能筛选出空格符及制表符), .str.trim().length 0(可以筛选出空格符及制表符) 3) !str(不能筛选出空格符及制表符,0和false) 综上所述,如果要 阅读全文
posted @ 2022-01-06 11:36 katesharing 阅读(1577) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页