Skip to content

Commit

Permalink
add XSD nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Mar 21, 2019
1 parent 381e361 commit 0275ead
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 2 deletions.
10 changes: 8 additions & 2 deletions SmartSql.sln
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
LICENSE = LICENSE
README.md = README.md
SmartSql.sln.DotSettings.user = SmartSql.sln.DotSettings.user
doc\SmartSqlMap-v4.xsd = doc\SmartSqlMap-v4.xsd
doc\SmartSqlMapConfig-v4.xsd = doc\SmartSqlMapConfig-v4.xsd
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{6DDF0BFB-B7B7-4ABE-8346-E99D1E01670C}"
Expand All @@ -65,6 +63,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmartSql.Sample.AspNetCore"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmartSql.Options", "src\SmartSql.Options\SmartSql.Options.csproj", "{79F47225-6996-44A0-82BF-F82E9ECBFEFD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Schema", "Schema", "{2F107069-A721-4EC2-84CC-C7E0940A6124}"
ProjectSection(SolutionItems) = preProject
doc\Schema\SmartSql.Schema.nuspec = doc\Schema\SmartSql.Schema.nuspec
doc\Schema\SmartSqlMap-v4.xsd = doc\Schema\SmartSqlMap-v4.xsd
doc\Schema\SmartSqlMapConfig-v4.xsd = doc\Schema\SmartSqlMapConfig-v4.xsd
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -160,6 +165,7 @@ Global
{B3F8B542-78C2-4C0A-B72F-944038955D07} = {6DDF0BFB-B7B7-4ABE-8346-E99D1E01670C}
{71B93091-C0FD-4D1A-B383-A8C616BCD0FB} = {E0AF1B38-B6B1-471B-9493-B84B066109F6}
{79F47225-6996-44A0-82BF-F82E9ECBFEFD} = {4F0EEDDD-0300-4F32-A8E8-D4121AE83F23}
{2F107069-A721-4EC2-84CC-C7E0940A6124} = {E32377D3-40D5-4158-904C-2BA6DEE1FA45}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6942F9AB-D574-4C16-8CF7-0D10B637237B}
Expand Down
8 changes: 8 additions & 0 deletions doc/Config/Entity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<SmartSqlMap Scope="Entity" xmlns="http://SmartSql.net/schemas/SmartSqlMap-v4.xsd">
<Statements>
<Statement Id="">

</Statement>
</Statements>
</SmartSqlMap>
33 changes: 33 additions & 0 deletions doc/Config/SmartSql.Config.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>SmartSql.Config</id>
<title>SmartSql Config Template</title>
<version>4.0.0-rc6</version>
<authors>Ahoo Wang</authors>
<owners>Ahoo Wang</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<language>en-US</language>
<license type="expression">Apache-2.0</license>
<projectUrl>https://github.com/Smart-Kit/SmartSql</projectUrl>
<iconUrl>https://raw.githubusercontent.com/Smart-Kit/SmartSql/master/SmartSql.png</iconUrl>
<repository type="git" url="https://github.com/Smart-Kit/SmartSql"/>
<summary>SmartSql-config Template.</summary>
<description>
SmartSql-config Template.
</description>
<tags>SmartSql, Config</tags>
<dependencies>
<dependency id="SmartSql.Schema" version="4.0.0-rc6" />
</dependencies>
<contentFiles>
<files include="**/*.*" buildAction="None" copyToOutput="true" flatten="true" />
</contentFiles>
</metadata>
<files>
<file src=".\SmartSqlMapConfig.xml" target="contentFiles\any\any" />
<file src=".\SmartSqlMapConfig.xml" target="content\" />
<file src=".\Entity.xml" target="contentFiles\any\any\Maps" />
<file src=".\Entity.xml" target="content\Maps" />
</files>
</package>
20 changes: 20 additions & 0 deletions doc/Config/SmartSqlMapConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<SmartSqlMapConfig xmlns="http://SmartSql.net/schemas/SmartSqlMapConfig-v4.xsd">
<Settings IgnoreParameterCase="false" ParameterPrefix="$" IsCacheEnabled="true"/>
<Database>
<DbProvider Name="SqlServer"/>
<Write Name="WriteDB" ConnectionString="${ConnectionString}"/>
<Read Name="ReadDb-1" ConnectionString="${ConnectionString}" Weight="100"/>
<Read Name="ReadDb-2" ConnectionString="${ConnectionString}" Weight="100"/>
</Database>
<IdGenerator Type="SnowflakeId">
<Properties>
<Property Name="WorkerIdBits" Value="10"/>
<Property Name="WorkerId" Value="888"/>
<Property Name="Sequence" Value="14"/>
</Properties>
</IdGenerator>
<SmartSqlMaps>
<SmartSqlMap Path="Maps" Type="Directory"></SmartSqlMap>
</SmartSqlMaps>
</SmartSqlMapConfig>
29 changes: 29 additions & 0 deletions doc/Schema/SmartSql.Schema.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>SmartSql.Schema</id>
<title>SmartSql Schema for Intellisense(TM)</title>
<version>4.0.0-rc6</version>
<authors>Ahoo Wang</authors>
<owners>Ahoo Wang</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<language>en-US</language>
<license type="expression">Apache-2.0</license>
<projectUrl>https://github.com/Smart-Kit/SmartSql</projectUrl>
<iconUrl>https://raw.githubusercontent.com/Smart-Kit/SmartSql/master/SmartSql.png</iconUrl>
<repository type="git" url="https://github.com/Smart-Kit/SmartSql"/>
<summary>Enables Intellisense(TM) when editing SmartSql-config.</summary>
<description>
XSD file to enables Intellisense(TM) when editing SmartSql configuration files, for example in Visual Studio.
Note: extensions to SmartSql will report XSD errors. Those can be ignored safely.
</description>
<tags>SmartSql, intellisense, xsd</tags>
<contentFiles>
<files include="**/*.*" buildAction="None" copyToOutput="false" flatten="true" />
</contentFiles>
</metadata>
<files>
<file src=".\*.xsd" target="contentFiles\any\any" />
<file src=".\*.xsd" target="content\" />
</files>
</package>
File renamed without changes.
File renamed without changes.

0 comments on commit 0275ead

Please sign in to comment.