11 2014 档案
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Runtime.CompilerServices;using System.Text;using System.Threading;namespa...
阅读全文
摘要:url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数...
阅读全文
摘要:1.启用数据迁移: enable-Migrations2.增加一条数据库迁移指令:add-Migrations 必须带上一个版本名称,比如AddUsernamePassword完整的指令:add-Migrations AddUsernamePassword3.更新数据库指令 Update-Datab...
阅读全文
摘要:Entity Framework 6.1-Code First 分类: Entity Framework 2014-04-21 14:56 2034人阅读 评论(0) 收藏 举报entityentity framework框架Code First-代码优先,先创建好领域模型。新建MyDbCon...
阅读全文
摘要:Autofac创建实例的方法总结 1、InstancePerDependency对每一个依赖或每一次调用创建一个新的唯一的实例。这也是默认的创建实例的方式。官方文档解释:Configure the component so that every dependent component or cal...
阅读全文

浙公网安备 33010602011771号