释蝉

博客园 首页 新随笔 联系 订阅 管理

2020年2月17日 #

摘要: public class UserInfoController : ApiController { WMSSOFT db = new WMSSOFT(); public int Add(UserInfo user) { db.UserInfo.Add(user); return db.SaveCha 阅读全文
posted @ 2020-02-17 21:31 释蝉 阅读(105) 评论(0) 推荐(0) 编辑

摘要: public WMSSOFT() : base("WMSSOFTDB") { } public DbSet<UserInfo> UserInfo { get; set; } 阅读全文
posted @ 2020-02-17 21:29 释蝉 阅读(95) 评论(0) 推荐(0) 编辑

2020年1月7日 #

摘要: 后台 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Sy 阅读全文
posted @ 2020-01-07 10:05 释蝉 阅读(104) 评论(0) 推荐(0) 编辑

摘要: 数据库 create database Exam_Week3 GO USE Exam_Week3 GO create table Classs ( ClaID int identity(1001,1), ClassName varchar(100), Counts int ) go insert i 阅读全文
posted @ 2020-01-07 09:55 释蝉 阅读(157) 评论(0) 推荐(0) 编辑

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.IO; using NPOI; using NPOI.HSS 阅读全文
posted @ 2020-01-07 09:43 释蝉 阅读(231) 评论(0) 推荐(1) 编辑

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StudyLinqExam { class Li 阅读全文
posted @ 2020-01-07 09:37 释蝉 阅读(548) 评论(0) 推荐(0) 编辑

摘要: create table City ( Id int identity, Name varchar(30), Pid int , ) MVC显示页面 @{ ViewBag.Title = "Index"; } @using MVC.Models; <h2>Index</h2> <div id="se 阅读全文
posted @ 2020-01-07 09:31 释蝉 阅读(695) 评论(0) 推荐(0) 编辑

摘要: 一、校验数字的表达式数字:^[0-9]*$n位的数字:^\d{2}$至少n位的数字:^\d{n,}$m-n位的数字:^\d{m,n}$零和非零开头的数字:^(0|[1-9][0-9]*)$非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$带1-2位小数的正数 阅读全文
posted @ 2020-01-07 09:26 释蝉 阅读(67) 评论(0) 推荐(0) 编辑

摘要: select * from UserInfo 添加存储过程 if OBJECT_ID('P_add') is not null drop proc P_add go create proc P_add --参数 @UserName varchar(100), @UserPwd varchar(100 阅读全文
posted @ 2020-01-07 09:20 释蝉 阅读(137) 评论(0) 推荐(0) 编辑

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Prog 阅读全文
posted @ 2020-01-07 09:16 释蝉 阅读(80) 评论(0) 推荐(0) 编辑