2017年12月12日

摘要: //创建存储过程 create proc usp_add @num int, @num1 int as begin select @num+@num1 end //调用存储过程 exec usp_add @num=1,@num1=3 阅读全文
posted @ 2017-12-12 19:18 CCCCCC1129 阅读(64) 评论(0) 推荐(0) 编辑
摘要: begin transaction declare @sumerror int set @sumerror=0 update bank set ballance=ballance-112 where id="xxx"; set @sumerror=@sumerror+@@error update b 阅读全文
posted @ 2017-12-12 19:04 CCCCCC1129 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;Integrated Security=no; 链接远程数据库: 这是陈毅老师给的一个例子,链接而是远程的电脑,端口号合监听服务也是他自己设置的 阅读全文
posted @ 2017-12-12 11:57 CCCCCC1129 阅读(138) 评论(0) 推荐(0) 编辑

2017年11月24日

该文被密码保护。 阅读全文
posted @ 2017-11-24 23:41 CCCCCC1129 阅读(0) 评论(0) 推荐(0) 编辑

2017年11月7日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace SingleLeton{ public class Si 阅读全文
posted @ 2017-11-07 18:19 CCCCCC1129 阅读(136) 评论(0) 推荐(0) 编辑

2017年11月2日

摘要: 1.使用Migrations 命令 添加对 数据库上下文类的 初始版本 Enable-Migrations -ContextTypeName MVCDemo.Models.MVCDemoContext2.使用 Add-Migration 添加上一个版本 3.使用 Upadata-database 调 阅读全文
posted @ 2017-11-02 20:30 CCCCCC1129 阅读(169) 评论(0) 推荐(0) 编辑

2017年10月31日

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LinQ.Models; namespace LinQ { class Program { static void M... 阅读全文
posted @ 2017-10-31 11:49 CCCCCC1129 阅读(105) 评论(0) 推荐(0) 编辑

2017年10月30日

摘要: 还缺少CSS样式,需要自己添加这个样式 阅读全文
posted @ 2017-10-30 20:05 CCCCCC1129 阅读(139) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 委托练习{ public class 无聊练练 { st 阅读全文
posted @ 2017-10-30 11:52 CCCCCC1129 阅读(112) 评论(0) 推荐(0) 编辑

2017年10月24日

摘要: 没有上面的方法 就要 调用工具类 需要转换实体的方法 //#region 转换实体 //private Article DataRowToEntity(DataRow dr) //{ // Article article = new Article(); // article.ArticleID = 阅读全文
posted @ 2017-10-24 21:25 CCCCCC1129 阅读(282) 评论(0) 推荐(0) 编辑

导航