摘要: 判断数据库是否存在if exists (select * from sys.databases where name = '数据库名')drop database [数据库名]判断表是否存在if exists (select * from sysobjects where id = object_i 阅读全文
posted @ 2019-03-14 21:11 大吉利new 阅读(218) 评论(0) 推荐(0)
摘要: 创建数据库脚本 数据库字段 ASP.NET Mvc 后台管理系统(左侧列表数据库加载)Demo 创建空白解决方案 创建MVC项目 EF链接数据库 修改App.config配置信息 model层 创建TreeViewModel类 创建MyAttr类 创建Home控制器 使用EasyUI框架 创建ind 阅读全文
posted @ 2019-03-04 11:38 大吉利new 阅读(312) 评论(0) 推荐(0)
摘要: id name price1 张三 850.002 李四 850.00 阅读全文
posted @ 2019-01-24 12:09 大吉利new 阅读(254) 评论(0) 推荐(0)
摘要: 引用命名空间 using System.IO;using NPOI.XSSF.UserModel;using NPOI.HSSF.Util; 阅读全文
posted @ 2019-01-21 00:34 大吉利new 阅读(1039) 评论(0) 推荐(0)
摘要: //引入命名空间 //using np = NPOI.XSSF.UserModel; //using System.IO; 阅读全文
posted @ 2019-01-20 23:16 大吉利new 阅读(1166) 评论(8) 推荐(0)
摘要: //邮件发送: //高频率:邮箱发送验证码 借助:SendCloud 阿里云 //企业内部邮件:163企业邮箱 //自己构建发邮箱代码 //1.首先确保开启Smtp服务 //2.还需要开启设置""客户端授权码" (有的邮箱不要) //3.发邮件的代码(设置=>smtp) using (MailMes 阅读全文
posted @ 2019-01-20 17:43 大吉利new 阅读(123) 评论(1) 推荐(0)
摘要: //定时任务框架Quartz.net //Quartz.Net是从Java版的Quartz移植过来的 //少量代码完成定制任务 如每隔多长时间执行 定时执行 定时执行几次 //基本概念:计划者(IScheduler) 工作(IJob) 触发器(Trigger) //给计划者一个任务,让他在触发器触发 阅读全文
posted @ 2019-01-20 16:59 大吉利new 阅读(166) 评论(0) 推荐(0)
摘要: //日志系统: //什么是日志: 每天发生的事件(操作记录) //Log4NET是一个从Java版的Log4J 移植过来的日志框架,可以简化日志记录 //log4NET的概念: // a, 级别:trace(跟踪) debug(调试) info(普通) warm(警告) Error(错误) fata 阅读全文
posted @ 2019-01-20 16:51 大吉利new 阅读(129) 评论(0) 推荐(0)
摘要: //引用using System.Web.Mvc; public class TrimToDBCModelBinder : DefaultModelBinder { public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindin... 阅读全文
posted @ 2019-01-20 16:39 大吉利new 阅读(228) 评论(1) 推荐(0)
摘要: baseDal类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Linq.Dynamic; using System.Data.Entity.In... 阅读全文
posted @ 2019-01-14 15:28 大吉利new 阅读(248) 评论(0) 推荐(0)