Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f216403
Showing
179 changed files
with
112,479 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ignore thumbnails created by windows | ||
Thumbs.db | ||
#Ignore files build by Visual Studio | ||
*.obj | ||
*.exe | ||
*.pdb | ||
*.user | ||
*.aps | ||
*.pch | ||
*.vspscc | ||
*_i.c | ||
*_p.c | ||
*.ncb | ||
*.suo | ||
*.tlb | ||
*.tlh | ||
*.bak | ||
*.cache | ||
*.ilk | ||
*.log | ||
[Bb]in | ||
[Dd]ebug*/ | ||
*.lib | ||
*.sbr | ||
obj/ | ||
[Rr]elease*/ | ||
_ReSharper*/ | ||
[Tt]est[Rr]esult* | ||
packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
PetaPocoPage Example | ||
Copyright 2012 Todd A. Wood, Wood Consulting Practice, LLC (http://www.woodcp.com). | ||
All rights reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
====================================================================================== | ||
|
||
PetaPoco v4.0.3 - A Tiny ORMish thing for your POCO's. | ||
Copyright � 2011 Topten Software. All Rights Reserved. | ||
|
||
Apache License 2.0 - http://www.toptensoftware.com/petapoco/license | ||
|
||
Special thanks to Rob Conery (@robconery) for original inspiration (ie:Massive) and for | ||
use of Subsonic's T4 templates, Rob Sullivan (@DataChomp) for hard core DBA advice | ||
and Adam Schroder (@schotime) for lots of suggestions, improvements and Oracle support | ||
|
||
====================================================================================== | ||
|
||
Bootstrap v2.0.0 | ||
Copyright 2012 Twitter, Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
====================================================================================== | ||
|
||
jQuery v1.7.1 | ||
Copyright 2010 The jQuery Project | ||
|
||
http://jquery.org/license/ | ||
|
||
You may use any jQuery project under the terms of either the MIT License or the GNU General Public License (GPL) Version 2. | ||
|
||
====================================================================================== | ||
|
||
DataTables 1.9.0 | ||
Copyright 2008-2012 Allan Jardine | ||
|
||
http://datatables.net/license_gpl2 | ||
http://datatables.net/license_bsd | ||
|
||
DataTables is dual licensed under the GPL v2 license or a BSD (3-point) license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Server-Side Paging with PetaPoco and DataTables | ||
=============================================== | ||
|
||
This sample project is meant to demonstrate how to perform server-side paging using PetaPoco and DataTables in an ASP.NET MVC3 solution. | ||
|
||
Example Source Data | ||
------------------- | ||
The SQL Server 2008 Express R2 database has a single *Customer* table containing 4,000 rows of sample data. I ran my tests with 1,000,000 records for the blog associated with this project, but that is too large for a public github repository. | ||
|
||
CREATE TABLE [dbo].[Customer]( | ||
[Id] [int] NOT NULL, | ||
[First] [varchar](20) NOT NULL, | ||
[Last] [varchar](20) NOT NULL, | ||
[Street] [varchar](100) NOT NULL, | ||
[City] [varchar](30) NOT NULL, | ||
[State] [char](2) NOT NULL, | ||
[Zip] [char](5) NOT NULL, | ||
[Email] [varchar](50) NOT NULL, | ||
[Phone] [char](12) NOT NULL, | ||
CONSTRAINT [PK_Customer] PRIMARY KEY CLUSTERED ( [Id] ASC ) | ||
WITH (PAD_INDEX = OFF, | ||
STATISTICS_NORECOMPUTE = OFF, | ||
IGNORE_DUP_KEY = OFF, | ||
ALLOW_ROW_LOCKS = ON, | ||
ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
) ON [PRIMARY]; | ||
|
||
This database table maps to a simple POCO object: | ||
|
||
public class Customer | ||
{ | ||
public int Id { get; set; } | ||
public string First { get; set; } | ||
public string Last { get; set; } | ||
public string Street { get; set; } | ||
public string City { get; set; } | ||
public string State { get; set; } | ||
public string Zip { get; set; } | ||
public string Email { get; set; } | ||
public string Phone { get; set; } | ||
} | ||
|
||
How To Build It? | ||
---------------- | ||
|
||
From a command window run: *build.bat* | ||
|
||
Otherwise, open the Solution file in Visual Studio 2010 and Build | ||
|
||
How Do You View It? | ||
------------------- | ||
|
||
From the Start menu, click Run, then type *inetmgr* to open the Internet Information Services (IIS) MMC snap-in. | ||
|
||
1. Right mouse click on the Default Web Site and Select "Add Application" | ||
2. Enter an Alias for the Site (i.e. *PetaPocoPage*) | ||
3. Enter the Physical Path (i.e. *C:\@WCP\clone\PetaPocoPage\src\PetaPocoPage*) | ||
4. Open a web browser to: http://localhost/PetaPocoPage/ | ||
|
||
Alternatively, Open the PetaPocoPage.sln Solution in Visual Studio 2010 and explore. | ||
|
||
The sample database file provided was created with SQL Server 2008 R2. The SQL needed to create the table and sample data is provided in the src/database directory. | ||
|
||
Thanks | ||
------ | ||
This software is Open Source and check the LICENSE.txt file for more details. | ||
|
||
Todd A. Wood | ||
([@iToddWood](https://twitter.com/#!/iToddWood "Follow me on Twitter")) | ||
Visit [Implement IToddWood](http://www.woodcp.com "Wood Consulting Practice, LLC") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%systemroot%\Microsoft.NET\Framework\V4.0.30319\msbuild /t:clean /v:n /p:Configuration=DEBUG src\PetaPocoPage.sln | ||
%systemroot%\Microsoft.NET\Framework\V4.0.30319\msbuild /t:build /v:n /p:Configuration=DEBUG src\PetaPocoPage.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<solution> | ||
<add key="disableSourceControlIntegration" value="true" /> | ||
</solution> | ||
</configuration> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir> | ||
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath> | ||
<NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath> | ||
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig> | ||
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir> | ||
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir> | ||
|
||
<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config --> | ||
<PackageSources>""</PackageSources> | ||
|
||
<!-- Enable the restore command to run before builds --> | ||
<RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages> | ||
|
||
<!-- Property that enables building a package from a project --> | ||
<BuildPackage Condition="$(BuildPackage) == ''">false</BuildPackage> | ||
|
||
<!-- Commands --> | ||
<RestoreCommand>"$(NuGetExePath)" install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)"</RestoreCommand> | ||
<BuildCommand>"$(NuGetExePath)" pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand> | ||
|
||
<!-- Make the build depend on restore packages --> | ||
<BuildDependsOn Condition="$(RestorePackages) == 'true'"> | ||
RestorePackages; | ||
$(BuildDependsOn); | ||
</BuildDependsOn> | ||
|
||
<!-- Make the build depend on restore packages --> | ||
<BuildDependsOn Condition="$(BuildPackage) == 'true'"> | ||
$(BuildDependsOn); | ||
BuildPackage; | ||
</BuildDependsOn> | ||
</PropertyGroup> | ||
|
||
<Target Name="CheckPrerequisites"> | ||
<!-- Raise an error if we're unable to locate nuget.exe --> | ||
<Error Condition="!Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" /> | ||
</Target> | ||
|
||
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites"> | ||
<Exec Command="$(RestoreCommand)" | ||
LogStandardErrorAsError="true" | ||
Condition="Exists('$(PackagesConfig)')" /> | ||
</Target> | ||
|
||
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites"> | ||
<Exec Command="$(BuildCommand)" | ||
LogStandardErrorAsError="true" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PetaPocoPage", "PetaPocoPage\PetaPocoPage.csproj", "{7466BAFC-E095-4186-BAD1-65084ECA0509}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{EF97B251-2BDF-4032-99CE-EA27F3E4DB00}" | ||
ProjectSection(SolutionItems) = preProject | ||
.nuget\NuGet.exe = .nuget\NuGet.exe | ||
.nuget\NuGet.targets = .nuget\NuGet.targets | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{7466BAFC-E095-4186-BAD1-65084ECA0509}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{7466BAFC-E095-4186-BAD1-65084ECA0509}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{7466BAFC-E095-4186-BAD1-65084ECA0509}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{7466BAFC-E095-4186-BAD1-65084ECA0509}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.