06 2017 档案
查询执行时间
摘要:SELECT(total_elapsed_time / execution_count)/1000 N'平均时间ms',total_elapsed_time/ 1000 N'总花费时间ms',total_worker_time/ 1000 N'所用的CPU总时间ms',total_physical_ 阅读全文
posted @ 2017-06-24 09:55 kingreatwill 阅读(798) 评论(0) 推荐(0)
Autofac in webapi2
摘要:安装包:Autofac.webapi2 注意: install-package autofac.webapi2 (注意:您的项目中如果使用的是webapi2,此处必须为webapi2而不是webapi,否则在运行时将出现“重写成员“Autofac.Integration.WebApi.Autofac 阅读全文
posted @ 2017-06-23 15:36 kingreatwill 阅读(1203) 评论(0) 推荐(0)
Fluent Validation with Web Api 2
摘要:using FluentValidation;using FluentValidation.Attributes;using System;using System.Collections.Generic;using System.Linq;using System.Net;using System 阅读全文
posted @ 2017-06-23 11:10 kingreatwill 阅读(885) 评论(0) 推荐(0)
ABP:在多语句事务内不允许使用 CREATE DATABASE 语句
摘要:一、问题 使用ef codefirst开发,无法创建数据库的问题,如下提示 二、解决方法这是 EF 抛出的异常,只要先创建好数据库就可以了 create database [ZmBlog] 提示: 这个错误是在第一次运行abp出现的,创建数据库后,这时要使用 update-database 进行数据 阅读全文
posted @ 2017-06-21 09:56 kingreatwill 阅读(4815) 评论(2) 推荐(0)