初始化项目
This commit is contained in:
parent
542fa811fd
commit
0f76536cd6
|
|
@ -1,41 +0,0 @@
|
||||||
# Windows image file caches
|
|
||||||
Thumbs.db
|
|
||||||
ehthumbs.db
|
|
||||||
|
|
||||||
# Folder config file
|
|
||||||
Desktop.ini
|
|
||||||
|
|
||||||
# Recycle Bin used on file shares
|
|
||||||
$RECYCLE.BIN/
|
|
||||||
|
|
||||||
# Windows Installer files
|
|
||||||
*.cab
|
|
||||||
*.msi
|
|
||||||
*.msm
|
|
||||||
*.msp
|
|
||||||
|
|
||||||
# =========================
|
|
||||||
# Operating System Files
|
|
||||||
# =========================
|
|
||||||
|
|
||||||
# OSX
|
|
||||||
# =========================
|
|
||||||
|
|
||||||
.DS_Store
|
|
||||||
.AppleDouble
|
|
||||||
.LSOverride
|
|
||||||
|
|
||||||
# Icon must ends with two \r.
|
|
||||||
Icon
|
|
||||||
|
|
||||||
|
|
||||||
# Thumbnails
|
|
||||||
._*
|
|
||||||
|
|
||||||
# Files that might appear on external disk
|
|
||||||
.Spotlight-V100
|
|
||||||
.Trashes
|
|
||||||
|
|
||||||
|
|
||||||
*/bin/*
|
|
||||||
*/obj/*
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.Mvc;
|
|
||||||
using System.Web.Routing;
|
|
||||||
|
|
||||||
namespace OC.MVC
|
|
||||||
{
|
|
||||||
public class RouteConfig
|
|
||||||
{
|
|
||||||
public static void RegisterRoutes(RouteCollection routes)
|
|
||||||
{
|
|
||||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|
||||||
|
|
||||||
routes.MapRoute(
|
|
||||||
name: "Default",
|
|
||||||
url: "{controller}/{action}/{id}",
|
|
||||||
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
using OC.MVC.Utility;
|
|
||||||
using OrmContrast.Entity;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.Mvc;
|
|
||||||
|
|
||||||
namespace OC.MVC.Controllers
|
|
||||||
{
|
|
||||||
public class HomeController : Controller
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// GET: /Home/
|
|
||||||
[PerformanceAction]
|
|
||||||
public ActionResult Index()
|
|
||||||
{
|
|
||||||
//List<OrmContrast.Entity.hotelacc> list = EF();
|
|
||||||
List<OrmContrast.Entity.hotelacc> list = new List<hotelacc>();
|
|
||||||
return View(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
private List<hotelacc> EF()
|
|
||||||
{
|
|
||||||
|
|
||||||
var efStart = DateTime.Now;
|
|
||||||
|
|
||||||
OrmContrast.EF.HotelDAL efdal = new OrmContrast.EF.HotelDAL();
|
|
||||||
|
|
||||||
return efdal.ExecuteList("F", "深圳");
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<%@ Application Codebehind="Global.asax.cs" Inherits="OC.MVC.MvcApplication" Language="C#" %>
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.Mvc;
|
|
||||||
using System.Web.Routing;
|
|
||||||
|
|
||||||
namespace OC.MVC
|
|
||||||
{
|
|
||||||
public class MvcApplication : System.Web.HttpApplication
|
|
||||||
{
|
|
||||||
protected void Application_Start()
|
|
||||||
{
|
|
||||||
AreaRegistration.RegisterAllAreas();
|
|
||||||
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,170 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProductVersion>
|
|
||||||
</ProductVersion>
|
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
|
||||||
<ProjectGuid>{B7748A79-E12A-476F-9FC7-EC37D4870423}</ProjectGuid>
|
|
||||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>OC.MVC</RootNamespace>
|
|
||||||
<AssemblyName>OC.MVC</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<UseIISExpress>true</UseIISExpress>
|
|
||||||
<IISExpressSSLPort />
|
|
||||||
<IISExpressAnonymousAuthentication />
|
|
||||||
<IISExpressWindowsAuthentication />
|
|
||||||
<IISExpressUseClassicPipelineMode />
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="EntityFramework">
|
|
||||||
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="EntityFramework.SqlServer">
|
|
||||||
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="MySql.Data">
|
|
||||||
<HintPath>..\packages\MySql.Data.6.9.3\lib\net45\MySql.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MySql.Data.Entity.EF6">
|
|
||||||
<HintPath>..\packages\MySql.Data.Entity.6.9.3\lib\net45\MySql.Data.Entity.EF6.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.DynamicData" />
|
|
||||||
<Reference Include="System.Web.Entity" />
|
|
||||||
<Reference Include="System.Web.ApplicationServices" />
|
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="System.Web.Extensions" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Drawing" />
|
|
||||||
<Reference Include="System.Web" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="System.Configuration" />
|
|
||||||
<Reference Include="System.Web.Services" />
|
|
||||||
<Reference Include="System.EnterpriseServices" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="System.Web.Razor">
|
|
||||||
<HintPath>..\packages\Microsoft.AspNet.Razor.3.0.0\lib\net45\System.Web.Razor.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.Webpages">
|
|
||||||
<HintPath>..\packages\Microsoft.AspNet.Webpages.3.0.0\lib\net45\System.Web.Webpages.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.Webpages.Deployment">
|
|
||||||
<HintPath>..\packages\Microsoft.AspNet.Webpages.3.0.0\lib\net45\System.Web.Webpages.Deployment.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.Webpages.Razor">
|
|
||||||
<HintPath>..\packages\Microsoft.AspNet.Webpages.3.0.0\lib\net45\System.Web.Webpages.Razor.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.Helpers">
|
|
||||||
<HintPath>..\packages\Microsoft.AspNet.Webpages.3.0.0\lib\net45\System.Web.Helpers.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.Mvc">
|
|
||||||
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.0.0\lib\net45\System.Web.Mvc.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="Global.asax" />
|
|
||||||
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
|
|
||||||
<Content Include="Scripts\jquery-1.10.2.js" />
|
|
||||||
<Content Include="Scripts\jquery-1.10.2.min.js" />
|
|
||||||
<None Include="Scripts\jquery.validate-vsdoc.js" />
|
|
||||||
<Content Include="Scripts\jquery.validate.js" />
|
|
||||||
<Content Include="Scripts\jquery.validate.min.js" />
|
|
||||||
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
|
|
||||||
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
|
||||||
<Content Include="Web.config" />
|
|
||||||
<Content Include="Scripts\jquery-1.10.2.min.map" />
|
|
||||||
<Content Include="Views\Home\Index.cshtml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="App_Start\RouteConfig.cs" />
|
|
||||||
<Compile Include="Controllers\HomeController.cs" />
|
|
||||||
<Compile Include="Global.asax.cs">
|
|
||||||
<DependentUpon>Global.asax</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="Utility\PerformanceActionAttribute.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="Views\web.config" />
|
|
||||||
<Content Include="packages.config" />
|
|
||||||
<None Include="Web.Debug.config">
|
|
||||||
<DependentUpon>Web.config</DependentUpon>
|
|
||||||
</None>
|
|
||||||
<None Include="Web.Release.config">
|
|
||||||
<DependentUpon>Web.config</DependentUpon>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="App_Data\" />
|
|
||||||
<Folder Include="Models\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrmContrast.EF\OrmContrast.EF.csproj">
|
|
||||||
<Project>{43409b78-c73c-454f-b450-34776873402d}</Project>
|
|
||||||
<Name>OrmContrast.EF</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\OrmContrast.Entity\OrmContrast.Entity.csproj">
|
|
||||||
<Project>{e48139e6-e3b2-40f2-a415-5544f318ca82}</Project>
|
|
||||||
<Name>OrmContrast.Entity</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
|
||||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
|
||||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
|
||||||
<ProjectExtensions>
|
|
||||||
<VisualStudio>
|
|
||||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
|
||||||
<WebProjectProperties>
|
|
||||||
<UseIIS>True</UseIIS>
|
|
||||||
<AutoAssignPort>True</AutoAssignPort>
|
|
||||||
<DevelopmentServerPort>1547</DevelopmentServerPort>
|
|
||||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
|
||||||
<IISUrl>http://localhost:1547/</IISUrl>
|
|
||||||
<NTLMAuthentication>False</NTLMAuthentication>
|
|
||||||
<UseCustomServer>False</UseCustomServer>
|
|
||||||
<CustomServerUrl>
|
|
||||||
</CustomServerUrl>
|
|
||||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
|
||||||
</WebProjectProperties>
|
|
||||||
</FlavorProperties>
|
|
||||||
</VisualStudio>
|
|
||||||
</ProjectExtensions>
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// 有关程序集的常规信息通过下列特性集
|
|
||||||
// 控制。更改这些特性值可修改
|
|
||||||
// 与程序集关联的信息。
|
|
||||||
[assembly: AssemblyTitle("OC.MVC")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("OC.MVC")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
|
||||||
// 对 COM 组件不可见。如果需要
|
|
||||||
// 从 COM 访问此程序集中的某个类型,请针对该类型将 ComVisible 特性设置为 true。
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于 typelib 的 ID
|
|
||||||
[assembly: Guid("ce1ffbe6-2931-4d8f-9c04-cf1fc3d49317")]
|
|
||||||
|
|
||||||
// 程序集的版本信息由下列四个值组成:
|
|
||||||
//
|
|
||||||
// 主版本
|
|
||||||
// 次版本
|
|
||||||
// 内部版本号
|
|
||||||
// 修订版本
|
|
||||||
//
|
|
||||||
// 可以指定所有值,也可以使用“修订号”和“内部版本号”的默认值,
|
|
||||||
// 方法是按如下所示使用 "*":
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
|
@ -1,344 +0,0 @@
|
||||||
/* NUGET: BEGIN LICENSE TEXT
|
|
||||||
*
|
|
||||||
* Microsoft grants you the right to use these script files for the sole
|
|
||||||
* purpose of either: (i) interacting through your browser with the Microsoft
|
|
||||||
* website or online service, subject to the applicable licensing or use
|
|
||||||
* terms; or (ii) using the files as included with a Microsoft product subject
|
|
||||||
* to that product's license terms. Microsoft reserves all other rights to the
|
|
||||||
* files not expressly granted by Microsoft, whether by implication, estoppel
|
|
||||||
* or otherwise. Insofar as a script file is dual licensed under GPL,
|
|
||||||
* Microsoft neither took the code under GPL nor distributes it thereunder but
|
|
||||||
* under the terms set out in this paragraph. All notices and licenses
|
|
||||||
* below are for informational purposes only.
|
|
||||||
*
|
|
||||||
* NUGET: END LICENSE TEXT */
|
|
||||||
/*!
|
|
||||||
** Unobtrusive validation support library for jQuery and jQuery Validate
|
|
||||||
** Copyright (C) Microsoft Corporation. All rights reserved.
|
|
||||||
*/
|
|
||||||
/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */
|
|
||||||
/*global document: false, jQuery: false */
|
|
||||||
(function ($) {
|
|
||||||
var $jQval = $.validator,
|
|
||||||
adapters,
|
|
||||||
data_validation = "unobtrusiveValidation";
|
|
||||||
function setValidationValues(options, ruleName, value) {
|
|
||||||
options.rules[ruleName] = value;
|
|
||||||
if (options.message) {
|
|
||||||
options.messages[ruleName] = options.message;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function splitAndTrim(value) {
|
|
||||||
return value.replace(/^\s+|\s+$/g, "").split(/\s*,\s*/g);
|
|
||||||
}
|
|
||||||
function escapeAttributeValue(value) {
|
|
||||||
// As mentioned on http://api.jquery.com/category/selectors/
|
|
||||||
return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\$1");
|
|
||||||
}
|
|
||||||
function getModelPrefix(fieldName) {
|
|
||||||
return fieldName.substr(0, fieldName.lastIndexOf(".") + 1);
|
|
||||||
}
|
|
||||||
function appendModelPrefix(value, prefix) {
|
|
||||||
if (value.indexOf("*.") === 0) {
|
|
||||||
value = value.replace("*.", prefix);
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
function onError(error, inputElement) { // 'this' is the form element
|
|
||||||
var container = $(this).find("[data-valmsg-for='" + escapeAttributeValue(inputElement[0].name) + "']"),
|
|
||||||
replaceAttrValue = container.attr("data-valmsg-replace"),
|
|
||||||
replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) !== false : null;
|
|
||||||
container.removeClass("field-validation-valid").addClass("field-validation-error");
|
|
||||||
error.data("unobtrusiveContainer", container);
|
|
||||||
if (replace) {
|
|
||||||
container.empty();
|
|
||||||
error.removeClass("input-validation-error").appendTo(container);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
error.hide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function onErrors(event, validator) { // 'this' is the form element
|
|
||||||
var container = $(this).find("[data-valmsg-summary=true]"),
|
|
||||||
list = container.find("ul");
|
|
||||||
if (list && list.length && validator.errorList.length) {
|
|
||||||
list.empty();
|
|
||||||
container.addClass("validation-summary-errors").removeClass("validation-summary-valid");
|
|
||||||
$.each(validator.errorList, function () {
|
|
||||||
$("<li />").html(this.message).appendTo(list);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function onSuccess(error) { // 'this' is the form element
|
|
||||||
var container = error.data("unobtrusiveContainer"),
|
|
||||||
replaceAttrValue = container.attr("data-valmsg-replace"),
|
|
||||||
replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) : null;
|
|
||||||
if (container) {
|
|
||||||
container.addClass("field-validation-valid").removeClass("field-validation-error");
|
|
||||||
error.removeData("unobtrusiveContainer");
|
|
||||||
if (replace) {
|
|
||||||
container.empty();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function onReset(event) { // 'this' is the form element
|
|
||||||
var $form = $(this);
|
|
||||||
$form.data("validator").resetForm();
|
|
||||||
$form.find(".validation-summary-errors")
|
|
||||||
.addClass("validation-summary-valid")
|
|
||||||
.removeClass("validation-summary-errors");
|
|
||||||
$form.find(".field-validation-error")
|
|
||||||
.addClass("field-validation-valid")
|
|
||||||
.removeClass("field-validation-error")
|
|
||||||
.removeData("unobtrusiveContainer")
|
|
||||||
.find(">*") // If we were using valmsg-replace, get the underlying error
|
|
||||||
.removeData("unobtrusiveContainer");
|
|
||||||
}
|
|
||||||
function validationInfo(form) {
|
|
||||||
var $form = $(form),
|
|
||||||
result = $form.data(data_validation),
|
|
||||||
onResetProxy = $.proxy(onReset, form);
|
|
||||||
if (!result) {
|
|
||||||
result = {
|
|
||||||
options: { // options structure passed to jQuery Validate's validate() method
|
|
||||||
errorClass: "input-validation-error",
|
|
||||||
errorElement: "span",
|
|
||||||
errorPlacement: $.proxy(onError, form),
|
|
||||||
invalidHandler: $.proxy(onErrors, form),
|
|
||||||
messages: {},
|
|
||||||
rules: {},
|
|
||||||
success: $.proxy(onSuccess, form)
|
|
||||||
},
|
|
||||||
attachValidation: function () {
|
|
||||||
$form
|
|
||||||
.unbind("reset." + data_validation, onResetProxy)
|
|
||||||
.bind("reset." + data_validation, onResetProxy)
|
|
||||||
.validate(this.options);
|
|
||||||
},
|
|
||||||
validate: function () { // a validation function that is called by unobtrusive Ajax
|
|
||||||
$form.validate();
|
|
||||||
return $form.valid();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
$form.data(data_validation, result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
$jQval.unobtrusive = {
|
|
||||||
adapters: [],
|
|
||||||
parseElement: function (element, skipAttach) {
|
|
||||||
/// <summary>
|
|
||||||
/// Parses a single HTML element for unobtrusive validation attributes.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="element" domElement="true">The HTML element to be parsed.</param>
|
|
||||||
/// <param name="skipAttach" type="Boolean">[Optional] true to skip attaching the
|
|
||||||
/// validation to the form. If parsing just this single element, you should specify true.
|
|
||||||
/// If parsing several elements, you should specify false, and manually attach the validation
|
|
||||||
/// to the form when you are finished. The default is false.</param>
|
|
||||||
var $element = $(element),
|
|
||||||
form = $element.parents("form")[0],
|
|
||||||
valInfo, rules, messages;
|
|
||||||
if (!form) { // Cannot do client-side validation without a form
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
valInfo = validationInfo(form);
|
|
||||||
valInfo.options.rules[element.name] = rules = {};
|
|
||||||
valInfo.options.messages[element.name] = messages = {};
|
|
||||||
$.each(this.adapters, function () {
|
|
||||||
var prefix = "data-val-" + this.name,
|
|
||||||
message = $element.attr(prefix),
|
|
||||||
paramValues = {};
|
|
||||||
if (message !== undefined) { // Compare against undefined, because an empty message is legal (and falsy)
|
|
||||||
prefix += "-";
|
|
||||||
$.each(this.params, function () {
|
|
||||||
paramValues[this] = $element.attr(prefix + this);
|
|
||||||
});
|
|
||||||
this.adapt({
|
|
||||||
element: element,
|
|
||||||
form: form,
|
|
||||||
message: message,
|
|
||||||
params: paramValues,
|
|
||||||
rules: rules,
|
|
||||||
messages: messages
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$.extend(rules, { "__dummy__": true });
|
|
||||||
if (!skipAttach) {
|
|
||||||
valInfo.attachValidation();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
parse: function (selector) {
|
|
||||||
/// <summary>
|
|
||||||
/// Parses all the HTML elements in the specified selector. It looks for input elements decorated
|
|
||||||
/// with the [data-val=true] attribute value and enables validation according to the data-val-*
|
|
||||||
/// attribute values.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="selector" type="String">Any valid jQuery selector.</param>
|
|
||||||
var $forms = $(selector)
|
|
||||||
.parents("form")
|
|
||||||
.andSelf()
|
|
||||||
.add($(selector).find("form"))
|
|
||||||
.filter("form");
|
|
||||||
// :input is a psuedoselector provided by jQuery which selects input and input-like elements
|
|
||||||
// combining :input with other selectors significantly decreases performance.
|
|
||||||
$(selector).find(":input").filter("[data-val=true]").each(function () {
|
|
||||||
$jQval.unobtrusive.parseElement(this, true);
|
|
||||||
});
|
|
||||||
$forms.each(function () {
|
|
||||||
var info = validationInfo(this);
|
|
||||||
if (info) {
|
|
||||||
info.attachValidation();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
adapters = $jQval.unobtrusive.adapters;
|
|
||||||
adapters.add = function (adapterName, params, fn) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="params" type="Array" optional="true">[Optional] An array of parameter names (strings) that will
|
|
||||||
/// be extracted from the data-val-nnnn-mmmm HTML attributes (where nnnn is the adapter name, and
|
|
||||||
/// mmmm is the parameter name).</param>
|
|
||||||
/// <param name="fn" type="Function">The function to call, which adapts the values from the HTML
|
|
||||||
/// attributes into jQuery Validate rules and/or messages.</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
if (!fn) { // Called with no params, just a function
|
|
||||||
fn = params;
|
|
||||||
params = [];
|
|
||||||
}
|
|
||||||
this.push({ name: adapterName, params: params, adapt: fn });
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
adapters.addBool = function (adapterName, ruleName) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
|
||||||
/// the jQuery Validate validation rule has no parameter values.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value
|
|
||||||
/// of adapterName will be used instead.</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
return this.add(adapterName, function (options) {
|
|
||||||
setValidationValues(options, ruleName || adapterName, true);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
adapters.addMinMax = function (adapterName, minRuleName, maxRuleName, minMaxRuleName, minAttribute, maxAttribute) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
|
||||||
/// the jQuery Validate validation has three potential rules (one for min-only, one for max-only, and
|
|
||||||
/// one for min-and-max). The HTML parameters are expected to be named -min and -max.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="minRuleName" type="String">The name of the jQuery Validate rule to be used when you only
|
|
||||||
/// have a minimum value.</param>
|
|
||||||
/// <param name="maxRuleName" type="String">The name of the jQuery Validate rule to be used when you only
|
|
||||||
/// have a maximum value.</param>
|
|
||||||
/// <param name="minMaxRuleName" type="String">The name of the jQuery Validate rule to be used when you
|
|
||||||
/// have both a minimum and maximum value.</param>
|
|
||||||
/// <param name="minAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that
|
|
||||||
/// contains the minimum value. The default is "min".</param>
|
|
||||||
/// <param name="maxAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that
|
|
||||||
/// contains the maximum value. The default is "max".</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
return this.add(adapterName, [minAttribute || "min", maxAttribute || "max"], function (options) {
|
|
||||||
var min = options.params.min,
|
|
||||||
max = options.params.max;
|
|
||||||
if (min && max) {
|
|
||||||
setValidationValues(options, minMaxRuleName, [min, max]);
|
|
||||||
}
|
|
||||||
else if (min) {
|
|
||||||
setValidationValues(options, minRuleName, min);
|
|
||||||
}
|
|
||||||
else if (max) {
|
|
||||||
setValidationValues(options, maxRuleName, max);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
adapters.addSingleVal = function (adapterName, attribute, ruleName) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
|
||||||
/// the jQuery Validate validation rule has a single value.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute(where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="attribute" type="String">[Optional] The name of the HTML attribute that contains the value.
|
|
||||||
/// The default is "val".</param>
|
|
||||||
/// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value
|
|
||||||
/// of adapterName will be used instead.</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
return this.add(adapterName, [attribute || "val"], function (options) {
|
|
||||||
setValidationValues(options, ruleName || adapterName, options.params[attribute]);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
$jQval.addMethod("__dummy__", function (value, element, params) {
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
$jQval.addMethod("regex", function (value, element, params) {
|
|
||||||
var match;
|
|
||||||
if (this.optional(element)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
match = new RegExp(params).exec(value);
|
|
||||||
return (match && (match.index === 0) && (match[0].length === value.length));
|
|
||||||
});
|
|
||||||
$jQval.addMethod("nonalphamin", function (value, element, nonalphamin) {
|
|
||||||
var match;
|
|
||||||
if (nonalphamin) {
|
|
||||||
match = value.match(/\W/g);
|
|
||||||
match = match && match.length >= nonalphamin;
|
|
||||||
}
|
|
||||||
return match;
|
|
||||||
});
|
|
||||||
if ($jQval.methods.extension) {
|
|
||||||
adapters.addSingleVal("accept", "mimtype");
|
|
||||||
adapters.addSingleVal("extension", "extension");
|
|
||||||
} else {
|
|
||||||
// for backward compatibility, when the 'extension' validation method does not exist, such as with versions
|
|
||||||
// of JQuery Validation plugin prior to 1.10, we should use the 'accept' method for
|
|
||||||
// validating the extension, and ignore mime-type validations as they are not supported.
|
|
||||||
adapters.addSingleVal("extension", "extension", "accept");
|
|
||||||
}
|
|
||||||
adapters.addSingleVal("regex", "pattern");
|
|
||||||
adapters.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");
|
|
||||||
adapters.addMinMax("length", "minlength", "maxlength", "rangelength").addMinMax("range", "min", "max", "range");
|
|
||||||
adapters.add("equalto", ["other"], function (options) {
|
|
||||||
var prefix = getModelPrefix(options.element.name),
|
|
||||||
other = options.params.other,
|
|
||||||
fullOtherName = appendModelPrefix(other, prefix),
|
|
||||||
element = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(fullOtherName) + "']")[0];
|
|
||||||
setValidationValues(options, "equalTo", element);
|
|
||||||
});
|
|
||||||
adapters.add("required", function (options) {
|
|
||||||
// jQuery Validate equates "required" with "mandatory" for checkbox elements
|
|
||||||
if (options.element.tagName.toUpperCase() !== "INPUT" || options.element.type.toUpperCase() !== "CHECKBOX") {
|
|
||||||
setValidationValues(options, "required", true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
adapters.add("remote", ["url", "type", "additionalfields"], function (options) {
|
|
||||||
var value = {
|
|
||||||
url: options.params.url,
|
|
||||||
type: options.params.type || "GET",
|
|
||||||
data: {}
|
|
||||||
},
|
|
||||||
prefix = getModelPrefix(options.element.name);
|
|
||||||
$.each(splitAndTrim(options.params.additionalfields || options.element.name), function (i, fieldName) {
|
|
||||||
var paramName = appendModelPrefix(fieldName, prefix);
|
|
||||||
value.data[paramName] = function () {
|
|
||||||
return $(options.form).find(":input").filter("[name='" + escapeAttributeValue(paramName) + "']").val();
|
|
||||||
};
|
|
||||||
});
|
|
||||||
setValidationValues(options, "remote", value);
|
|
||||||
});
|
|
||||||
adapters.add("password", ["min", "nonalphamin", "regex"], function (options) {
|
|
||||||
if (options.params.min) {
|
|
||||||
setValidationValues(options, "minlength", options.params.min);
|
|
||||||
}
|
|
||||||
if (options.params.nonalphamin) {
|
|
||||||
setValidationValues(options, "nonalphamin", options.params.nonalphamin);
|
|
||||||
}
|
|
||||||
if (options.params.regex) {
|
|
||||||
setValidationValues(options, "regex", options.params.regex);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$(function () {
|
|
||||||
$jQval.unobtrusive.parse(document);
|
|
||||||
});
|
|
||||||
}(jQuery));
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
/* NUGET: BEGIN LICENSE TEXT
|
|
||||||
*
|
|
||||||
* Microsoft grants you the right to use these script files for the sole
|
|
||||||
* purpose of either: (i) interacting through your browser with the Microsoft
|
|
||||||
* website or online service, subject to the applicable licensing or use
|
|
||||||
* terms; or (ii) using the files as included with a Microsoft product subject
|
|
||||||
* to that product's license terms. Microsoft reserves all other rights to the
|
|
||||||
* files not expressly granted by Microsoft, whether by implication, estoppel
|
|
||||||
* or otherwise. Insofar as a script file is dual licensed under GPL,
|
|
||||||
* Microsoft neither took the code under GPL nor distributes it thereunder but
|
|
||||||
* under the terms set out in this paragraph. All notices and licenses
|
|
||||||
* below are for informational purposes only.
|
|
||||||
*
|
|
||||||
* NUGET: END LICENSE TEXT */
|
|
||||||
/*
|
|
||||||
** Unobtrusive validation support library for jQuery and jQuery Validate
|
|
||||||
** Copyright (C) Microsoft Corporation. All rights reserved.
|
|
||||||
*/
|
|
||||||
(function(a){var d=a.validator,b,e="unobtrusiveValidation";function c(a,b,c){a.rules[b]=c;if(a.message)a.messages[b]=a.message}function j(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(a){return a.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function h(a){return a.substr(0,a.lastIndexOf(".")+1)}function g(a,b){if(a.indexOf("*.")===0)a=a.replace("*.",b);return a}function m(c,e){var b=a(this).find("[data-valmsg-for='"+f(e[0].name)+"']"),d=b.attr("data-valmsg-replace"),g=d?a.parseJSON(d)!==false:null;b.removeClass("field-validation-valid").addClass("field-validation-error");c.data("unobtrusiveContainer",b);if(g){b.empty();c.removeClass("input-validation-error").appendTo(b)}else c.hide()}function l(e,d){var c=a(this).find("[data-valmsg-summary=true]"),b=c.find("ul");if(b&&b.length&&d.errorList.length){b.empty();c.addClass("validation-summary-errors").removeClass("validation-summary-valid");a.each(d.errorList,function(){a("<li />").html(this.message).appendTo(b)})}}function k(d){var b=d.data("unobtrusiveContainer"),c=b.attr("data-valmsg-replace"),e=c?a.parseJSON(c):null;if(b){b.addClass("field-validation-valid").removeClass("field-validation-error");d.removeData("unobtrusiveContainer");e&&b.empty()}}function n(){var b=a(this);b.data("validator").resetForm();b.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");b.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function i(c){var b=a(c),d=b.data(e),f=a.proxy(n,c);if(!d){d={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:a.proxy(m,c),invalidHandler:a.proxy(l,c),messages:{},rules:{},success:a.proxy(k,c)},attachValidation:function(){b.unbind("reset."+e,f).bind("reset."+e,f).validate(this.options)},validate:function(){b.validate();return b.valid()}};b.data(e,d)}return d}d.unobtrusive={adapters:[],parseElement:function(b,h){var d=a(b),f=d.parents("form")[0],c,e,g;if(!f)return;c=i(f);c.options.rules[b.name]=e={};c.options.messages[b.name]=g={};a.each(this.adapters,function(){var c="data-val-"+this.name,i=d.attr(c),h={};if(i!==undefined){c+="-";a.each(this.params,function(){h[this]=d.attr(c+this)});this.adapt({element:b,form:f,message:i,params:h,rules:e,messages:g})}});a.extend(e,{__dummy__:true});!h&&c.attachValidation()},parse:function(b){var c=a(b).parents("form").andSelf().add(a(b).find("form")).filter("form");a(b).find(":input").filter("[data-val=true]").each(function(){d.unobtrusive.parseElement(this,true)});c.each(function(){var a=i(this);a&&a.attachValidation()})}};b=d.unobtrusive.adapters;b.add=function(c,a,b){if(!b){b=a;a=[]}this.push({name:c,params:a,adapt:b});return this};b.addBool=function(a,b){return this.add(a,function(d){c(d,b||a,true)})};b.addMinMax=function(e,g,f,a,d,b){return this.add(e,[d||"min",b||"max"],function(b){var e=b.params.min,d=b.params.max;if(e&&d)c(b,a,[e,d]);else if(e)c(b,g,e);else d&&c(b,f,d)})};b.addSingleVal=function(a,b,d){return this.add(a,[b||"val"],function(e){c(e,d||a,e.params[b])})};d.addMethod("__dummy__",function(){return true});d.addMethod("regex",function(b,c,d){var a;if(this.optional(c))return true;a=(new RegExp(d)).exec(b);return a&&a.index===0&&a[0].length===b.length});d.addMethod("nonalphamin",function(c,d,b){var a;if(b){a=c.match(/\W/g);a=a&&a.length>=b}return a});if(d.methods.extension){b.addSingleVal("accept","mimtype");b.addSingleVal("extension","extension")}else b.addSingleVal("extension","extension","accept");b.addSingleVal("regex","pattern");b.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");b.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");b.add("equalto",["other"],function(b){var i=h(b.element.name),j=b.params.other,d=g(j,i),e=a(b.form).find(":input").filter("[name='"+f(d)+"']")[0];c(b,"equalTo",e)});b.add("required",function(a){(a.element.tagName.toUpperCase()!=="INPUT"||a.element.type.toUpperCase()!=="CHECKBOX")&&c(a,"required",true)});b.add("remote",["url","type","additionalfields"],function(b){var d={url:b.params.url,type:b.params.type||"GET",data:{}},e=h(b.element.name);a.each(j(b.params.additionalfields||b.element.name),function(i,h){var c=g(h,e);d.data[c]=function(){return a(b.form).find(":input").filter("[name='"+f(c)+"']").val()}});c(b,"remote",d)});b.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&c(a,"minlength",a.params.min);a.params.nonalphamin&&c(a,"nonalphamin",a.params.nonalphamin);a.params.regex&&c(a,"regex",a.params.regex)});a(function(){d.unobtrusive.parse(document)})})(jQuery);
|
|
||||||
|
|
@ -1,91 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.Mvc;
|
|
||||||
|
|
||||||
namespace OC.MVC.Utility
|
|
||||||
{
|
|
||||||
public class PerformanceActionAttribute : ActionFilterAttribute
|
|
||||||
{
|
|
||||||
public string Message { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public override void OnActionExecuting(ActionExecutingContext filterContext)
|
|
||||||
{
|
|
||||||
//在Action执行前执行
|
|
||||||
|
|
||||||
GetTimer(filterContext, "action").Start();
|
|
||||||
|
|
||||||
base.OnActionExecuting(filterContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnActionExecuted(ActionExecutedContext filterContext)
|
|
||||||
{
|
|
||||||
//在Action执行之后执行
|
|
||||||
var actionTimer = GetTimer(filterContext, "action");
|
|
||||||
//GetTimer(filterContext, "action").Stop();
|
|
||||||
actionTimer.Stop();
|
|
||||||
base.OnActionExecuted(filterContext);
|
|
||||||
string extime = "页面执行耗时" + actionTimer.ElapsedMilliseconds + "毫秒";
|
|
||||||
filterContext.HttpContext.Response.Headers.Add("extime", extime);
|
|
||||||
//在这里显示给用户的时间只是action的执行时间,如果在view中有执行调用代码的部分,则时间不会
|
|
||||||
//记录在内,所以这里的时间不是很准,但是这个时间可以很自由的被view中的代码调用显示,使得界面可以按照
|
|
||||||
//自己的意愿进行显示
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public override void OnResultExecuting(ResultExecutingContext filterContext)
|
|
||||||
{
|
|
||||||
GetTimer(filterContext, "render").Start();
|
|
||||||
|
|
||||||
base.OnResultExecuting(filterContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnResultExecuted(ResultExecutedContext filterContext)
|
|
||||||
{
|
|
||||||
//在Result执行之后
|
|
||||||
//这里使用response.write输出只能是输出到documnet的最后部分,不能按照想法显示到指定的随意位置
|
|
||||||
//所以这里隐藏显示了。
|
|
||||||
//这这部分使用response.Headers是无效的,因为当执行这部分内容的时候,view已经渲染完了,在这添加到Header
|
|
||||||
//中的值,无法在页面获得
|
|
||||||
var renderTimer = GetTimer(filterContext, "render");
|
|
||||||
renderTimer.Stop();
|
|
||||||
|
|
||||||
var actionTimer = GetTimer(filterContext, "action");
|
|
||||||
var response = filterContext.HttpContext.Response;
|
|
||||||
|
|
||||||
if (response.ContentType == "text/html")
|
|
||||||
{
|
|
||||||
response.Write(
|
|
||||||
String.Format(
|
|
||||||
"<p id='pidtimeelapse' style='display:none;'>Action '{0} :: {1}', Execute: {2}ms, Render: {3}ms.</p>",
|
|
||||||
filterContext.RouteData.Values["controller"],
|
|
||||||
filterContext.RouteData.Values["action"],
|
|
||||||
actionTimer.ElapsedMilliseconds,
|
|
||||||
renderTimer.ElapsedMilliseconds
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
base.OnResultExecuted(filterContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private Stopwatch GetTimer(ControllerContext context, string name)
|
|
||||||
{
|
|
||||||
string key = "__timer__" + name;
|
|
||||||
if (context.HttpContext.Items.Contains(key))
|
|
||||||
{
|
|
||||||
return (Stopwatch)context.HttpContext.Items[key];
|
|
||||||
}
|
|
||||||
|
|
||||||
var result = new Stopwatch();
|
|
||||||
context.HttpContext.Items[key] = result;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
@model List<OrmContrast.Entity.hotelacc>
|
|
||||||
@{
|
|
||||||
Layout = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta name="viewport" content="width=device-width" />
|
|
||||||
<title>Index</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<ul>
|
|
||||||
@*@for (int i = 0; i < 10; i++)
|
|
||||||
{
|
|
||||||
<li>
|
|
||||||
<span>@Model[i].name</span>
|
|
||||||
</li>
|
|
||||||
}*@
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row col-md-12">
|
|
||||||
@Response.Headers.Get("extime")
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
|
||||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
|
||||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
|
||||||
</sectionGroup>
|
|
||||||
</configSections>
|
|
||||||
|
|
||||||
<system.web.webPages.razor>
|
|
||||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
|
||||||
<pages pageBaseType="System.Web.Mvc.WebViewPage">
|
|
||||||
<namespaces>
|
|
||||||
<add namespace="System.Web.Mvc" />
|
|
||||||
<add namespace="System.Web.Mvc.Ajax" />
|
|
||||||
<add namespace="System.Web.Mvc.Html" />
|
|
||||||
<add namespace="System.Web.Routing" />
|
|
||||||
<add namespace="OC.MVC" />
|
|
||||||
</namespaces>
|
|
||||||
</pages>
|
|
||||||
</system.web.webPages.razor>
|
|
||||||
|
|
||||||
<appSettings>
|
|
||||||
<add key="webpages:Enabled" value="false" />
|
|
||||||
</appSettings>
|
|
||||||
|
|
||||||
<system.webServer>
|
|
||||||
<handlers>
|
|
||||||
<remove name="BlockViewHandler"/>
|
|
||||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
|
|
||||||
</handlers>
|
|
||||||
</system.webServer>
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<!-- 有关使用 web.config 转换的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
|
||||||
|
|
||||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
|
||||||
<!--
|
|
||||||
在下例中,“SetAttributes”转换将更改
|
|
||||||
“connectionString”的值,以仅在“Match”定位器
|
|
||||||
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
|
|
||||||
|
|
||||||
<connectionStrings>
|
|
||||||
<add name="MyDB"
|
|
||||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
|
||||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
|
||||||
</connectionStrings>
|
|
||||||
-->
|
|
||||||
<system.web>
|
|
||||||
<!--
|
|
||||||
|
|
||||||
在下例中,“Replace”转换将替换
|
|
||||||
web.config 文件的整个 <customErrors> 节。
|
|
||||||
请注意,由于
|
|
||||||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
|
|
||||||
|
|
||||||
<customErrors defaultRedirect="GenericError.htm"
|
|
||||||
mode="RemoteOnly" xdt:Transform="Replace">
|
|
||||||
<error statusCode="500" redirect="InternalError.htm"/>
|
|
||||||
</customErrors>
|
|
||||||
-->
|
|
||||||
</system.web>
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<!-- 有关使用 web.config 转换的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
|
||||||
|
|
||||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
|
||||||
<!--
|
|
||||||
在下例中,“SetAttributes”转换将更改
|
|
||||||
“connectionString”的值,以仅在“Match”定位器
|
|
||||||
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
|
|
||||||
|
|
||||||
<connectionStrings>
|
|
||||||
<add name="MyDB"
|
|
||||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
|
||||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
|
||||||
</connectionStrings>
|
|
||||||
-->
|
|
||||||
<system.web>
|
|
||||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
|
||||||
<!--
|
|
||||||
|
|
||||||
在下例中,“Replace”转换将替换
|
|
||||||
web.config 文件的整个 <customErrors> 节。
|
|
||||||
请注意,由于
|
|
||||||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
|
|
||||||
|
|
||||||
<customErrors defaultRedirect="GenericError.htm"
|
|
||||||
mode="RemoteOnly" xdt:Transform="Replace">
|
|
||||||
<error statusCode="500" redirect="InternalError.htm"/>
|
|
||||||
</customErrors>
|
|
||||||
-->
|
|
||||||
</system.web>
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
有关如何配置 ASP.NET 应用程序的详细信息,请访问
|
|
||||||
http://go.microsoft.com/fwlink/?LinkId=301880
|
|
||||||
-->
|
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
|
||||||
</configSections>
|
|
||||||
<connectionStrings>
|
|
||||||
<add name="ConnectionString" connectionString="server=localhost;user=root;database=qlpdb;password=" />
|
|
||||||
<add name="MyContext" connectionString="Data Source=localhost;port=3306;Initial Catalog=qlpdb;user id=root;password=;" providerName="MySql.Data.MySqlClient"/>
|
|
||||||
</connectionStrings>
|
|
||||||
<appSettings>
|
|
||||||
<add key="webpages:Version" value="3.0.0.0" />
|
|
||||||
<add key="webpages:Enabled" value="false" />
|
|
||||||
<add key="ClientValidationEnabled" value="true" />
|
|
||||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
|
||||||
</appSettings>
|
|
||||||
<system.web>
|
|
||||||
<compilation debug="true" targetFramework="4.5" />
|
|
||||||
<httpRuntime targetFramework="4.5" />
|
|
||||||
</system.web>
|
|
||||||
<entityFramework>
|
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
||||||
<parameters>
|
|
||||||
<parameter value="v11.0" />
|
|
||||||
</parameters>
|
|
||||||
</defaultConnectionFactory>
|
|
||||||
<providers>
|
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
|
||||||
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
|
|
||||||
</provider></providers>
|
|
||||||
</entityFramework>
|
|
||||||
<system.data>
|
|
||||||
<DbProviderFactories>
|
|
||||||
<remove invariant="MySql.Data.MySqlClient" />
|
|
||||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
|
||||||
</DbProviderFactories>
|
|
||||||
</system.data></configuration>
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="EntityFramework" version="6.1.1" targetFramework="net45" />
|
|
||||||
<package id="jQuery" version="1.10.2" targetFramework="net45" />
|
|
||||||
<package id="jQuery.Validation" version="1.11.1" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.AspNet.Mvc" version="5.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.AspNet.Mvc.zh-Hans" version="5.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.AspNet.Razor" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.AspNet.Razor.zh-Hans" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.AspNet.WebPages" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data" version="6.9.3" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data.Entity" version="6.9.3" targetFramework="net45" />
|
|
||||||
</packages>
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
using Nancy;
|
|
||||||
using OrmContrast.Entity;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OC.NancyWeb
|
|
||||||
{
|
|
||||||
public class HomeModule: NancyModule
|
|
||||||
{
|
|
||||||
public HomeModule()
|
|
||||||
{
|
|
||||||
Get["/"] = parameters => {
|
|
||||||
|
|
||||||
Simple();
|
|
||||||
return "Hello";
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Simple()
|
|
||||||
{
|
|
||||||
System.Console.WriteLine("SimpleStart:" + DateTime.Now.ToString());
|
|
||||||
var startTime = DateTime.Now;
|
|
||||||
|
|
||||||
OrmContrast.SimpleData.HotelDAL simdal = new OrmContrast.SimpleData.HotelDAL();
|
|
||||||
//HotelAccommodationEntity entity = dal.ExecuteEntity(2000003);
|
|
||||||
var simlist = simdal.ExecuteList("F", "深圳");
|
|
||||||
|
|
||||||
if (simlist == null) simlist = new List<hotelacc>();
|
|
||||||
System.Console.WriteLine("Result:" + simlist.Count);
|
|
||||||
|
|
||||||
System.Console.WriteLine("Simple耗时:" + (DateTime.Now - startTime).ToString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,108 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{B68106AB-D602-4E22-8234-3B78E64B1FDA}</ProjectGuid>
|
|
||||||
<OutputType>Exe</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>OC.NancyWeb</RootNamespace>
|
|
||||||
<AssemblyName>OC.NancyWeb</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<StartupObject />
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Microsoft.Owin">
|
|
||||||
<HintPath>..\packages\Microsoft.Owin.3.0.0\lib\net45\Microsoft.Owin.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Microsoft.Owin.Host.HttpListener">
|
|
||||||
<HintPath>..\packages\Microsoft.Owin.Host.HttpListener.3.0.0\lib\net45\Microsoft.Owin.Host.HttpListener.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Microsoft.Owin.Hosting">
|
|
||||||
<HintPath>..\packages\Microsoft.Owin.Hosting.3.0.0\lib\net45\Microsoft.Owin.Hosting.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MySql.Data">
|
|
||||||
<HintPath>..\packages\MySql.Data.6.9.3\lib\net45\MySql.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Nancy">
|
|
||||||
<HintPath>..\packages\Nancy.0.23.2\lib\net40\Nancy.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Nancy.Hosting.Aspnet">
|
|
||||||
<HintPath>..\packages\Nancy.Hosting.Aspnet.0.23.2\lib\net40\Nancy.Hosting.Aspnet.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Nancy.Hosting.Owin">
|
|
||||||
<HintPath>..\packages\Nancy.Hosting.Owin.0.16.1\lib\net40\Nancy.Hosting.Owin.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Nancy.Owin">
|
|
||||||
<HintPath>..\packages\Nancy.Owin.0.23.2\lib\net40\Nancy.Owin.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Owin">
|
|
||||||
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data">
|
|
||||||
<HintPath>..\packages\Simple.Data.Core.0.19.0.0\lib\net40\Simple.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data.Ado">
|
|
||||||
<HintPath>..\packages\Simple.Data.Ado.0.19.0.0\lib\net40\Simple.Data.Ado.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data.Mysql">
|
|
||||||
<HintPath>..\packages\Simple.Data.Mysql.0.19.0.5\lib\net40\Simple.Data.Mysql.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="HomeModule.cs" />
|
|
||||||
<Compile Include="Program.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="Startup.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrmContrast.Entity\OrmContrast.Entity.csproj">
|
|
||||||
<Project>{e48139e6-e3b2-40f2-a415-5544f318ca82}</Project>
|
|
||||||
<Name>OrmContrast.Entity</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\OrmContrast.SimpleData\OrmContrast.SimpleData.csproj">
|
|
||||||
<Project>{77438111-105c-4545-b6d6-3ed40fff6bac}</Project>
|
|
||||||
<Name>OrmContrast.SimpleData</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.Owin.Hosting;
|
|
||||||
|
|
||||||
namespace OC.NancyWeb
|
|
||||||
{
|
|
||||||
class Program
|
|
||||||
{
|
|
||||||
static void Main(string[] args)
|
|
||||||
{
|
|
||||||
var url = "http://localhost:8080";
|
|
||||||
|
|
||||||
using (WebApp.Start<Startup>(url))
|
|
||||||
{
|
|
||||||
Console.WriteLine("Running on {0}", url);
|
|
||||||
Console.WriteLine("Press enter to exit");
|
|
||||||
Console.ReadLine();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// 有关程序集的常规信息通过以下
|
|
||||||
// 特性集控制。更改这些特性值可修改
|
|
||||||
// 与程序集关联的信息。
|
|
||||||
[assembly: AssemblyTitle("OC.Nancy")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("OC.Nancy")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
|
||||||
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
|
||||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|
||||||
[assembly: Guid("f35e886d-5e6c-4afb-bde6-e5095d82b544")]
|
|
||||||
|
|
||||||
// 程序集的版本信息由下面四个值组成:
|
|
||||||
//
|
|
||||||
// 主版本
|
|
||||||
// 次版本
|
|
||||||
// 生成号
|
|
||||||
// 修订号
|
|
||||||
//
|
|
||||||
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
|
||||||
// 方法是按如下所示使用“*”:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
using Owin;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OC.NancyWeb
|
|
||||||
{
|
|
||||||
public class Startup
|
|
||||||
{
|
|
||||||
public void Configuration(IAppBuilder app)
|
|
||||||
{
|
|
||||||
app.UseNancy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<connectionStrings>
|
|
||||||
<add name="ConnectionString" connectionString="server=localhost;user=root;database=qlpdb;password=" />
|
|
||||||
<add name="MyContext" connectionString="Data Source=localhost;port=3306;Initial Catalog=qlpdb;user id=root;password=;" providerName="MySql.Data.MySqlClient"/>
|
|
||||||
</connectionStrings>
|
|
||||||
<system.data>
|
|
||||||
<DbProviderFactories>
|
|
||||||
<remove invariant="MySql.Data.MySqlClient" />
|
|
||||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
|
||||||
</DbProviderFactories>
|
|
||||||
</system.data>
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="Microsoft.Owin" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.Owin.Host.HttpListener" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="Microsoft.Owin.Hosting" version="3.0.0" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data" version="6.9.3" targetFramework="net45" />
|
|
||||||
<package id="Nancy" version="0.23.2" targetFramework="net45" />
|
|
||||||
<package id="Nancy.Hosting.Aspnet" version="0.23.2" targetFramework="net45" />
|
|
||||||
<package id="Nancy.Hosting.Owin" version="0.16.1" targetFramework="net45" />
|
|
||||||
<package id="Nancy.Owin" version="0.23.2" targetFramework="net45" />
|
|
||||||
<package id="Owin" version="1.0" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Ado" version="0.19.0.0" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Core" version="0.19.0.0" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Mysql" version="0.19.0.5" targetFramework="net45" />
|
|
||||||
</packages>
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
|
||||||
</configSections>
|
|
||||||
<startup>
|
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
|
||||||
</startup>
|
|
||||||
<connectionStrings>
|
|
||||||
<add name="ConnectionString" connectionString="server=localhost;user=root;database=qlpdb;password=" />
|
|
||||||
<add name="MyContext" connectionString="Data Source=localhost;port=3306;Initial Catalog=qlpdb;user id=root;password=;" providerName="MySql.Data.MySqlClient"/>
|
|
||||||
</connectionStrings>
|
|
||||||
<system.data>
|
|
||||||
<DbProviderFactories>
|
|
||||||
<remove invariant="MySql.Data.MySqlClient" />
|
|
||||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
|
||||||
|
|
||||||
</DbProviderFactories>
|
|
||||||
</system.data>
|
|
||||||
<entityFramework codeConfigurationType="MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6">
|
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
||||||
<parameters>
|
|
||||||
<parameter value="v11.0" />
|
|
||||||
</parameters>
|
|
||||||
</defaultConnectionFactory>
|
|
||||||
<providers>
|
|
||||||
|
|
||||||
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
|
|
||||||
</provider>
|
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
|
||||||
</providers>
|
|
||||||
</entityFramework>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,105 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{125E0E0B-2AFA-4B07-900C-E77277C4B6D6}</ProjectGuid>
|
|
||||||
<OutputType>Exe</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>OrmContrast.Client</RootNamespace>
|
|
||||||
<AssemblyName>OrmContrast.Client</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="EntityFramework">
|
|
||||||
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="EntityFramework.Extended">
|
|
||||||
<HintPath>..\packages\EntityFramework.Extended.6.1.0.121\lib\net45\EntityFramework.Extended.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="EntityFramework.SqlServer">
|
|
||||||
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MySql.Data">
|
|
||||||
<HintPath>..\packages\MySql.Data.6.9.3\lib\net45\MySql.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MySql.Data.Entity.EF6">
|
|
||||||
<HintPath>..\packages\MySql.Data.Entity.6.9.3\lib\net45\MySql.Data.Entity.EF6.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data, Version=0.19.0.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\packages\Simple.Data.Core.0.19.0.0\lib\net40\Simple.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data.Ado">
|
|
||||||
<HintPath>..\packages\Simple.Data.Ado.0.19.0.0\lib\net40\Simple.Data.Ado.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data.Mysql">
|
|
||||||
<HintPath>..\packages\Simple.Data.Mysql.0.19.0.5\lib\net40\Simple.Data.Mysql.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Program.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="App.config">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</None>
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrmContrast.Dapper\OrmContrast.Dapper.csproj">
|
|
||||||
<Project>{76f7a5ba-1b7d-45b3-9639-d5709f27e002}</Project>
|
|
||||||
<Name>OrmContrast.Dapper</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\OrmContrast.EF\OrmContrast.EF.csproj">
|
|
||||||
<Project>{43409b78-c73c-454f-b450-34776873402d}</Project>
|
|
||||||
<Name>OrmContrast.EF</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\OrmContrast.Entity\OrmContrast.Entity.csproj">
|
|
||||||
<Project>{e48139e6-e3b2-40f2-a415-5544f318ca82}</Project>
|
|
||||||
<Name>OrmContrast.Entity</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\OrmContrast.SimpleData\OrmContrast.SimpleData.csproj">
|
|
||||||
<Project>{77438111-105c-4545-b6d6-3ed40fff6bac}</Project>
|
|
||||||
<Name>OrmContrast.SimpleData</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,83 +0,0 @@
|
||||||
using OrmContrast.Entity;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data.Entity;
|
|
||||||
using System.Data.Entity.Core.Objects;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OrmContrast.Client
|
|
||||||
{
|
|
||||||
class Program
|
|
||||||
{
|
|
||||||
static void Main(string[] args)
|
|
||||||
{
|
|
||||||
System.Console.WriteLine("ORM MYSQL性能测试(200W数据量,Like(%%)查询)");
|
|
||||||
System.Console.WriteLine("------------EF1------------");
|
|
||||||
EF();
|
|
||||||
//System.Console.WriteLine("------------END------------");
|
|
||||||
System.Console.WriteLine("------------EF2------------");
|
|
||||||
EF();
|
|
||||||
//System.Console.WriteLine("------------END------------");
|
|
||||||
|
|
||||||
System.Console.WriteLine("------------Sim1------------");
|
|
||||||
Simple();
|
|
||||||
//System.Console.WriteLine("------------END------------");
|
|
||||||
System.Console.WriteLine("------------Sim2------------");
|
|
||||||
Simple();
|
|
||||||
//System.Console.WriteLine("------------END------------");
|
|
||||||
|
|
||||||
System.Console.WriteLine("------------Dapper1------------");
|
|
||||||
Daa();
|
|
||||||
//System.Console.WriteLine("------------END------------");
|
|
||||||
System.Console.WriteLine("------------Dapper2------------");
|
|
||||||
Daa();
|
|
||||||
//System.Console.WriteLine("------------END------------");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void Daa()
|
|
||||||
{
|
|
||||||
System.Console.WriteLine("DapperStart:" + DateTime.Now.ToString());
|
|
||||||
var daStart = DateTime.Now;
|
|
||||||
DapperOrm.DbHelper db = new DapperOrm.DbHelper();
|
|
||||||
var dalist = db.Get();
|
|
||||||
if (dalist == null) dalist = new List<hotelacc>();
|
|
||||||
System.Console.WriteLine("Result:" + dalist.Count);
|
|
||||||
|
|
||||||
System.Console.WriteLine("EF耗时:" + (DateTime.Now - daStart).ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void EF()
|
|
||||||
{
|
|
||||||
System.Console.WriteLine("EFStart:" + DateTime.Now.ToString());
|
|
||||||
var efStart = DateTime.Now;
|
|
||||||
|
|
||||||
OrmContrast.EF.HotelDAL efdal = new OrmContrast.EF.HotelDAL();
|
|
||||||
//HotelAccommodationEntity entity = dal.ExecuteEntity(2000003);
|
|
||||||
var eflist = efdal.ExecuteList("F", "深圳");
|
|
||||||
if (eflist == null) eflist = new List<hotelacc>();
|
|
||||||
System.Console.WriteLine("Result:" + eflist.Count);
|
|
||||||
|
|
||||||
System.Console.WriteLine("EF耗时:" + (DateTime.Now - efStart).ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void Simple()
|
|
||||||
{
|
|
||||||
System.Console.WriteLine("SimpleStart:" + DateTime.Now.ToString());
|
|
||||||
var startTime = DateTime.Now;
|
|
||||||
|
|
||||||
OrmContrast.SimpleData.HotelDAL simdal = new OrmContrast.SimpleData.HotelDAL();
|
|
||||||
//HotelAccommodationEntity entity = dal.ExecuteEntity(2000003);
|
|
||||||
var simlist = simdal.ExecuteList("F", "深圳");
|
|
||||||
|
|
||||||
if (simlist == null) simlist = new List<hotelacc>();
|
|
||||||
System.Console.WriteLine("Result:" + simlist.Count);
|
|
||||||
|
|
||||||
System.Console.WriteLine("Simple耗时:" + (DateTime.Now - startTime).ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// 有关程序集的常规信息通过以下
|
|
||||||
// 特性集控制。更改这些特性值可修改
|
|
||||||
// 与程序集关联的信息。
|
|
||||||
[assembly: AssemblyTitle("OrmContrast.Client")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("OrmContrast.Client")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
|
||||||
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
|
||||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|
||||||
[assembly: Guid("d210c53e-1597-498a-b042-8cdd39bb3200")]
|
|
||||||
|
|
||||||
// 程序集的版本信息由下面四个值组成:
|
|
||||||
//
|
|
||||||
// 主版本
|
|
||||||
// 次版本
|
|
||||||
// 生成号
|
|
||||||
// 修订号
|
|
||||||
//
|
|
||||||
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
|
||||||
// 方法是按如下所示使用“*”:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="EntityFramework" version="6.1.1" targetFramework="net45" />
|
|
||||||
<package id="EntityFramework.Extended" version="6.1.0.121" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data" version="6.9.3" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data.Entity" version="6.9.3" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Ado" version="0.19.0.0" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Core" version="0.19.0.0" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Mysql" version="0.19.0.5" targetFramework="net45" />
|
|
||||||
</packages>
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
using OrmContrast.Entity;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Dapper;
|
|
||||||
|
|
||||||
namespace OrmContrast.DapperOrm
|
|
||||||
{
|
|
||||||
public class DbHelper
|
|
||||||
{
|
|
||||||
private static readonly string ConnString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
|
|
||||||
public List<hotelacc> Get()
|
|
||||||
{
|
|
||||||
using(MySql.Data.MySqlClient.MySqlConnection conn =new MySql.Data.MySqlClient.MySqlConnection(ConnString))
|
|
||||||
{
|
|
||||||
string sql="SELECT `name`,gender,birthday,mobile,address,email FROM hotelaccs WHERE gender='F' AND address LIKE('%深圳%');";
|
|
||||||
var s = conn.Query<hotelacc>(sql);
|
|
||||||
return s.ToList() ;
|
|
||||||
}
|
|
||||||
//var guid = Guid.NewGuid();
|
|
||||||
//var dog = connection.Query<HotelAccommodationEntity>("select Age = @Age, Id = @Id", new { Age = (int?)null, Id = guid });
|
|
||||||
//SqlContion.Query();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{76F7A5BA-1B7D-45B3-9639-D5709F27E002}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>OrmContrast.DapperOrm</RootNamespace>
|
|
||||||
<AssemblyName>OrmContrast.DapperOrm</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Dapper">
|
|
||||||
<HintPath>..\packages\Dapper.1.36\lib\net45\Dapper.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MySql.Data">
|
|
||||||
<HintPath>..\packages\MySql.Data.6.9.3\lib\net45\MySql.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Configuration" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="DbHelper.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrmContrast.Entity\OrmContrast.Entity.csproj">
|
|
||||||
<Project>{e48139e6-e3b2-40f2-a415-5544f318ca82}</Project>
|
|
||||||
<Name>OrmContrast.Entity</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// 有关程序集的常规信息通过以下
|
|
||||||
// 特性集控制。更改这些特性值可修改
|
|
||||||
// 与程序集关联的信息。
|
|
||||||
[assembly: AssemblyTitle("OrmContrast.Dapper")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("OrmContrast.Dapper")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
|
||||||
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
|
||||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|
||||||
[assembly: Guid("49d25c4a-dd2e-4ed0-9208-3c5bcdcb3643")]
|
|
||||||
|
|
||||||
// 程序集的版本信息由下面四个值组成:
|
|
||||||
//
|
|
||||||
// 主版本
|
|
||||||
// 次版本
|
|
||||||
// 生成号
|
|
||||||
// 修订号
|
|
||||||
//
|
|
||||||
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
|
||||||
// 方法是按如下所示使用“*”:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<system.data>
|
|
||||||
<DbProviderFactories>
|
|
||||||
<remove invariant="MySql.Data.MySqlClient" />
|
|
||||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
|
||||||
</DbProviderFactories>
|
|
||||||
</system.data>
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="Dapper" version="1.36" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data" version="6.9.3" targetFramework="net45" />
|
|
||||||
</packages>
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
|
||||||
</configSections>
|
|
||||||
<entityFramework>
|
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
||||||
<parameters>
|
|
||||||
<parameter value="v11.0" />
|
|
||||||
</parameters>
|
|
||||||
</defaultConnectionFactory>
|
|
||||||
<providers>
|
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
|
||||||
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
|
|
||||||
</provider></providers>
|
|
||||||
</entityFramework>
|
|
||||||
<system.data>
|
|
||||||
<DbProviderFactories>
|
|
||||||
<remove invariant="MySql.Data.MySqlClient" />
|
|
||||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
|
||||||
</DbProviderFactories>
|
|
||||||
</system.data></configuration>
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
using OrmContrast.Entity;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OrmContrast.EF
|
|
||||||
{
|
|
||||||
public class HotelDAL
|
|
||||||
{
|
|
||||||
public List<hotelacc> ExecuteList(string gender, string address)
|
|
||||||
{
|
|
||||||
//Database.SetInitializer(new DropCreateDatabaseAlways<MyContext>());//是否同步数据库
|
|
||||||
var context = new MyContext();
|
|
||||||
|
|
||||||
var query = context.hotelaccs.Where(m => m.gender == gender && m.address.Contains(address));
|
|
||||||
|
|
||||||
//Debug.WriteLine(query.ToString());
|
|
||||||
|
|
||||||
return query.ToList();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
using OrmContrast.Entity;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data.Entity;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OrmContrast.EF
|
|
||||||
{
|
|
||||||
public class MyContext : DbContext
|
|
||||||
{
|
|
||||||
public MyContext()
|
|
||||||
: base("name=MyContext")
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public DbSet<hotelacc> hotelaccs { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{43409B78-C73C-454F-B450-34776873402D}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>OrmContrast.EF</RootNamespace>
|
|
||||||
<AssemblyName>OrmContrast.EF</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="EntityFramework">
|
|
||||||
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="EntityFramework.SqlServer">
|
|
||||||
<HintPath>..\packages\EntityFramework.6.1.1\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MySql.Data">
|
|
||||||
<HintPath>..\packages\MySql.Data.6.9.3\lib\net45\MySql.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MySql.Data.Entity.EF6">
|
|
||||||
<HintPath>..\packages\MySql.Data.Entity.6.9.3\lib\net45\MySql.Data.Entity.EF6.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="HotelDAL.cs" />
|
|
||||||
<Compile Include="MyContext.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="App.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrmContrast.Entity\OrmContrast.Entity.csproj">
|
|
||||||
<Project>{e48139e6-e3b2-40f2-a415-5544f318ca82}</Project>
|
|
||||||
<Name>OrmContrast.Entity</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// 有关程序集的常规信息通过以下
|
|
||||||
// 特性集控制。更改这些特性值可修改
|
|
||||||
// 与程序集关联的信息。
|
|
||||||
[assembly: AssemblyTitle("OrmContrast.EF")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("OrmContrast.EF")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
|
||||||
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
|
||||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|
||||||
[assembly: Guid("da0c6717-a31c-4133-b90f-df8a5d119e4e")]
|
|
||||||
|
|
||||||
// 程序集的版本信息由下面四个值组成:
|
|
||||||
//
|
|
||||||
// 主版本
|
|
||||||
// 次版本
|
|
||||||
// 生成号
|
|
||||||
// 修订号
|
|
||||||
//
|
|
||||||
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
|
||||||
// 方法是按如下所示使用“*”:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="EntityFramework" version="6.1.1" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data" version="6.9.3" targetFramework="net45" />
|
|
||||||
<package id="MySql.Data.Entity" version="6.9.3" targetFramework="net45" />
|
|
||||||
</packages>
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{E48139E6-E3B2-40F2-A415-5544F318CA82}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>OrmContrast.Entity</RootNamespace>
|
|
||||||
<AssemblyName>OrmContrast.Entity</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="hotelacc.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// 有关程序集的常规信息通过以下
|
|
||||||
// 特性集控制。更改这些特性值可修改
|
|
||||||
// 与程序集关联的信息。
|
|
||||||
[assembly: AssemblyTitle("OrmContrast.Entity")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("OrmContrast.Entity")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
|
||||||
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
|
||||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|
||||||
[assembly: Guid("d7e17179-a2eb-493a-9212-e37fcdb9038b")]
|
|
||||||
|
|
||||||
// 程序集的版本信息由下面四个值组成:
|
|
||||||
//
|
|
||||||
// 主版本
|
|
||||||
// 次版本
|
|
||||||
// 生成号
|
|
||||||
// 修订号
|
|
||||||
//
|
|
||||||
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
|
||||||
// 方法是按如下所示使用“*”:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OrmContrast.Entity
|
|
||||||
{
|
|
||||||
public class hotelacc
|
|
||||||
{
|
|
||||||
public long hid { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string cardno { get; set; }
|
|
||||||
public string descriot { get; set; }
|
|
||||||
public string ctftp { get; set; }
|
|
||||||
public string ctfid { get; set; }
|
|
||||||
public string gender { get; set; }
|
|
||||||
public string birthday { get; set; }
|
|
||||||
public string address { get; set; }
|
|
||||||
public string zip { get; set; }
|
|
||||||
public string dirty { get; set; }
|
|
||||||
public string district1 { get; set; }
|
|
||||||
public string district2 { get; set; }
|
|
||||||
public string district3 { get; set; }
|
|
||||||
public string district4 { get; set; }
|
|
||||||
public string district5 { get; set; }
|
|
||||||
public string district6 { get; set; }
|
|
||||||
public string firstnm { get; set; }
|
|
||||||
public string lastnm { get; set; }
|
|
||||||
public string duty { get; set; }
|
|
||||||
public string mobile { get; set; }
|
|
||||||
public string tel { get; set; }
|
|
||||||
public string fax { get; set; }
|
|
||||||
public string email { get; set; }
|
|
||||||
public string nation { get; set; }
|
|
||||||
public string taste { get; set; }
|
|
||||||
public string education { get; set; }
|
|
||||||
public string company { get; set; }
|
|
||||||
public string ctel { get; set; }
|
|
||||||
public string caddress { get; set; }
|
|
||||||
public string czip { get; set; }
|
|
||||||
public string family { get; set; }
|
|
||||||
public string version { get; set; }
|
|
||||||
public string id { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
using Simple.Data;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OrmContrast.SimpleData
|
|
||||||
{
|
|
||||||
public class DbHelper
|
|
||||||
{
|
|
||||||
private static readonly string ConnString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
|
|
||||||
|
|
||||||
public static dynamic DAL
|
|
||||||
{
|
|
||||||
get { return Database.Opener.OpenConnection(ConnString); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
using OrmContrast.Entity;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace OrmContrast.SimpleData
|
|
||||||
{
|
|
||||||
public class HotelDAL
|
|
||||||
{
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 查询所有
|
|
||||||
/// </summary>
|
|
||||||
public List<hotelacc> ExecuteList()
|
|
||||||
{
|
|
||||||
var data = DbHelper.DAL.hotelacc.All();
|
|
||||||
return data.ToList<hotelacc>();
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 主键ID查询
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="memberId"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public hotelacc ExecuteEntity(long id)
|
|
||||||
{
|
|
||||||
var data = DbHelper.DAL.hotelacc.FindByhid(id);
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<hotelacc> ExecuteList(string gender, string address)
|
|
||||||
{
|
|
||||||
var db = DbHelper.DAL;
|
|
||||||
//var data =
|
|
||||||
//var data = db.SQL("SELECT name,gender,ctfid,mobile,address,email FROM hotelacc WHERE gender='F'");
|
|
||||||
//return data;//.ToList<HotelAccommodationEntity>();
|
|
||||||
return db.hotelacc.FindAll(db.hotelacc.address.Like("%" + address + "%") && db.hotelacc.gender == gender);//db.hotelacc.address.Like("%" + address + "%") &&
|
|
||||||
//if (data == null) return null;
|
|
||||||
//return data.ToList<HotelAccommodationEntity>();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<hotelacc> ExecuteListBy(string gender)
|
|
||||||
{
|
|
||||||
var db = DbHelper.DAL.Open();
|
|
||||||
|
|
||||||
//var db= DBHelper.DAL;
|
|
||||||
var sql = @"SELECT name,gender,ctfid,mobile,address,email FROM hotelacc WHERE gender=@gender";
|
|
||||||
var row = db.ToRows(sql, new { gender = "F" });
|
|
||||||
return row;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ExecuteInsert(hotelacc entity)
|
|
||||||
{
|
|
||||||
DbHelper.DAL.hotelacc.Insert(entity);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{77438111-105C-4545-B6D6-3ED40FFF6BAC}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>OrmContrast.SimpleData</RootNamespace>
|
|
||||||
<AssemblyName>OrmContrast.SimpleData</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="MySql.Data">
|
|
||||||
<HintPath>..\packages\MySql.Data.6.9.3\lib\net45\MySql.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data">
|
|
||||||
<HintPath>..\packages\Simple.Data.Core.0.19.0.0\lib\net40\Simple.Data.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data.Ado">
|
|
||||||
<HintPath>..\packages\Simple.Data.Ado.0.19.0.0\lib\net40\Simple.Data.Ado.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Simple.Data.Mysql">
|
|
||||||
<HintPath>..\packages\Simple.Data.Mysql.0.19.0.5\lib\net40\Simple.Data.Mysql.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Configuration" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="DbHelper.cs" />
|
|
||||||
<Compile Include="HotelDAL.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrmContrast.Entity\OrmContrast.Entity.csproj">
|
|
||||||
<Project>{e48139e6-e3b2-40f2-a415-5544f318ca82}</Project>
|
|
||||||
<Name>OrmContrast.Entity</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// 有关程序集的常规信息通过以下
|
|
||||||
// 特性集控制。更改这些特性值可修改
|
|
||||||
// 与程序集关联的信息。
|
|
||||||
[assembly: AssemblyTitle("OrmContrast.SimpleData")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("OrmContrast.SimpleData")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
|
||||||
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
|
||||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|
||||||
[assembly: Guid("ca366b78-153b-40a4-a393-623bb13d443f")]
|
|
||||||
|
|
||||||
// 程序集的版本信息由下面四个值组成:
|
|
||||||
//
|
|
||||||
// 主版本
|
|
||||||
// 次版本
|
|
||||||
// 生成号
|
|
||||||
// 修订号
|
|
||||||
//
|
|
||||||
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
|
||||||
// 方法是按如下所示使用“*”:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<system.data>
|
|
||||||
<DbProviderFactories>
|
|
||||||
<remove invariant="MySql.Data.MySqlClient" />
|
|
||||||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
|
|
||||||
</DbProviderFactories>
|
|
||||||
</system.data>
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="MySql.Data" version="6.9.3" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Ado" version="0.19.0.0" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Core" version="0.19.0.0" targetFramework="net45" />
|
|
||||||
<package id="Simple.Data.Mysql" version="0.19.0.5" targetFramework="net45" />
|
|
||||||
</packages>
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio 2013
|
|
||||||
VisualStudioVersion = 12.0.21005.1
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrmContrast.Client", "OrmContrast.Client\OrmContrast.Client.csproj", "{125E0E0B-2AFA-4B07-900C-E77277C4B6D6}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrmContrast.SimpleData", "OrmContrast.SimpleData\OrmContrast.SimpleData.csproj", "{77438111-105C-4545-B6D6-3ED40FFF6BAC}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrmContrast.Dapper", "OrmContrast.Dapper\OrmContrast.Dapper.csproj", "{76F7A5BA-1B7D-45B3-9639-D5709F27E002}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrmContrast.EF", "OrmContrast.EF\OrmContrast.EF.csproj", "{43409B78-C73C-454F-B450-34776873402D}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrmContrast.Entity", "OrmContrast.Entity\OrmContrast.Entity.csproj", "{E48139E6-E3B2-40F2-A415-5544F318CA82}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OC.MVC", "OC.MVC\OC.MVC.csproj", "{B7748A79-E12A-476F-9FC7-EC37D4870423}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OC.Nancy", "OC.Nancy\OC.Nancy.csproj", "{B68106AB-D602-4E22-8234-3B78E64B1FDA}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{125E0E0B-2AFA-4B07-900C-E77277C4B6D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{125E0E0B-2AFA-4B07-900C-E77277C4B6D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{125E0E0B-2AFA-4B07-900C-E77277C4B6D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{125E0E0B-2AFA-4B07-900C-E77277C4B6D6}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{77438111-105C-4545-B6D6-3ED40FFF6BAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{77438111-105C-4545-B6D6-3ED40FFF6BAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{77438111-105C-4545-B6D6-3ED40FFF6BAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{77438111-105C-4545-B6D6-3ED40FFF6BAC}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{76F7A5BA-1B7D-45B3-9639-D5709F27E002}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{76F7A5BA-1B7D-45B3-9639-D5709F27E002}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{76F7A5BA-1B7D-45B3-9639-D5709F27E002}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{76F7A5BA-1B7D-45B3-9639-D5709F27E002}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{43409B78-C73C-454F-B450-34776873402D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{43409B78-C73C-454F-B450-34776873402D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{43409B78-C73C-454F-B450-34776873402D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{43409B78-C73C-454F-B450-34776873402D}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{E48139E6-E3B2-40F2-A415-5544F318CA82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{E48139E6-E3B2-40F2-A415-5544F318CA82}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{E48139E6-E3B2-40F2-A415-5544F318CA82}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{E48139E6-E3B2-40F2-A415-5544F318CA82}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{B7748A79-E12A-476F-9FC7-EC37D4870423}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B7748A79-E12A-476F-9FC7-EC37D4870423}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B7748A79-E12A-476F-9FC7-EC37D4870423}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{B7748A79-E12A-476F-9FC7-EC37D4870423}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{B68106AB-D602-4E22-8234-3B78E64B1FDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B68106AB-D602-4E22-8234-3B78E64B1FDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B68106AB-D602-4E22-8234-3B78E64B1FDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{B68106AB-D602-4E22-8234-3B78E64B1FDA}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -1,61 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
|
||||||
<metadata>
|
|
||||||
<id>Dapper</id>
|
|
||||||
<version>1.36</version>
|
|
||||||
<title>Dapper dot net</title>
|
|
||||||
<authors>Sam Saffron, Marc Gravell</authors>
|
|
||||||
<owners>Sam Saffron, Marc Gravell</owners>
|
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
|
|
||||||
<projectUrl>https://github.com/StackExchange/dapper-dot-net</projectUrl>
|
|
||||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
|
||||||
<description>A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc..</description>
|
|
||||||
<summary>A high performance Micro-ORM</summary>
|
|
||||||
<releaseNotes>* 1.36 - Fix Issue 192 (expanded parameter naming glitch) and Issue 178 (execute reader now wraps the command/reader pair, to extend the command lifetime;
|
|
||||||
* note that the underlying command/reader are available by casting to IWrappedDataReader)
|
|
||||||
* 1.35 - Fix Issue 151 (Execute should work with ExpandoObject etc); Fix Issue 182 (better support for db-type when using `object` values);
|
|
||||||
* output expressions / callbacks in dynamic args (via Derek); arbitrary number of types in multi-mapping (via James Holwell);
|
|
||||||
* fix DbString/Oracle bug (via Mauro Cerutti); new support for **named positional arguments**
|
|
||||||
* 1.34 - Support for SqlHierarchyId (core)
|
|
||||||
* 1.33 - Support for SqlGeometry (core) and DbGeometry (EF)
|
|
||||||
* 1.32 - Support for SqlGeography in core library
|
|
||||||
* 1.31 - Fix issue with error message when there is a column/type mismatch
|
|
||||||
* 1.30 - Better async cancellation
|
|
||||||
* 1.29 - Make underscore name matching optional (opt-in) - this can be a breaking change for some people
|
|
||||||
* 1.28 - Much better numeric type conversion; fix for large oracle strings; map Foo_Bar to FooBar (etc); ExecuteScalar added; stability fixes
|
|
||||||
* 1.27 - Fixes for type-handler parse; ensure type-handlers get last dibs on configuring parameters
|
|
||||||
* 1.26 - New type handler API for extension support
|
|
||||||
* 1.25 - Command recycling and disposing during pipelined async multi-exec; enable pipeline (via sync-over-async) for sync API
|
|
||||||
* 1.24 - Implement pipelined async multi-exec, when flag is specified (only - requires MARS etc)
|
|
||||||
* 1.23 - Improved support for optimize hints (@foo unknown) with list expansions
|
|
||||||
* 1.22 - Literal support now extends to enumerable types (for "in" etc usage); move to command-flags model for "buffered" etc
|
|
||||||
* 1.21 - Limit literals to numeric types; for enums, use value not name
|
|
||||||
* 1.20 - Improved async support in .NET 4.5 (lots of contributions from users here, including JasonPunyon, kwaclaw, tugberkugurlu, and mgravell);
|
|
||||||
* Now supports literal replacement via {=foo}; new ExecuteReader method (via JJoe2); support for ICustomQueryParameter
|
|
||||||
* dictionary members (via Blackjacketmack); culture sensitivity (via tms); fixes for time parameters (via olegKoshmeliuk);
|
|
||||||
* and a range of additional tweaks, twiddles, fixes and improvements.
|
|
||||||
* 1.13 - Added support for Table Valued Parameters as part of anonymous objects
|
|
||||||
* - Added support for async
|
|
||||||
* - Added support for sharing strategies between databases
|
|
||||||
* - Rewrote dynamic implementation
|
|
||||||
* 1.12.1 - Minor deploy glitch (should now include intellisense files!)
|
|
||||||
* 1.12 - Better automatic type-mapping (int vs long, float vs double, etc)
|
|
||||||
* Fixed: bug with indexer properties
|
|
||||||
* 1.11 - Custom type-map support
|
|
||||||
* 1.10 - Fixed: error-handling could lose original exception if reader closed
|
|
||||||
* 1.9 - Added: better schema change detection
|
|
||||||
* Fixed: enum support for T in Query-of-T
|
|
||||||
* Added: dictionary support for parameters
|
|
||||||
* 1.8 - Started release notes
|
|
||||||
* Important: Dapper is now shipping as a DLL which will work on .net 3.5 or .net 4.0,
|
|
||||||
* This improves the debugging experience as you no longer break into dapper when SQL fails.
|
|
||||||
* Added: ParameterNames on DynamicParameters</releaseNotes>
|
|
||||||
<tags>orm sql micro-orm</tags>
|
|
||||||
<frameworkAssemblies>
|
|
||||||
<frameworkAssembly assemblyName="System.Core" targetFramework="" />
|
|
||||||
<frameworkAssembly assemblyName="System" targetFramework="" />
|
|
||||||
<frameworkAssembly assemblyName="System.Data" targetFramework="" />
|
|
||||||
<frameworkAssembly assemblyName="Microsoft.CSharp" targetFramework=".NETFramework4.0-Client, .NETFramework4.0" />
|
|
||||||
</frameworkAssemblies>
|
|
||||||
</metadata>
|
|
||||||
</package>
|
|
||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
|
@ -1,21 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
|
||||||
<metadata>
|
|
||||||
<id>EntityFramework</id>
|
|
||||||
<version>6.1.1</version>
|
|
||||||
<title>EntityFramework</title>
|
|
||||||
<authors>Microsoft</authors>
|
|
||||||
<owners>Microsoft</owners>
|
|
||||||
<licenseUrl>http://go.microsoft.com/fwlink/?LinkID=320539</licenseUrl>
|
|
||||||
<projectUrl>http://go.microsoft.com/fwlink/?LinkID=320540</projectUrl>
|
|
||||||
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=386613</iconUrl>
|
|
||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
|
||||||
<description>Entity Framework is Microsoft's recommended data access technology for new applications.</description>
|
|
||||||
<summary>Entity Framework is Microsoft's recommended data access technology for new applications.</summary>
|
|
||||||
<language>en-US</language>
|
|
||||||
<tags>Microsoft EF Database Data O/RM ADO.NET</tags>
|
|
||||||
<frameworkAssemblies>
|
|
||||||
<frameworkAssembly assemblyName="System.ComponentModel.DataAnnotations" targetFramework="" />
|
|
||||||
</frameworkAssemblies>
|
|
||||||
</metadata>
|
|
||||||
</package>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
||||||
</configSections>
|
|
||||||
</configuration>
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
||||||
</configSections>
|
|
||||||
</configuration>
|
|
||||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
|
@ -1,48 +0,0 @@
|
||||||
TOPIC
|
|
||||||
about_EntityFramework
|
|
||||||
|
|
||||||
SHORT DESCRIPTION
|
|
||||||
Provides information about Entity Framework commands.
|
|
||||||
|
|
||||||
LONG DESCRIPTION
|
|
||||||
This topic describes the Entity Framework commands. Entity Framework is
|
|
||||||
Microsoft's recommended data access technology for new applications.
|
|
||||||
|
|
||||||
The following Entity Framework cmdlets are used with Entity Framework
|
|
||||||
Migrations.
|
|
||||||
|
|
||||||
Cmdlet Description
|
|
||||||
----------------- ---------------------------------------------------
|
|
||||||
Enable-Migrations Enables Code First Migrations in a project.
|
|
||||||
|
|
||||||
Add-Migration Scaffolds a migration script for any pending model
|
|
||||||
changes.
|
|
||||||
|
|
||||||
Update-Database Applies any pending migrations to the database.
|
|
||||||
|
|
||||||
Get-Migrations Displays the migrations that have been applied to
|
|
||||||
the target database.
|
|
||||||
|
|
||||||
The following Entity Framework cmdlets are used by NuGet packages that
|
|
||||||
install Entity Framework providers. These commands are not usually used as
|
|
||||||
part of normal application development.
|
|
||||||
|
|
||||||
Cmdlet Description
|
|
||||||
------------------------------ ---------------------------------------
|
|
||||||
Add-EFProvider Adds or updates an Entity Framework
|
|
||||||
provider entry in the project config
|
|
||||||
file.
|
|
||||||
|
|
||||||
Add-EFDefaultConnectionFactory Adds or updates an Entity Framework
|
|
||||||
default connection factory in the
|
|
||||||
project config file.
|
|
||||||
|
|
||||||
Initialize-EFConfiguration Initializes the Entity Framework
|
|
||||||
section in the project config file and
|
|
||||||
sets defaults.
|
|
||||||
|
|
||||||
SEE ALSO
|
|
||||||
Enable-Migrations
|
|
||||||
Add-Migration
|
|
||||||
Update-Database
|
|
||||||
Get-Migrations
|
|
||||||
|
|
@ -1,155 +0,0 @@
|
||||||
param($installPath, $toolsPath, $package, $project)
|
|
||||||
|
|
||||||
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
|
|
||||||
{
|
|
||||||
Remove-Module EntityFramework
|
|
||||||
}
|
|
||||||
|
|
||||||
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
|
|
||||||
|
|
||||||
# SIG # Begin signature block
|
|
||||||
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
|
|
||||||
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
|
|
||||||
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUjXj4E03IfImYfKMB4CA3DfY0
|
|
||||||
# KZmgghWCMIIEwzCCA6ugAwIBAgITMwAAAEyh6E3MtHR7OwAAAAAATDANBgkqhkiG
|
|
||||||
# 9w0BAQUFADB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G
|
|
||||||
# A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEw
|
|
||||||
# HwYDVQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EwHhcNMTMxMTExMjIxMTMx
|
|
||||||
# WhcNMTUwMjExMjIxMTMxWjCBszELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp
|
|
||||||
# bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw
|
|
||||||
# b3JhdGlvbjENMAsGA1UECxMETU9QUjEnMCUGA1UECxMebkNpcGhlciBEU0UgRVNO
|
|
||||||
# OkMwRjQtMzA4Ni1ERUY4MSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBT
|
|
||||||
# ZXJ2aW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oVIby2f64Fg8zz+qPM3TYJrTuC/7pT5ZRfxdc8T
|
|
||||||
# 2LovKMOMLj4TJBQkigBhgxtLIXz2kQOzaiM3eezYVrjji2Sim4EijFzFDW05DY7Y
|
|
||||||
# pGbpXTPOpFOGYAFwGwdFw0JiD9lc+PgTd+0iPxfMsp98R0uS7/fcQvrLliRWN5HW
|
|
||||||
# eUuUnfa/ZzFzQDb91xO1Im7Ds5Vq6LhQ+c8pWkElTv5HLIljXBcACbYeAUbJCJqy
|
|
||||||
# oLedtt6C3tuzxxq4MqxfZk92CnU=
|
|
||||||
# SIG # End signature block
|
|
||||||
|
|
@ -1,154 +0,0 @@
|
||||||
param($installPath, $toolsPath, $package, $project)
|
|
||||||
|
|
||||||
Initialize-EFConfiguration $project
|
|
||||||
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
|
|
||||||
|
|
||||||
Write-Host
|
|
||||||
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework commands."
|
|
||||||
|
|
||||||
# SIG # Begin signature block
|
|
||||||
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
|
|
||||||
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
|
|
||||||
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUt8mwpdjiFmu2B4KBh+vEeQ+V
|
|
||||||
# VnSgghWCMIIEwzCCA6ugAwIBAgITMwAAAEyh6E3MtHR7OwAAAAAATDANBgkqhkiG
|
|
||||||
# 9w0BAQUFADB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G
|
|
||||||
# A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEw
|
|
||||||
# HwYDVQQDExhNaWNyb3NvZnQgVGltZS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dCBDb2RlIFNpZ25pbmcgUENBAhMzAAAAymzVMhI1xOFV
|
|
||||||
# AAEAAADKMAkGBSsOAwIaBQCggeEwGQYJKoZIhvcNAQkDMQwGCisGAQQBgjcCAQQw
|
|
||||||
# HAYKKwYBBAGCNwIBCzEOMAwGCisGAQQBgjcCARUwIwYJKoZIhvcNAQkEMRYEFJiz
|
|
||||||
# f4JawBv4s6ihwSKoeZTRDcAvMIGABgorBgEEAYI3AgEMMXIwcKBSgFAARQBuAHQA
|
|
||||||
# aQB0AHkAIABGAHIAYQBtAGUAdwBvAHIAawAgAFQAbwBvAGwAcwAgAGYAbwByACAA
|
|
||||||
# VgBpAHMAdQBhAGwAIABTAHQAdQBkAGkAb6EagBhodHRwOi8vbXNkbi5jb20vZGF0
|
|
||||||
# YS9lZiAwDQYJKoZIhvcNAQEBBQAEggEAFy52TLBcmieavvWab1nArTK05hXGrx+n
|
|
||||||
# qn/Aq3b4WpCD3Kotg6ZcmMDgFoBR3CCxOi8DzXowNjnX4aGMnUgGR8oczgU0DVRN
|
|
||||||
# 6e9fIaYthchMgS/bDZEyPZ39H2mSuNPkM4rBiB5K0CkQQgjwEKYCRImwSlnBu0jY
|
|
||||||
# nH1J/jF0RnYFZ1uxmY8jpWA/km5kj3fSTwC8CPn24I6H520Cka0CiBGl6iNLRAK+
|
|
||||||
# rOokn9Ymw9dbttXINl8WpNCBIR6XBAgBhlyJa6JmTceoXZvIGu1h8KVCWwDv+lKT
|
|
||||||
# uRLEKWdVQ5cgNth3csHOUQnBC5FN6TxY9dqozIwcjNUwwOOsqrEW5KGCAigwggIk
|
|
||||||
# BgkqhkiG9w0BCQYxggIVMIICEQIBATCBjjB3MQswCQYDVQQGEwJVUzETMBEGA1UE
|
|
||||||
# CBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9z
|
|
||||||
# b2Z0IENvcnBvcmF0aW9uMSEwHwYDVQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQ
|
|
||||||
# Q0ECEzMAAABMoehNzLR0ezsAAAAAAEwwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJ
|
|
||||||
# AzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDYxMTAwMjcxNFowIwYJ
|
|
||||||
# KoZIhvcNAQkEMRYEFAMe6WzqHaLPBigGoS/gaG25ANUpMA0GCSqGSIb3DQEBBQUA
|
|
||||||
# BIIBAIjoRfbV4BAKmZTIqQHK8YC2BV3xMUlgk7Dg1n4SQ8bHBeqzvHMF7hJL81zJ
|
|
||||||
# kmhpg3aH/zDIDRy0yEf0OjvOovaCvlSUq1HaEPAXCF9tNPYSCKY7kMFyoucvXMFV
|
|
||||||
# /CIXDZ/CIVecqDuRwwJcVwpX7woBndS6L+ZZ7fD3S5Q+R7OZaLmle0bDLeN7IJoC
|
|
||||||
# X3wTU7AfaVUvFJz7GYYa5lC7D3+l4WUiCUJ4uZX08UEPiZrTutPFsFGFH734/OZX
|
|
||||||
# yy5Fb1qWTDf/5jhxvtvBI3rLLYYgOZPSZiYqYUK18fIMTPEFCgYaLl0AfcWo2VrN
|
|
||||||
# mvqM2HmY0j/IAP02KuuWVK6zWCA=
|
|
||||||
# SIG # End signature block
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
|
||||||
<metadata>
|
|
||||||
<id>EntityFramework.Extended</id>
|
|
||||||
<version>6.1.0.121</version>
|
|
||||||
<authors>LoreSoft</authors>
|
|
||||||
<owners>LoreSoft</owners>
|
|
||||||
<licenseUrl>https://github.com/loresoft/EntityFramework.Extended</licenseUrl>
|
|
||||||
<projectUrl>https://github.com/loresoft/EntityFramework.Extended</projectUrl>
|
|
||||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
|
||||||
<description>A library that extends the functionality of Entity Framework by adding batch update, future queries and audit logs.</description>
|
|
||||||
<summary>Entity Framework extensions library.</summary>
|
|
||||||
<copyright>Copyright (c) 2014, LoreSoft</copyright>
|
|
||||||
<language>en-US</language>
|
|
||||||
<tags>EntityFramework</tags>
|
|
||||||
<dependencies>
|
|
||||||
<dependency id="EntityFramework" version="6.1.0" />
|
|
||||||
</dependencies>
|
|
||||||
<frameworkAssemblies>
|
|
||||||
<frameworkAssembly assemblyName="System.ComponentModel.DataAnnotations" targetFramework="" />
|
|
||||||
</frameworkAssemblies>
|
|
||||||
</metadata>
|
|
||||||
</package>
|
|
||||||
Binary file not shown.
|
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
||||||
</configSections>
|
|
||||||
<entityFramework>
|
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
||||||
<parameters>
|
|
||||||
<parameter value="v11.0" />
|
|
||||||
</parameters>
|
|
||||||
</defaultConnectionFactory>
|
|
||||||
<providers>
|
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
|
||||||
</providers>
|
|
||||||
</entityFramework>
|
|
||||||
</configuration>
|
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<configSections>
|
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
||||||
</configSections>
|
|
||||||
<entityFramework>
|
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
||||||
<parameters>
|
|
||||||
<parameter value="v11.0" />
|
|
||||||
</parameters>
|
|
||||||
</defaultConnectionFactory>
|
|
||||||
<providers>
|
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
|
||||||
</providers>
|
|
||||||
</entityFramework>
|
|
||||||
</configuration>
|
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
|
@ -1,22 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
|
||||||
<metadata>
|
|
||||||
<id>Microsoft.AspNet.Mvc</id>
|
|
||||||
<version>5.0.0</version>
|
|
||||||
<title>Microsoft ASP.NET MVC</title>
|
|
||||||
<authors>Microsoft</authors>
|
|
||||||
<owners>Microsoft</owners>
|
|
||||||
<licenseUrl>http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm</licenseUrl>
|
|
||||||
<projectUrl>http://www.asp.net/mvc</projectUrl>
|
|
||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
|
||||||
<description>This package contains the runtime assemblies for ASP.NET MVC. ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup.</description>
|
|
||||||
<summary>This package contains the runtime assemblies for ASP.NET MVC.</summary>
|
|
||||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
|
||||||
<language>en-US</language>
|
|
||||||
<tags>Microsoft AspNet Mvc AspNetMvc</tags>
|
|
||||||
<dependencies>
|
|
||||||
<dependency id="Microsoft.AspNet.WebPages" version="3.0.0" />
|
|
||||||
<dependency id="Microsoft.AspNet.Razor" version="3.0.0" />
|
|
||||||
</dependencies>
|
|
||||||
</metadata>
|
|
||||||
</package>
|
|
||||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue