Skip to content

Commit 0275ead

Browse files
committed
add XSD nuget
1 parent 381e361 commit 0275ead

File tree

7 files changed

+98
-2
lines changed

7 files changed

+98
-2
lines changed

SmartSql.sln

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
5353
LICENSE = LICENSE
5454
README.md = README.md
5555
SmartSql.sln.DotSettings.user = SmartSql.sln.DotSettings.user
56-
doc\SmartSqlMap-v4.xsd = doc\SmartSqlMap-v4.xsd
57-
doc\SmartSqlMapConfig-v4.xsd = doc\SmartSqlMapConfig-v4.xsd
5856
EndProjectSection
5957
EndProject
6058
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{6DDF0BFB-B7B7-4ABE-8346-E99D1E01670C}"
@@ -65,6 +63,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmartSql.Sample.AspNetCore"
6563
EndProject
6664
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmartSql.Options", "src\SmartSql.Options\SmartSql.Options.csproj", "{79F47225-6996-44A0-82BF-F82E9ECBFEFD}"
6765
EndProject
66+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Schema", "Schema", "{2F107069-A721-4EC2-84CC-C7E0940A6124}"
67+
ProjectSection(SolutionItems) = preProject
68+
doc\Schema\SmartSql.Schema.nuspec = doc\Schema\SmartSql.Schema.nuspec
69+
doc\Schema\SmartSqlMap-v4.xsd = doc\Schema\SmartSqlMap-v4.xsd
70+
doc\Schema\SmartSqlMapConfig-v4.xsd = doc\Schema\SmartSqlMapConfig-v4.xsd
71+
EndProjectSection
72+
EndProject
6873
Global
6974
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7075
Debug|Any CPU = Debug|Any CPU
@@ -160,6 +165,7 @@ Global
160165
{B3F8B542-78C2-4C0A-B72F-944038955D07} = {6DDF0BFB-B7B7-4ABE-8346-E99D1E01670C}
161166
{71B93091-C0FD-4D1A-B383-A8C616BCD0FB} = {E0AF1B38-B6B1-471B-9493-B84B066109F6}
162167
{79F47225-6996-44A0-82BF-F82E9ECBFEFD} = {4F0EEDDD-0300-4F32-A8E8-D4121AE83F23}
168+
{2F107069-A721-4EC2-84CC-C7E0940A6124} = {E32377D3-40D5-4158-904C-2BA6DEE1FA45}
163169
EndGlobalSection
164170
GlobalSection(ExtensibilityGlobals) = postSolution
165171
SolutionGuid = {6942F9AB-D574-4C16-8CF7-0D10B637237B}

doc/Config/Entity.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<SmartSqlMap Scope="Entity" xmlns="http://SmartSql.net/schemas/SmartSqlMap-v4.xsd">
3+
<Statements>
4+
<Statement Id="">
5+
6+
</Statement>
7+
</Statements>
8+
</SmartSqlMap>

doc/Config/SmartSql.Config.nuspec

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata>
4+
<id>SmartSql.Config</id>
5+
<title>SmartSql Config Template</title>
6+
<version>4.0.0-rc6</version>
7+
<authors>Ahoo Wang</authors>
8+
<owners>Ahoo Wang</owners>
9+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10+
<language>en-US</language>
11+
<license type="expression">Apache-2.0</license>
12+
<projectUrl>https://github.com/Smart-Kit/SmartSql</projectUrl>
13+
<iconUrl>https://raw.githubusercontent.com/Smart-Kit/SmartSql/master/SmartSql.png</iconUrl>
14+
<repository type="git" url="https://github.com/Smart-Kit/SmartSql"/>
15+
<summary>SmartSql-config Template.</summary>
16+
<description>
17+
SmartSql-config Template.
18+
</description>
19+
<tags>SmartSql, Config</tags>
20+
<dependencies>
21+
<dependency id="SmartSql.Schema" version="4.0.0-rc6" />
22+
</dependencies>
23+
<contentFiles>
24+
<files include="**/*.*" buildAction="None" copyToOutput="true" flatten="true" />
25+
</contentFiles>
26+
</metadata>
27+
<files>
28+
<file src=".\SmartSqlMapConfig.xml" target="contentFiles\any\any" />
29+
<file src=".\SmartSqlMapConfig.xml" target="content\" />
30+
<file src=".\Entity.xml" target="contentFiles\any\any\Maps" />
31+
<file src=".\Entity.xml" target="content\Maps" />
32+
</files>
33+
</package>

doc/Config/SmartSqlMapConfig.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<SmartSqlMapConfig xmlns="http://SmartSql.net/schemas/SmartSqlMapConfig-v4.xsd">
3+
<Settings IgnoreParameterCase="false" ParameterPrefix="$" IsCacheEnabled="true"/>
4+
<Database>
5+
<DbProvider Name="SqlServer"/>
6+
<Write Name="WriteDB" ConnectionString="${ConnectionString}"/>
7+
<Read Name="ReadDb-1" ConnectionString="${ConnectionString}" Weight="100"/>
8+
<Read Name="ReadDb-2" ConnectionString="${ConnectionString}" Weight="100"/>
9+
</Database>
10+
<IdGenerator Type="SnowflakeId">
11+
<Properties>
12+
<Property Name="WorkerIdBits" Value="10"/>
13+
<Property Name="WorkerId" Value="888"/>
14+
<Property Name="Sequence" Value="14"/>
15+
</Properties>
16+
</IdGenerator>
17+
<SmartSqlMaps>
18+
<SmartSqlMap Path="Maps" Type="Directory"></SmartSqlMap>
19+
</SmartSqlMaps>
20+
</SmartSqlMapConfig>

doc/Schema/SmartSql.Schema.nuspec

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata>
4+
<id>SmartSql.Schema</id>
5+
<title>SmartSql Schema for Intellisense(TM)</title>
6+
<version>4.0.0-rc6</version>
7+
<authors>Ahoo Wang</authors>
8+
<owners>Ahoo Wang</owners>
9+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10+
<language>en-US</language>
11+
<license type="expression">Apache-2.0</license>
12+
<projectUrl>https://github.com/Smart-Kit/SmartSql</projectUrl>
13+
<iconUrl>https://raw.githubusercontent.com/Smart-Kit/SmartSql/master/SmartSql.png</iconUrl>
14+
<repository type="git" url="https://github.com/Smart-Kit/SmartSql"/>
15+
<summary>Enables Intellisense(TM) when editing SmartSql-config.</summary>
16+
<description>
17+
XSD file to enables Intellisense(TM) when editing SmartSql configuration files, for example in Visual Studio.
18+
Note: extensions to SmartSql will report XSD errors. Those can be ignored safely.
19+
</description>
20+
<tags>SmartSql, intellisense, xsd</tags>
21+
<contentFiles>
22+
<files include="**/*.*" buildAction="None" copyToOutput="false" flatten="true" />
23+
</contentFiles>
24+
</metadata>
25+
<files>
26+
<file src=".\*.xsd" target="contentFiles\any\any" />
27+
<file src=".\*.xsd" target="content\" />
28+
</files>
29+
</package>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)