摘要:
<h2>Detail</h2> <table> <tr> <td> <img id="img1" src="" alt="" width="300" height="400"/> </td> <td> <table> <tr> <td id="td1"> </td> </tr> <tr> <td i 阅读全文
摘要:
public ActionResult Index() { return View(); } public ActionResult About() { ViewBag.Message = "Your application description page."; return View(); } 阅读全文
摘要:
/// <summary> /// 登录 /// </summary> /// <param name="ACount"></param> /// <param name="Pwd"></param> /// <returns></returns> [HttpGet] public UsersInf 阅读全文
摘要:
input id="Button1" type="button" value="查看我的收藏商品" onclick="location.href='/ShangPin/AddShow'" /><input id="Button1" type="button" value="查看我的收藏店铺" onc 阅读全文
摘要:
public class ChanPinController : ApiController { Dal dal = new Dal(); //产品表的获取 [HttpGet] [Route("api/ChanPin")] public List<ChanPinModel> GetChanPin() 阅读全文
摘要:
连接字符串 建实体数据模型name同名 CodeFirst 数据库迁移(代码生成数据库)数据库迁移1.enable-migrations --启用数据库迁移2.add-migration -- 添加数据库迁移3.update-database --更新数据库 4.ADD-MIGRATION +版本号 阅读全文
摘要:
create database ceshigouse ceshi create table Users( Id int primary key identity, Uname varchar(20))insert Users values('张三'),('李四') select * from Use 阅读全文
摘要:
数据访问层 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dapper; using DataMode 阅读全文
摘要:
BEGIN TRY --开始捕捉异常BEGIN TRANSACTION --开始 事务insert into DictInfoes values(' 1111',0) --插入数据select 1/0--除0insert into DictInfoes values(' 1111',0) --插入数 阅读全文
摘要:
--登录 登录 /// </summary> /// <param name="uid"></param> /// <param name="pwd"></param> /// <returns></returns> public List<Admin> DengLu(string uid,stri 阅读全文