все, 5-6 лабы готовы, надо только сдать
This commit is contained in:
parent
f18561f0c7
commit
ce2547e5d5
@ -1,6 +1,50 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Microsoft.IdentityModel.Abstractions" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.24.0.0" newVersion="6.24.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Security.Cryptography.ProtectedData" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Security.AccessControl" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Text.Encodings.Web" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.1" newVersion="6.0.0.1" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
25
miakd/SqlDatabaseSetup.cs
Normal file
25
miakd/SqlDatabaseSetup.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using Microsoft.Data.Tools.Schema.Sql.UnitTesting;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.Common;
|
||||||
|
|
||||||
|
namespace miakd
|
||||||
|
{
|
||||||
|
[TestClass()]
|
||||||
|
public class SqlDatabaseSetup
|
||||||
|
{
|
||||||
|
|
||||||
|
[AssemblyInitialize()]
|
||||||
|
public static void InitializeAssembly(TestContext ctx)
|
||||||
|
{
|
||||||
|
// Setup the test database based on setting in the
|
||||||
|
// configuration file
|
||||||
|
SqlDatabaseTestClass.TestService.DeployDatabaseProject();
|
||||||
|
SqlDatabaseTestClass.TestService.GenerateData();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
158
miakd/XMLfromSQLquery.xml
Normal file
158
miakd/XMLfromSQLquery.xml
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<?xml-stylesheet type="text/xsl" href="styles_animals_SQL.xslt"?>
|
||||||
|
<animals>
|
||||||
|
<animal>
|
||||||
|
<animal_id>1</animal_id>
|
||||||
|
<name>Слон</name>
|
||||||
|
<width>3.2</width>
|
||||||
|
<height>4</height>
|
||||||
|
<weight>5400</weight>
|
||||||
|
<color>Серый</color>
|
||||||
|
<food>Трава, тростник</food>
|
||||||
|
<averageIntake>около 150</averageIntake>
|
||||||
|
<habitat>Саванна</habitat>
|
||||||
|
<interestingFact>Слоны - самые большие животные на Земле (на суше)</interestingFact>
|
||||||
|
</animal>
|
||||||
|
<animal>
|
||||||
|
<animal_id>2</animal_id>
|
||||||
|
<name>Пингвин</name>
|
||||||
|
<width>0.4</width>
|
||||||
|
<height>1.1</height>
|
||||||
|
<weight>30</weight>
|
||||||
|
<color>Черно-белые, иногда фиолетово-белые</color>
|
||||||
|
<food>Рыба</food>
|
||||||
|
<averageIntake>2</averageIntake>
|
||||||
|
<habitat>Антарктика</habitat>
|
||||||
|
<interestingFact>Пингвины-родители по очереди высиживают яйца, пока второй партнер уходит на охоту за рыбой</interestingFact>
|
||||||
|
</animal>
|
||||||
|
<animal>
|
||||||
|
<animal_id>3</animal_id>
|
||||||
|
<name>Тигр</name>
|
||||||
|
<width>1.2</width>
|
||||||
|
<height>1</height>
|
||||||
|
<weight>220</weight>
|
||||||
|
<color>Оранжевый с черными полосами</color>
|
||||||
|
<food>Мясо</food>
|
||||||
|
<averageIntake>10</averageIntake>
|
||||||
|
<habitat>Леса, саванны</habitat>
|
||||||
|
<interestingFact>Тигры могут проплывать до 6 км за один раз</interestingFact>
|
||||||
|
</animal>
|
||||||
|
<animal>
|
||||||
|
<animal_id>4</animal_id>
|
||||||
|
<name>Панда</name>
|
||||||
|
<width>0.8</width>
|
||||||
|
<height>0.7</height>
|
||||||
|
<weight>100</weight>
|
||||||
|
<color>Черно-белый</color>
|
||||||
|
<food>Бамбук</food>
|
||||||
|
<averageIntake>15</averageIntake>
|
||||||
|
<habitat>Горные леса Китая</habitat>
|
||||||
|
<interestingFact>Панды проводят до 14 часов в день, поедая бамбук</interestingFact>
|
||||||
|
</animal>
|
||||||
|
<animal>
|
||||||
|
<animal_id>5</animal_id>
|
||||||
|
<name>Белый медведь</name>
|
||||||
|
<width>1.5</width>
|
||||||
|
<height>1.6</height>
|
||||||
|
<weight>450</weight>
|
||||||
|
<color>Белый</color>
|
||||||
|
<food>Морские млекопитающие</food>
|
||||||
|
<averageIntake>7</averageIntake>
|
||||||
|
<habitat>Арктика</habitat>
|
||||||
|
<interestingFact>Белые медведи могут нюхать добычу на расстоянии до 30 км</interestingFact>
|
||||||
|
</animal>
|
||||||
|
<animal>
|
||||||
|
<animal_id>6</animal_id>
|
||||||
|
<name>Фламинго</name>
|
||||||
|
<width>0.3</width>
|
||||||
|
<height>1.5</height>
|
||||||
|
<weight>3</weight>
|
||||||
|
<color>Розовый</color>
|
||||||
|
<food>Мелкие рыбы и водоросли</food>
|
||||||
|
<averageIntake>0,5</averageIntake>
|
||||||
|
<habitat>Соленые озера и лагуны</habitat>
|
||||||
|
<interestingFact>Цвет перьев фламинго зависит от их диеты</interestingFact>
|
||||||
|
</animal>
|
||||||
|
</animals>
|
||||||
|
|
||||||
|
|
||||||
|
<!--drop table if exists animals;
|
||||||
|
drop table color;
|
||||||
|
drop table if exists habitat;
|
||||||
|
|
||||||
|
|
||||||
|
create table color(
|
||||||
|
id serial primary key,
|
||||||
|
name varchar(255) not null
|
||||||
|
);
|
||||||
|
|
||||||
|
create table habitat(
|
||||||
|
id serial primary key,
|
||||||
|
name varchar(255) not null
|
||||||
|
);
|
||||||
|
|
||||||
|
create table animals(
|
||||||
|
id serial primary key,
|
||||||
|
name VARCHAR(255) NOT NULL,
|
||||||
|
width FLOAT,
|
||||||
|
height FLOAT,
|
||||||
|
weight INTEGER,
|
||||||
|
color_id INTEGER,
|
||||||
|
food varchar(255) not null,
|
||||||
|
averageIntake varchar(255) not null,
|
||||||
|
habitat_id INTEGER,
|
||||||
|
interesting_fact TEXT,
|
||||||
|
FOREIGN KEY (color_id) REFERENCES color(id),
|
||||||
|
FOREIGN KEY (habitat_id) REFERENCES habitat(id)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO color (name) VALUES
|
||||||
|
('Серый'),
|
||||||
|
('Черно-белые, иногда фиолетово-белые'),
|
||||||
|
('Оранжевый с черными полосами'),
|
||||||
|
('Черно-белый'),
|
||||||
|
('Белый'),
|
||||||
|
('Розовый');
|
||||||
|
|
||||||
|
INSERT INTO habitat (name) VALUES
|
||||||
|
('Саванна'),
|
||||||
|
('Антарктика'),
|
||||||
|
('Леса, саванны'),
|
||||||
|
('Горные леса Китая'),
|
||||||
|
('Арктика'),
|
||||||
|
('Соленые озера и лагуны');
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO animals (name, width, height, weight, color_id, food, averageIntake, habitat_id, interesting_fact) VALUES
|
||||||
|
('Слон', 3.2, 4.0, 5400, 1, 'Трава, тростник', 'около 150', 1, 'Слоны - самые большие животные на Земле (на суше)'),
|
||||||
|
('Пингвин', 0.4, 1.1, 30, 2, 'Рыба', '2', 2, 'Пингвины-родители по очереди высиживают яйца, пока второй партнер уходит на охоту за рыбой'),
|
||||||
|
('Тигр', 1.2, 1.0, 220, 3, 'Мясо', '10', 3, 'Тигры могут проплывать до 6 км за один раз'),
|
||||||
|
('Панда', 0.8, 0.7, 100, 4, 'Бамбук', '15', 4, 'Панды проводят до 14 часов в день, поедая бамбук'),
|
||||||
|
('Белый медведь', 1.5, 1.6, 450, 5, 'Морские млекопитающие', '7', 5, 'Белые медведи могут нюхать добычу на расстоянии до 30 км'),
|
||||||
|
('Фламинго', 0.3, 1.5, 3, 6, 'Мелкие рыбы и водоросли', '0,5', 6, 'Цвет перьев фламинго зависит от их диеты');
|
||||||
|
|
||||||
|
|
||||||
|
SELECT xmlelement(
|
||||||
|
name "animals",
|
||||||
|
xmlagg(
|
||||||
|
xmlelement(
|
||||||
|
name "animal",
|
||||||
|
xmlforest(
|
||||||
|
animals.id AS "animal_id",
|
||||||
|
animals.name AS "name",
|
||||||
|
animals.width AS "width",
|
||||||
|
animals.height AS "height",
|
||||||
|
animals.weight AS "weight",
|
||||||
|
color.name AS "color",
|
||||||
|
animals.food as "food",
|
||||||
|
animals.averageIntake as "averageIntake",
|
||||||
|
habitat.name AS "habitat",
|
||||||
|
animals.interesting_fact AS "interestingFact"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) AS full_animal_data
|
||||||
|
FROM animals
|
||||||
|
JOIN color ON animals.color_id = color.id
|
||||||
|
JOIN habitat ON animals.habitat_id = habitat.id;-->
|
@ -1,5 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<SSDTUnitTestPath Condition="'$(SSDTUnitTestPath)' == ''">$(VsInstallRoot)\Common7\IDE\Extensions\Microsoft\SQLDB</SSDTUnitTestPath>
|
||||||
|
<NuGetPackageImportStamp>
|
||||||
|
</NuGetPackageImportStamp>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<SSDTPath Condition="'$(SSDTPath)' == ''">$(VsInstallRoot)\Common7\IDE\Extensions\Microsoft\SQLDB\DAC</SSDTPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
@ -35,24 +46,113 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Azure.Core, Version=1.35.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Azure.Core.1.35.0\lib\net472\Azure.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Azure.Identity, Version=1.10.3.0, Culture=neutral, PublicKeyToken=92742159e12e44c8, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Azure.Identity.1.10.3\lib\netstandard2.0\Azure.Identity.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="ClosedXML.Parser, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1d5f7376574c51ec, processorArchitecture=MSIL">
|
<Reference Include="ClosedXML.Parser, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1d5f7376574c51ec, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\ClosedXML.Parser.1.2.0\lib\netstandard2.0\ClosedXML.Parser.dll</HintPath>
|
<HintPath>packages\ClosedXML.Parser.1.2.0\lib\netstandard2.0\ClosedXML.Parser.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Data.SqlClient, Version=5.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.Data.SqlClient.5.1.4\lib\net462\Microsoft.Data.SqlClient.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Identity.Client, Version=4.56.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.Identity.Client.4.56.0\lib\net461\Microsoft.Identity.Client.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Identity.Client.Extensions.Msal, Version=4.56.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.Identity.Client.Extensions.Msal.4.56.0\lib\netstandard2.0\Microsoft.Identity.Client.Extensions.Msal.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.IdentityModel.Abstractions, Version=6.24.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.IdentityModel.Abstractions.6.24.0\lib\net472\Microsoft.IdentityModel.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.IdentityModel.JsonWebTokens, Version=6.24.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.IdentityModel.JsonWebTokens.6.24.0\lib\net472\Microsoft.IdentityModel.JsonWebTokens.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.IdentityModel.Logging, Version=6.24.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.IdentityModel.Logging.6.24.0\lib\net472\Microsoft.IdentityModel.Logging.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.IdentityModel.Protocols, Version=6.24.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.IdentityModel.Protocols.6.24.0\lib\net472\Microsoft.IdentityModel.Protocols.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect, Version=6.24.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.IdentityModel.Protocols.OpenIdConnect.6.24.0\lib\net472\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.IdentityModel.Tokens, Version=6.24.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.IdentityModel.Tokens.6.24.0\lib\net472\Microsoft.IdentityModel.Tokens.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
<HintPath>packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Configuration" />
|
||||||
|
<Reference Include="System.Configuration.ConfigurationManager, Version=6.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Configuration.ConfigurationManager.6.0.1\lib\net461\System.Configuration.ConfigurationManager.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Data.OracleClient" />
|
||||||
|
<Reference Include="System.Diagnostics.DiagnosticSource, Version=6.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Diagnostics.DiagnosticSource.6.0.1\lib\net461\System.Diagnostics.DiagnosticSource.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.IdentityModel" />
|
||||||
|
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=6.24.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.IdentityModel.Tokens.Jwt.6.24.0\lib\net472\System.IdentityModel.Tokens.Jwt.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.IO.FileSystem.AccessControl, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.IO.FileSystem.AccessControl.5.0.0\lib\net461\System.IO.FileSystem.AccessControl.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
|
<HintPath>packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Memory.Data, Version=1.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Memory.Data.1.0.2\lib\net461\System.Memory.Data.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Net" />
|
||||||
<Reference Include="System.Numerics" />
|
<Reference Include="System.Numerics" />
|
||||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
<HintPath>packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
<HintPath>packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security" />
|
||||||
|
<Reference Include="System.Security.AccessControl, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Security.AccessControl.6.0.0\lib\net461\System.Security.AccessControl.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security.Cryptography.ProtectedData, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Security.Cryptography.ProtectedData.4.7.0\lib\net461\System.Security.Cryptography.ProtectedData.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security.Permissions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Security.Permissions.6.0.0\lib\net461\System.Security.Permissions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Security.Principal.Windows.5.0.0\lib\net461\System.Security.Principal.Windows.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.ServiceProcess" />
|
||||||
|
<Reference Include="System.Text.Encodings.Web, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Text.Encodings.Web.6.0.0\lib\net461\System.Text.Encodings.Web.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Text.Json, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Text.Json.4.7.2\lib\net461\System.Text.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Transactions" />
|
||||||
|
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
@ -71,6 +171,7 @@
|
|||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
|
<Compile Include="SqlDatabaseSetup.cs" />
|
||||||
<Page Include="MainWindow.xaml">
|
<Page Include="MainWindow.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
@ -124,6 +225,35 @@
|
|||||||
<Content Include="styles.xslt">
|
<Content Include="styles.xslt">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Resource Include="styles_animals_SQL.xslt" />
|
||||||
|
<Resource Include="XMLfromSQLquery.xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
<ItemGroup Condition="$(VisualStudioVersion) == '17.0'">
|
||||||
|
<Reference Include="Microsoft.Data.Tools.Schema.Sql, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>$(SSDTPath)\Microsoft.Data.Tools.Schema.Sql.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Data.Tools.Schema.Sql.UnitTesting, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>$(SSDTUnitTestPath)\Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Data.Tools.Schema.Sql.UnitTestingAdapter, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>$(SSDTUnitTestPath)\Microsoft.Data.Tools.Schema.Sql.UnitTestingAdapter.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<SsdtUnitTestVersion>3.1</SsdtUnitTestVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(SQLDBExtensionsRefPath)\Microsoft.Data.Tools.Schema.Sql.UnitTesting.targets" Condition="$(VisualStudioVersion) != '15.0' And '$(SQLDBExtensionsRefPath)' != ''" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.Sql.UnitTesting.targets" Condition="$(VisualStudioVersion) != '15.0' And '$(SQLDBExtensionsRefPath)' == ''" />
|
||||||
|
<Import Project="packages\Microsoft.Data.SqlClient.SNI.5.1.1\build\net462\Microsoft.Data.SqlClient.SNI.targets" Condition="Exists('packages\Microsoft.Data.SqlClient.SNI.5.1.1\build\net462\Microsoft.Data.SqlClient.SNI.targets')" />
|
||||||
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ErrorText>Данный проект ссылается на пакеты NuGet, отсутствующие на этом компьютере. Используйте восстановление пакетов NuGet, чтобы скачать их. Дополнительную информацию см. по адресу: http://go.microsoft.com/fwlink/?LinkID=322105. Отсутствует следующий файл: {0}.</ErrorText>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Error Condition="!Exists('packages\Microsoft.Data.SqlClient.SNI.5.1.1\build\net462\Microsoft.Data.SqlClient.SNI.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Data.SqlClient.SNI.5.1.1\build\net462\Microsoft.Data.SqlClient.SNI.targets'))" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
@ -1,8 +1,36 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
|
<package id="Azure.Core" version="1.35.0" targetFramework="net472" />
|
||||||
|
<package id="Azure.Identity" version="1.10.3" targetFramework="net472" />
|
||||||
<package id="ClosedXML.Parser" version="1.2.0" targetFramework="net472" />
|
<package id="ClosedXML.Parser" version="1.2.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.1" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.Data.SqlClient" version="5.1.4" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.Data.SqlClient.SNI" version="5.1.1" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.Identity.Client" version="4.56.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.Identity.Client.Extensions.Msal" version="4.56.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.IdentityModel.Abstractions" version="6.24.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.IdentityModel.JsonWebTokens" version="6.24.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.IdentityModel.Logging" version="6.24.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.IdentityModel.Protocols" version="6.24.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="6.24.0" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.IdentityModel.Tokens" version="6.24.0" targetFramework="net472" />
|
||||||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||||
|
<package id="System.Configuration.ConfigurationManager" version="6.0.1" targetFramework="net472" />
|
||||||
|
<package id="System.Diagnostics.DiagnosticSource" version="6.0.1" targetFramework="net472" />
|
||||||
|
<package id="System.IdentityModel.Tokens.Jwt" version="6.24.0" targetFramework="net472" />
|
||||||
|
<package id="System.IO.FileSystem.AccessControl" version="5.0.0" targetFramework="net472" />
|
||||||
<package id="System.Memory" version="4.5.4" targetFramework="net472" />
|
<package id="System.Memory" version="4.5.4" targetFramework="net472" />
|
||||||
|
<package id="System.Memory.Data" version="1.0.2" targetFramework="net472" />
|
||||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
||||||
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net472" />
|
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net472" />
|
||||||
|
<package id="System.Security.AccessControl" version="6.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Security.Cryptography.ProtectedData" version="4.7.0" targetFramework="net472" />
|
||||||
|
<package id="System.Security.Permissions" version="6.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Security.Principal.Windows" version="5.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Text.Encoding" version="4.3.0" targetFramework="net472" />
|
||||||
|
<package id="System.Text.Encodings.Web" version="6.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Text.Json" version="4.7.2" targetFramework="net472" />
|
||||||
|
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
|
||||||
|
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
|
||||||
</packages>
|
</packages>
|
69
miakd/styles_animals_SQL.xslt
Normal file
69
miakd/styles_animals_SQL.xslt
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
|
<xsl:template match="/">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<h1 style="">Список интересных животных</h1>
|
||||||
|
<style>
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
th, td {
|
||||||
|
border: 3px solid rgb(255, 150, 100);
|
||||||
|
padding: 8px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
th {
|
||||||
|
background-color: rgba(255, 150, 100, 0.5);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Название</th>
|
||||||
|
<th>Размер (Ширина x Высота)</th>
|
||||||
|
<th>Вес</th>
|
||||||
|
<th>Окрас</th>
|
||||||
|
<th>Рацион</th>
|
||||||
|
<th>Среднее потребление пищи (в день)</th>
|
||||||
|
<th>Место обитания</th>
|
||||||
|
<th>Интересный факт</th>
|
||||||
|
</tr>
|
||||||
|
<!-- Цикл по каждому животному -->
|
||||||
|
<xsl:for-each select="animals/animal">
|
||||||
|
<xsl:sort select="weight" data-type="number" />
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="name"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="width"/> метра(ов) *
|
||||||
|
<xsl:value-of select="height"/> метра(ов)
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="weight"/> кг
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="color"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="food"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="averageIntake"/> кг
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="habitat"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="interestingFact"/> :D
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</xsl:for-each>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
Loading…
Reference in New Issue
Block a user