Skip to content

Commit c82af5c

Browse files
committedSep 20, 2019
Init commit - 2.0
1 parent cd85493 commit c82af5c

33 files changed

+10074
-0
lines changed
 

‎App.config

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
5+
</startup>
6+
</configuration>

‎CAMOsoft/CAMOsoft.DbUtils/Asserts.cs

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace CAMOsoft.DbUtils
6+
{
7+
public static class Asserts
8+
{
9+
10+
public static void Assert(bool pCond, string pMessage)
11+
{
12+
if (!pCond)
13+
if (pMessage == null)
14+
throw new Exception("Assertion failed");
15+
else
16+
throw new Exception("Assertion failed: " + pMessage);
17+
}
18+
19+
public static void Assert(bool pCond, Exception pThrowEx)
20+
{
21+
if (!pCond)
22+
if (pThrowEx == null)
23+
throw new Exception("Assertion failed");
24+
else
25+
throw pThrowEx;
26+
}
27+
28+
public static void Assert(bool pCond)
29+
{
30+
Assert(pCond, String.Empty);
31+
}
32+
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>9.0.30729</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{3E8FF80A-749B-47EC-941D-1A98EFF4540C}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>CAMOsoft.DbUtils</RootNamespace>
12+
<AssemblyName>CAMOsoft.DbUtils</AssemblyName>
13+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
<StartupObject>
16+
</StartupObject>
17+
<FileUpgradeFlags>
18+
</FileUpgradeFlags>
19+
<OldToolsVersion>3.5</OldToolsVersion>
20+
<UpgradeBackupLocation />
21+
<PublishUrl>publish\</PublishUrl>
22+
<Install>true</Install>
23+
<InstallFrom>Disk</InstallFrom>
24+
<UpdateEnabled>false</UpdateEnabled>
25+
<UpdateMode>Foreground</UpdateMode>
26+
<UpdateInterval>7</UpdateInterval>
27+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
28+
<UpdatePeriodically>false</UpdatePeriodically>
29+
<UpdateRequired>false</UpdateRequired>
30+
<MapFileExtensions>true</MapFileExtensions>
31+
<ApplicationRevision>0</ApplicationRevision>
32+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
33+
<IsWebBootstrapper>false</IsWebBootstrapper>
34+
<UseApplicationTrust>false</UseApplicationTrust>
35+
<BootstrapperEnabled>true</BootstrapperEnabled>
36+
<SccProjectName>SAK</SccProjectName>
37+
<SccLocalPath>SAK</SccLocalPath>
38+
<SccAuxPath>SAK</SccAuxPath>
39+
<SccProvider>SAK</SccProvider>
40+
<TargetFrameworkProfile />
41+
</PropertyGroup>
42+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
43+
<DebugSymbols>true</DebugSymbols>
44+
<DebugType>full</DebugType>
45+
<Optimize>false</Optimize>
46+
<OutputPath>bin\Debug\</OutputPath>
47+
<DefineConstants>DEBUG;TRACE</DefineConstants>
48+
<ErrorReport>prompt</ErrorReport>
49+
<WarningLevel>4</WarningLevel>
50+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
51+
<Prefer32Bit>false</Prefer32Bit>
52+
</PropertyGroup>
53+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
54+
<DebugType>pdbonly</DebugType>
55+
<Optimize>true</Optimize>
56+
<OutputPath>bin\Release\</OutputPath>
57+
<DefineConstants>TRACE</DefineConstants>
58+
<ErrorReport>prompt</ErrorReport>
59+
<WarningLevel>4</WarningLevel>
60+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
61+
<Prefer32Bit>false</Prefer32Bit>
62+
</PropertyGroup>
63+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
64+
<PlatformTarget>x86</PlatformTarget>
65+
<OutputPath>bin\x86\Debug\</OutputPath>
66+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
67+
<Prefer32Bit>false</Prefer32Bit>
68+
</PropertyGroup>
69+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
70+
<PlatformTarget>x86</PlatformTarget>
71+
<OutputPath>bin\x86\Release\</OutputPath>
72+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
73+
<Prefer32Bit>false</Prefer32Bit>
74+
</PropertyGroup>
75+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
76+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
77+
Other similar extension points exist, see Microsoft.Common.targets.
78+
<Target Name="BeforeBuild">
79+
</Target>
80+
<Target Name="AfterBuild">
81+
</Target>
82+
-->
83+
<ItemGroup>
84+
<Compile Include="Asserts.cs" />
85+
<Compile Include="DbSession.cs" />
86+
<Compile Include="MsSqlCmd.cs" />
87+
<Compile Include="MsSqlSession.cs" />
88+
</ItemGroup>
89+
<ItemGroup>
90+
<Reference Include="System" />
91+
<Reference Include="System.Data" />
92+
<Reference Include="System.Security" />
93+
<Reference Include="System.XML" />
94+
</ItemGroup>
95+
<ItemGroup>
96+
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
97+
<Visible>False</Visible>
98+
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
99+
<Install>false</Install>
100+
</BootstrapperPackage>
101+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
102+
<Visible>False</Visible>
103+
<ProductName>.NET Framework 3.5 SP1</ProductName>
104+
<Install>true</Install>
105+
</BootstrapperPackage>
106+
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
107+
<Visible>False</Visible>
108+
<ProductName>Windows Installer 3.1</ProductName>
109+
<Install>true</Install>
110+
</BootstrapperPackage>
111+
</ItemGroup>
112+
</Project>

0 commit comments

Comments
 (0)
Please sign in to comment.