- 博客(15)
- 收藏
- 关注
原创 红包方法
控制台应用using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using ServiceStack.Redis;namespace testRedis{class Program{static void Main(string[] args){double totalAmount = 100;int num =
2020-06-30 19:56:17 297
原创 EF迁移创库+使用
using System;using System.Collections.Generic;using System.Data.Entity;using System.Linq;using System.Reflection;using System.Web;namespace G6.EFCode.DALS{public class EFHelper where T:class,new(){MyContext db = new MyContext();//实例化一个上下文对象///
2020-06-30 19:49:58 171
原创 分配权限前台ajax显示
@{Layout = null;}<meta name="viewport" content="width=device-width" /><title>Main</title><link href="~/Content/bootstrap.css" rel="stylesheet" /><script src="~/Content/jquery-3.3.1.js"></script><style>
2020-06-29 20:10:54 121
原创 分配权限MVC DAL+控制器
using System;using System.Collections.Generic;using System.Linq;using System.Web;using Day13ExamMVC.Models;namespace Day13ExamMVC.DAL{public class UserDAL{/// /// 列表显示/// /// public List ShowUserRole(){string sql = @“select u.UId,UName,RName
2020-06-29 20:06:16 116
原创 验证码
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>图片验证码</title><canvas id="canvas" width="120" height="40"><.
2020-06-26 20:10:11 141
原创 二维码,条形码,显示页面
@{Layout = null;}<meta name="viewport" content="width=device-width" /><title>Index</title><script src="~/Scripts/jquery-3.4.1.min.js"></script><script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
2020-06-26 18:58:24 126
原创 二维码,条形码MVC控制器
using System;using System.Collections.Generic;using System.Drawing;using System.IO;using System.Linq;using System.Web;using System.Web.Mvc;namespace G6.MVC.TwoCode.Controllers{public class CodeController : Controller{// GET: Codepublic ActionRe
2020-06-26 18:56:53 206
原创 发布邮件MVC
<meta charset="utf-8" /><link href="bootstrap-3.3.7/css/bootstrap.css" rel="stylesheet" /><script src="Scripts/jquery-3.4.1.min.js"></script><script src="Scripts/jquery.unobtrusive-ajax.min.js"></script><script&g.
2020-06-26 18:50:40 135
原创 发送邮件API控制器
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Threading.Tasks;using System.Web.Http;using G6.WeekTwo.Models;namespace G6.WeekTwo.Controllers{public class MailController : ApiCo
2020-06-26 18:42:36 173
原创 MVC反射
//G3.IDAL层using System;using System.Collections.Generic;using G6.Model;namespace G3.IDAL{public interface IUserDAL{int AddUser(T model) where T:class,new(); List<T> GetList<T>() where T : class, new();}}//DBConnectionusing Syst
2020-06-17 08:18:23 263
原创 存储过程分页
create proc PageShow(@where nvarchar(max),@pageindex int,@pagesize int,@totalpage int output,@totalNum int output)asbegindeclare @totalsql nvarchar(max)set @totalsql=‘select @totalNum=COUNT() from(select ROW_NUMBER() over(order by CId) num , f
2020-06-09 15:55:39 122
原创 MVC 显示
<script> var currentPage = 1; var totalPage = 1; $(function () { show(1); }); function show(page) { var obj = {}; obj.pageSize = 3; obj.currentPage = page; obj.yhfs = $("input[name='yhfs']:
2020-06-09 15:53:12 218
原创 MVC Ajax添加
<script> function Add() { var obj = {}; obj.mc = $("#mc").val(); obj.Fenlei = $("#fenlei").val(); obj.sytj = $("#sytj").val(); obj.sysjCheck = $("input[name='xz']:checked").val(); obj.sysjAdd = $("
2020-06-09 15:33:58 251
原创 API Linq分页显示,添加
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Web.Http;using DAL;using Models;namespace _1711B.Shopping.Controllers{public class ShoppingController : ApiController{ShoppingDA
2020-06-09 15:05:06 304
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人