This commit is contained in:
@@ -15,7 +15,7 @@ namespace Ewide.Core.WebApi
|
||||
{
|
||||
protected override void Initialize(HttpControllerContext controllerContext)
|
||||
{
|
||||
base.Initialize(controllerContext);
|
||||
//base.Initialize(controllerContext);
|
||||
}
|
||||
|
||||
protected override ExceptionResult InternalServerError(Exception exception)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Dapper;
|
||||
using Ewide.Core.DTO;
|
||||
using Ewide.Core.DTO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@@ -15,23 +14,7 @@ namespace Ewide.Core.WebApi.Controllers
|
||||
{
|
||||
public IHttpActionResult Login(TestArgs A)
|
||||
{
|
||||
using (var db = new Data.DapperHelper())
|
||||
{
|
||||
var sw = new Stopwatch();
|
||||
sw.Start();
|
||||
db.Sql.Query("SELECT * FROM nbhudb_zzfwzxx").ToList();
|
||||
sw.Stop();
|
||||
var t1 = sw.Elapsed.Milliseconds;
|
||||
sw.Restart();
|
||||
db.Sql.Query("SELECT * FROM nbhudb_zzfwzxx limit 3000,10");
|
||||
sw.Stop();
|
||||
var t2 = sw.Elapsed.Milliseconds;
|
||||
return DisplayJSON(new
|
||||
{
|
||||
t1,
|
||||
t2
|
||||
});
|
||||
}
|
||||
return DisplayJSON("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,10 +261,6 @@
|
||||
<Project>{c7e2ac14-ac20-4552-a5b8-08b650ac8416}</Project>
|
||||
<Name>Ewide.Core.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Ewide.Core.Data\Ewide.Core.Data.csproj">
|
||||
<Project>{b5b46bad-81e3-4df0-83ef-75148236f7ce}</Project>
|
||||
<Name>Ewide.Core.Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Ewide.Core.Service\Ewide.Core.Service.csproj">
|
||||
<Project>{34ae80c2-5c37-4b6c-aac3-f52c06928721}</Project>
|
||||
<Name>Ewide.Core.Service</Name>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
-->
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name="MySqlConnection" connectionString="server=localhost;user id=root;password=a45683926;database=test;persistsecurityinfo=True" />
|
||||
<add name="MySqlConnection" connectionString="server=localhost;user id=root;password=a45683926;database=ewide.core;persistsecurityinfo=True" />
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
|
||||
Reference in New Issue
Block a user